{% extends "consents/base.html" %} {% block title %} - create consent{% endblock %} {% block body %}

Create consent

{% csrf_token %}
{% for text_fragment in template_text %}

{% if text_fragment.element_type == "Paragraph" %} boldface {% elif text_fragment.element_type == "Checkbox" %} required {% endif %}

{% if not forloop.first %} {% endif %} {% if not forloop.last %} {% endif %}
{% empty %}
no text fragments in this list.
{% endfor %}
{% for text_fragment in template_text_fragments %} {% if text_fragment.id not in selected_template_text_fragment_ids %}

{% include text_fragment.element.template_name %}

{% endif %} {% endfor %}
{% endblock %} {% block extra_js %} $('.ui.dropdown') .dropdown() ; $('.ui.dropdown').dropdown({ 'onChange': function (value, text, $choice) { $('#ConsentCategoryDropdown').submit(); } }); $('.dimmer') .dimmer({ transition: 'fade up', on: 'hover' }) ; {% endblock %}