{% if errors|length == 1 %} {% trans "Please correct the error below." %} {% else %} {% trans "Please correct the errors below." %} {% endif %}
{{ adminform.form.non_field_errors }} {% endif %}{% extends "admin/base.html" %} {% load i18n static admin_urls admin_modify %} {# ---------- TITLE ---------- #} {% block title %} {% if add %}{% blocktrans with name=opts.verbose_name %}Add {{ name }}{% endblocktrans %}{% else %}{{ original|striptags }}{% endif %} | {{ site_title|default:'' }} {% endblock %} {# ---------- BODY CLASS ---------- #} {% block bodyclass %}{{ opts.app_label }}-{{ opts.model_name }} change-form-page lucus-fixed-submit{% endblock %} {# ---------- BREADCRUMBS (в нашем стиле, без имени приложения) ---------- #} {% block breadcrumbs %} {% if not is_popup %}
{% endif %} {% endblock %} {# ---------- Убираем дублирующий текст перед h1 (оставляем только наш заголовок) ---------- #} {% block content_title %}{% endblock %} {# Stock Django change_form: forms.css + jsi18n + form media (FilteredSelectMultiple → SelectFilter2 needs gettext). #} {% block extrastyle %} {{ block.super }} {% for css in media.render_css %} {{ css }} {% endfor %} {% endblock %} {% block extrahead %} {{ block.super }} {% if adminform and add %} {% endif %} {% endblock %} {# ---------- CONTENT ---------- #} {% block content %}{% if errors|length == 1 %} {% trans "Please correct the error below." %} {% else %} {% trans "Please correct the errors below." %} {% endif %}
{{ adminform.form.non_field_errors }} {% endif %}