{% extends "admin/base_site.html" %} {% load i18n admin_urls ralph_tags admin_static admin_list foundation_alert sitetree cache %} {% block extrastyle %} {{ block.super }} {% if not actions_on_top and not actions_on_bottom %} {% endif %} {% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list{% if bulk_edit %} bulk-edit{% endif %}{% endblock %} {% block coltype %}flex{% endblock %} {% block content %} {% if is_popup and cl %} {% contextual_search_form search_url search_fields cl.opts.verbose_name %} {% endif %}
{% csrf_token %}

{{ header_obj_name|capfirst }}

{% if not is_popup %}
{% views_tabs list_views %}
{% endif %}
{% if bulk_edit %} {% trans "Back to list" %} {% endif %} {% if has_add_permission %} {% url cl.opts|admin_urlname:'add' as add_url %} {% blocktrans with cl.opts.verbose_name as name %} Add {{ name }} {% endblocktrans %} {% endif %} {% if not is_popup %} {% trans "Other actions" %} {% block object-tools %} {% endblock %} {% endif %}
{% if cl.formset.errors %}

{% if cl.formset.total_error_count == 1 %} {% alert _("Please correct the error below.") 'alert' %} {% else %} {% alert _("Please correct the errors below.") 'alert' %} {% endif %}

{{ cl.formset.non_form_errors }} {% endif %}
{% if not bulk_edit %} {% block filters %} {% if cl.has_filters %} {# TODO: request.user.permissions_hash if filters respect permissions #} {% if not request.GET %} {% cache 3600 filters opts.app_label opts.model_name %} {% spaceless %} {% include 'admin/partials/filters.html' %} {% endspaceless %} {% endcache %} {% else %} {% include 'admin/partials/filters.html' %} {% endif %} {% endif %} {% endblock %} {% endif %}
{% block result_list %} {% if cl.formset %} {{ cl.formset.management_form }} {% endif %} {% result_list cl %} {% if action_form and actions_on_bottom and cl.show_admin_actions %} {% admin_actions %} {% endif %} {% endblock %}
{% block pagination %} {% pagination cl %} {% endblock %}
{% endblock %} {% block extra_scripts %} {{ block.super }} {% if not bulk_edit %} {% endif %} {% endblock %}