{% extends "admin/base_site.html" %} {% load i18n admin_urls admin_list %} {% load paper_filters paper_list %} {% block styles %} {{ block.super }} {{ media.css }} {% endblock %} {% block scripts %} {{ block.super }} {{ media.js }} {% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list{% endblock %} {% block header_buttons %} {% if has_add_permission %}
  • {% url cl.opts|admin_urlname:'add' as add_url %} {{ _("Add") }}
  • {% endif %} {% endblock %} {% block breadcrumb_items %} {% endblock breadcrumb_items %} {% block messages %} {{ block.super }} {% if cl.formset and cl.formset.non_form_errors %} {% for error in cl.formset.non_form_errors %}
  • {{ error }}
  • {% endfor %} {% endif %} {% endblock %} {% block content_title %}
    {% firstof cl.opts.verbose_name_plural title as page_title %}

    {{ page_title|capfirst }}

    {% block object-tools %} {% endblock %}
    {% endblock %} {% block toolbar %} {% if cl.has_filters %}

    {{ _("Filters") }}

    {% block filters %}
    {% for spec in cl.filter_specs %} {% paper_list_filter cl spec %} {% endfor %} {% get_filter_keep_params as filter_keep_params %} {% for name, value in filter_keep_params %} {% endfor %} {% if cl.has_active_filters %} {{ _("Clear all filters") }} {% endif %}
    {% endblock %}
    {% endif %} {% endblock %} {% block content %} {% if cl.result_count and cl.date_hierarchy %}
    {{ _("Filter by date") }}
    {% block date_hierarchy %} {% date_hierarchy cl %} {% endblock %}
    {% endif %} {% if cl.result_count %} {% if action_form and actions_on_top and cl.show_admin_actions or cl.search_fields %}
    {% if action_form and actions_on_top and cl.show_admin_actions %}
    {% include "admin/actions.html" with index=0 %}
    {% else %}
    {% endif %} {% if cl.search_fields %}
    {% block search %} {% include "admin/search_form.html" %} {% endblock %}
    {% endif %}
    {% endif %}
    {% csrf_token %} {% if cl.formset %} {{ cl.formset.management_form }} {% endif %} {% block result_list %} {% paper_result_list cl %} {% endblock %}
    {% if cl.formset or action_form and actions_on_bottom and cl.show_admin_actions %}
    {% if action_form and actions_on_bottom and cl.show_admin_actions %}
    {% include "admin/actions.html" with index=1 %}
    {% else %}
    {% endif %} {% if cl.formset %}
    {% else %}
    {% endif %}
    {% endif %} {% else %} {% if cl.full_result_count %}

    {{ _("Nothing found") }}!

    {{ _("Reset search and filters") }}
    {% else %}

    {% blocktrans with cl.opts.verbose_name_plural|capfirst as name_plural %}{{ name_plural }} are not created yet{% endblocktrans %}.

    {% endif %} {% endif %} {% endblock %}