{% extends "admin/base_site.html" %} {% block title %}{% if cl.formset and cl.formset.errors %}{{ gettext("Error:") }} {% endif %}{{ super() }}{% endblock %} {% block extrastyle %} {{ super() }} {% if cl.formset %} {% endif %} {% if cl.formset or action_form %} {% endif %} {{ media.css }} {% if not actions_on_top and not actions_on_bottom %} {% endif %} {% endblock %} {% block extrahead %} {{ super() }} {{ media.js }} {% endblock %} {% block bodyclass %}{{ super() }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list{% endblock %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block coltype %}{% endblock %} {% block content %}
{% block object_tools %} {% endblock %} {% if cl.formset and cl.formset.errors %}

{% trans count=cl.formset.total_error_count %}Please correct the error below.{% pluralize %}Please correct the errors below.{% endtrans %}

{{ cl.formset.non_form_errors }} {% endif %}
{% block filters %} {% if cl.has_filters %}

{{ gettext('Filter') }}

{% if cl.is_facets_optional or cl.has_active_filters %}
{% if cl.is_facets_optional %}

{% if cl.add_facets %}{{ gettext("Hide counts") }} {% else %}{{ gettext("Show counts") }}{% endif %}

{% endif %} {% if cl.has_active_filters %}

✖ {{ gettext("Clear all filters") }}

{% endif %}
{% endif %} {% for spec in cl.filter_specs %}{{ admin_list_filter(cl, spec) }}{% endfor %}
{% endif %} {% endblock %}
{% block search %} {% set _search = search_form(cl) %} {% set cl = _search.cl %} {% set show_result_count = _search.show_result_count %} {% set search_var = _search.search_var %} {% set is_popup_var = _search.is_popup_var %} {% set is_facets_var = _search.is_facets_var %} {% include "admin/search_form.html" %} {% endblock %} {% block date_hierarchy %} {% if cl.date_hierarchy %} {% set _dh = date_hierarchy(cl) %} {% if _dh %} {% set show = _dh.show %} {% set back = _dh.back %} {% set choices = _dh.choices %} {% include "admin/date_hierarchy.html" %} {% endif %} {% endif %} {% endblock %}
{{ csrf_input }} {% if cl.formset %}
{{ cl.formset.management_form }}
{% endif %} {% block result_list %} {% if action_form and actions_on_top and cl.show_admin_actions %} {% set _actions_ctx = admin_actions() %} {% set action_index = _actions_ctx.action_index %} {% include "admin/actions.html" %} {% endif %} {% set _rl = result_list(cl) %} {% set result_hidden_fields = _rl.result_hidden_fields %} {% set result_headers = _rl.result_headers %} {% set num_sorted_fields = _rl.num_sorted_fields %} {% set results = _rl.results %} {% include "admin/change_list_results.html" %} {% if action_form and actions_on_bottom and cl.show_admin_actions %} {% set _actions_ctx = admin_actions() %} {% set action_index = _actions_ctx.action_index %} {% include "admin/actions.html" %} {% endif %} {% endblock %} {% block pagination %}
{% endblock %}