{% extends 'ddm_core/page_with_form.html' %} {% load static %} {% block page_title %}Filter Configuration{% endblock page_title %} {% block main_heading %} Filter Configuration for {{ target_type }} "{{ target_name|truncatechars:24 }}" {% endblock main_heading %} {% block sub_heading %}

Configure conditions to hide the {{ target_type }} based on answers to previous questions/items or other variables.

{% endblock sub_heading %} {% block form_content %} {{ formset.management_form }}
{% if form.errors or formset.errors %}
{% include "ddm_core/form_components/_general_form_errors.html" with override_standard_errors=True %}
{% endif %}

{{ target_type }} is hidden, if:

{% for form in formset.forms %} {% include "ddm_questionnaire/form_sections/partials/_filter_condition_form.html" with form=form %} {% empty %} {% endfor %}
No items defined.
{# Empty formset #} {% include "ddm_questionnaire/form_sections/partials/_filter_condition_form.html" with form=formset.empty_form %}
{% endblock form_content %} {% block scripts %} {{ block.super }} {% endblock scripts %}