{% extends "admin/base_site.html" %} {% load i18n admin_urls static admin_list %} {% block extrastyle %} {{ block.super }} {% if cl.formset %} {% endif %} {% 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 }} {% endblock %} {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list{% endblock %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block coltype %}flex{% endblock %} {% block content %}
{% if cl.formset and cl.formset.errors %}

{% if cl.formset.total_error_count == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

{{ cl.formset.non_form_errors }} {% endif %} {% comment %} Eric: 自定义filter样式1 {% endcomment %} {% comment %}
{% endcomment %}
{% comment %} Eric: 自定义filter样式1 End {% endcomment %} {% block date_hierarchy %}{% if cl.date_hierarchy %}{% date_hierarchy cl %}{% endif %}{% endblock %}
{% block filters %} {% if cl.has_filters %} {% comment %} Eric: 自定义filter样式2 {% endcomment %} {% comment %}

{% trans 'Filter' %}

{% endcomment %} {% comment %} Eric: 自定义filter样式2 End {% endcomment %} {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} {% endif %} {% endblock %} {% block search %}{% search_form cl %}{% endblock %} {% comment %} Eric: 增加全部按钮 {% endcomment %} {% if cl.has_filters or cl.search_fields %} {% endif %} {% comment %} Eric: 增加全部按钮 End {% endcomment %}
{% csrf_token %} {% if cl.formset %}
{{ cl.formset.management_form }}
{% endif %} {% block result_list %}
{% block object-tools %}
    {% block object-tools-items %} {% change_list_object_tools %} {% endblock %}
{% endblock %} {% if list_tips %}
{{ list_tips }}
{% endif %} {% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %}
{% result_list cl %} {% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %} {% endblock %} {% block pagination %}{% pagination cl %}{% endblock %}
{% comment %} Eric: 修复一下content padding-top {% endcomment %} {% comment %} Eric: 修复一下content padding-top End {% endcomment %}
{% endblock %}