{% load i18n static %} {% load simpletags sptags%} {% if cl.has_filters %} {% get_list_filter_tree_info as filter_tree %} {% for spec in cl.filter_specs %} {% if spec|get_date_type == 'date' or spec|get_date_type == 'datetime' %} {% elif spec|has_filter %} {% for option in spec.lookup_choices %} {% endfor %} {% else %} {% if spec.field.name in filter_tree %} {% get_list_filter_tree_options spec as tree_options %} {% else %} {% if spec|get_date_type == 'time' %} {% for option in spec.lookup_choices %} {% endfor %} {% elif spec.lookup_choices %} {% if spec.lookup_choices.query %} {% for option in spec.lookup_choices %} {% endfor %} {% else %} {% for option in spec.lookup_choices %} {% endfor %} {% endif %} {% elif spec.field.choices %} {% for option in spec.field.choices %} {% endfor %} {% else %} {% get_boolean_choices as choices %} {% for c in choices %} {% endfor %} {% endif %} {% endif %} {% endif %} {% endfor %} {% trans 'Query' %} {% trans 'Reset' %} {% endif %}