{% extends "admin/base.html" %} {% load i18n static admin_urls admin_list %} {# ---------- TITLE ---------- #} {% block title %} {{ cl.opts.verbose_name_plural|capfirst }} | {{ site_title|default:'' }} {% endblock %} {# ---------- BODY CLASS ---------- #} {% block bodyclass %}{{ cl.opts.app_label }}-{{ cl.opts.model_name }} change-list-page{% endblock %} {# ---------- BREADCRUMBS (в нашем стиле, без имени приложения) ---------- #} {% block breadcrumbs %} {% if not is_popup %} {% endif %} {% endblock %} {# ---------- CONTENT TITLE ---------- #} {% block content_title %}

{{ cl.opts.verbose_name_plural|capfirst }}

{% endblock %} {# ---------- OBJECT TOOLS (кнопка "Добавить") ---------- #} {% block object-tools %} {% if has_add_permission %} {% endif %} {% endblock %} {# ---------- CONTENT ---------- #} {% block content %}
{% csrf_token %} {% if is_popup %} {% endif %} {% if to_field %} {% endif %} {# ---------- SEARCH & FILTERS (стандартные теги Django) ---------- #} {% if cl.search_fields or cl.has_filters or cl.date_hierarchy %}
{% if cl.search_fields %} {% endif %} {% if cl.has_filters %}
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
{% endif %} {% if cl.date_hierarchy %}
{% date_hierarchy cl %}
{% endif %}
{% endif %} {# ---------- ACTIONS / TOP PAGINATION ---------- #} {% if action_form or cl.result_count or show_all_url %}
{% if action_form %}
{% admin_actions %}
{% endif %}
{% pagination cl %}
{% endif %} {# ---------- RESULTS TABLE ---------- #}
{% block result_list %} {% result_list cl %} {% endblock %}
{# ---------- BOTTOM PAGINATION ---------- #} {% if cl.result_count %}
{% pagination cl %}
{% endif %}
{% endblock %}