{% extends "admin/base_site.html" %} {% load i18n admin_urls static admin_list %} {% load paper_list paper_paginator %} {% block styles %} {{ block.super }} {{ media.css }} {% endblock %} {% block scripts %} {{ block.super }} {{ media.js }} {% endblock %} {% block bodyclass %}{{ block.super }} changelist-page{% endblock %} {% block header_buttons %} {% if has_add_permission %} {% endif %} {% endblock %} {% block breadcrumb_items %} {% endblock breadcrumb_items %} {% block message_items %} {{ block.super }} {% if cl.formset.errors %}
  • {% if cl.formset.total_error_count == 1 %} {% trans "Please correct the error below." %} {% else %} {% trans "Please correct the errors below." %} {% endif %}
  • {% for error in cl.formset.non_form_errors %}
  • {{ error }}
  • {% endfor %} {% endif %} {% endblock %} {% block toolbar %} {% if cl.has_filters %}

    {% trans 'Filters' %}

    {% block filters %}
    {% for spec in cl.filter_specs %} {% paper_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 %} {% translate "Clear all filters" %} {% endif %}
    {% endblock %}
    {% endif %} {% endblock %} {% block before_content %} {% firstof cl.opts.verbose_name_plural title as page_title %}

    {{ page_title|capfirst }}

    {% block object-tools %} {% 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 %} {% endblock %}
    {% endblock %} {% block content %} {% if cl.full_result_count %}
    {% blocktrans count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %} {% if cl.result_count != cl.full_result_count %} ({% if cl.show_full_result_count %}{% blocktrans with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktrans %}{% else %}{% trans "Show all" %}{% endif %}) {% endif %}
    {% search_form cl %}
    {% if cl.result_count and cl.date_hierarchy %}
    {% date_hierarchy cl %}
    {% endif %} {% block hierarchy_filters %}{% endblock hierarchy_filters %}
    {% endif %} {% if cl.result_count %}
    {% block pagination_top %} {% paper_pagination cl %} {% endblock %}
    {% csrf_token %} {% if cl.formset %} {{ cl.formset.management_form }} {% endif %} {% if cl.formset or action_form and actions_on_top and cl.show_admin_actions %}
    {% if action_form and actions_on_top and cl.show_admin_actions %} {% admin_actions %} {% endif %} {% if cl.formset %}
    {% endif %}
    {% 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 %} {% admin_actions %} {% endif %} {% if cl.formset %}
    {% endif %}
    {% endif %}
    {% block pagination_bottom %} {% paper_pagination cl %} {% endblock %}
    {% else %} {% if cl.full_result_count %}

    {% trans 'Nothing found' %}!

    {% trans '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 %}