{% extends "admin/base.html" %} {% load i18n static admin_urls admin_list %} {# ---------- TITLE ---------- #} {% block title %}{% if cl.formset and cl.formset.errors %}{% translate "Error:" %} {% endif %}{{ 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 %} {# ---------- MEDIA (align with Django admin change_list) ---------- #} {% block extrastyle %} {{ block.super }} {% if cl.formset or action_form %} {% endif %} {{ media.css }} {% if not actions_on_top and not actions_on_bottom %} {% endif %} {% endblock %} {% block extrahead %} {{ block.super }} {{ media.js }} {% if action_form and cl.result_count %} {% endif %} {% endblock %} {# ---------- BREADCRUMBS ---------- #} {% block breadcrumbs %} {% if not is_popup %} {% endif %} {% endblock %} {# ---------- TITLE + ADD (one row: title left, add right) ---------- #} {% block content_title %}

{{ cl.opts.verbose_name_plural|capfirst }}

{% 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 lucus_changelist_pagehead_actions %} {% for action in lucus_changelist_pagehead_actions %} {% if action.js_handler or action.event %} {% else %} {% if action.urlname %} {% url action.urlname as lucus_action_url %} {% if action.method|default:"get"|lower == "post" %}
{% csrf_token %}
{% else %} {{ action.label }} {% endif %} {% else %} {% with action.url as lucus_action_url %} {% if action.method|default:"get"|lower == "post" %}
{% csrf_token %}
{% else %} {{ action.label }} {% endif %} {% endwith %} {% endif %} {% endif %} {% endfor %} {% endif %} {% block object-tools-items %}{% endblock %}
{% endblock %} {% block object-tools %}{% endblock %} {# ---------- CONTENT ---------- #} {% block content %}
{% if cl.formset and cl.formset.errors %}

{% blocktranslate count counter=cl.formset.total_error_count %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}

{{ cl.formset.non_form_errors }} {% endif %}
{# Pagination (left) + search (right), above the table; GET search stays outside POST form. #} {% if cl.search_fields or cl.result_count or show_all_url %}
{% if cl.result_count or show_all_url %} {% pagination cl %} {% endif %}
{% endif %} {% if cl.date_hierarchy %}
{% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
{% endif %}
{% csrf_token %} {% if is_popup %} {% endif %} {% if to_field %} {% endif %} {% if cl.formset %}
{{ cl.formset.management_form }}
{% endif %} {% if action_form and actions_on_top and cl.show_admin_actions %}
{% admin_actions %}
{% endif %}
{% block result_list %} {% result_list cl %} {% endblock %}
{% if action_form and actions_on_bottom and cl.show_admin_actions or cl.formset and cl.result_count %}
{% if action_form and actions_on_bottom and cl.show_admin_actions %}
{% admin_actions %}
{% endif %} {# Пагинация только в .lucus-changelist__toolbar — дубль внизу убран #} {% if cl.formset and cl.result_count %} {% endif %}
{% endif %}
{% if cl.has_filters %} {% endif %}
{% endblock %}