{% load report_designer.forms %}
{% with checkbox_exists=form|fields_exists:'checkbox' select_exists=form|fields_exists:'select' search_mode=True %}
{% if checkbox_exists %}
{% include 'report_designer/core/filters/filter_list.html' %} {% if search_mode %} {{ form.search }} {% endif %}
{% include 'report_designer/core/filters/filter_list.html' with show_checkboxes=True %}
{% if filters_clear %}
{% endif %}
{% else %}
{% if filters_clear %}
{% if select_exists %} {% include 'report_designer/core/filters/filter_list.html' %} {% endif %}
{% if search_mode %}
{{ form.search }}
{% endif %} {% else %} {% if select_exists %} {% include 'report_designer/core/filters/filter_list.html' %} {% endif %} {% if search_mode %}
{{ form.search }}
{% endif %} {% endif %}
{% endif %}
{% endwith %}