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

Create consent

{% csrf_token %}
{% for text_fragment in text_fragments %}

{% if text_fragment.type == "paragraph" %} boldface {% elif text_fragment.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 selected_category.template_text_fragments %}

{% with template_name="consents/text_fragments/"|add:text_fragment.type|add:".html" %} {% include template_name %} {% endwith %}

{% 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 %}