Skip to content
Snippets Groups Projects
Commit 09f5f815 authored by Dan Nepejchal's avatar Dan Nepejchal Committed by jan.bednarik
Browse files

Regulace konopí - initial commit

- created app for ragulacekonopi.cz
parent 94e1a6c0
No related branches found
No related tags found
2 merge requests!140Merge test,!135Regulace konopi
{% load static %}
<div class="content-block my-4 clearfix{% if forloop.first %} mt-8 lg:mt-12{% endif %}">
<h2>{{ value.name }}</h2>
{% for mep in value.mep %}
<button type="button" class="btn " data-container="body" data-toggle="popover" data-placement="top"
data-content="{{ mep.name }}">
<img class="mep-status" src=
{% if mep.approved == '1' %}
"{% static "regulace_konopi/svg/user-positive.svg" %}"
{% elif mep.approved == '-1' %}
"{% static "regulace_konopi/svg/user-neutral.svg" %}"
{% else %}
"{% static "regulace_konopi/svg/user-negative.svg" %}"
{% endif %}
/>
</button>
{% endfor %}
</div>
<script>
$(function () {
$('[data-toggle="popover"]').popover()
})
</script>
\ No newline at end of file
{% extends "regulace_konopi/base.html" %}
{% load wagtailcore_tags %}
{% block content %}
<main>
{% include "regulace_konopi/snippet_sections.html" %}
</main>
{% endblock %}
{% load uniweb_filters wagtailcore_tags wagtailimages_tags %}
<section class="mb-8 lg:mb-16">
{% for block in page.content %}
{% if block.block_type == "title" %}
<h1 class="head-alt-md md:head-alt-lg max-w-5xl my-6 lg:mt-16">{{ block.value }}</h1>
{% endif %}
{% if block.block_type == "text" %}
<div class="content-block my-4 clearfix{% if forloop.first %} mt-8 lg:mt-12{% endif %}">
{{ block.value|richtext }}
</div>
{% endif %}
{% if block.block_type == "carousel" %}
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{% for picture in block.value %}
{% image picture width-2000 as img %}
<div class="carousel-item {% if forloop.first %}active{% endif %}">
<img class="d-block w-100" src="{{ img.url }}" alt="First slide">
</div>
{% endfor %}
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
{% endif %}
{% if block.block_type == "FAQ" %}
<div class="faq" id="faqAccordion">
{% for faq in block.value %}
{% include_block faq %}
{% endfor %}
</div>
{% endif %}
{% if block.block_type == "meps" %}
{% include_block block %}
{% endif %}
{% endfor %}
</section>
{% extends "regulace_konopi/base.html" %}
{% block content %}
<main>
{% include "regulace_konopi/snippet_sections.html" %}
</main>
{% endblock %}
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment