1 {% extends
"admin/base_site.html" %}
2 {% load i18n admin_static admin_list %}
3 {% load url from future %}
8 <link rel=
"stylesheet" type=
"text/css" href=
"{% static "admin/css/changelists.css
" %}" />
10 <link rel=
"stylesheet" type=
"text/css" href=
"{% static "admin/css/forms.css
" %}" />
12 {% if cl.formset or action_form %}
13 {% url 'admin:jsi18n' as jsi18nurl %}
14 <script type=
"text/javascript" src=
"{{ jsi18nurl|default:'../../jsi18n/' }}"></script>
17 {% if not actions_on_top and not actions_on_bottom %}
19 #changelist table thead th:first-child {width: inherit}
27 {% if action_form %}{% if actions_on_top or actions_on_bottom %}
28 <script type=
"text/javascript">
30 $(document).ready(function($) {
31 $(
"tr input.action-select").actions();
35 {% endif %}{% endif %}
38 {% block bodyclass %}change-list{% endblock %}
41 {% block breadcrumbs %}
42 <div class=
"breadcrumbs">
43 <a href=
"{% url 'admin:index' %}">{% trans 'Home' %}
</a>
44 › <a href=
"{% url 'admin:app_list' app_label=cl.opts.app_label %}">{{ app_label|capfirst|escape }}
</a>
45 › {{ cl.opts.verbose_name_plural|capfirst }}
50 {% block coltype %}flex{% endblock %}
53 <div id=
"content-main">
54 {% block object-tools %}
55 {% if has_add_permission %}
56 <ul class=
"object-tools">
57 {% block object-tools-items %}
59 <a href=
"{% url cl.opts|admin_urlname:'add' %}{% if is_popup %}?_popup=1{% endif %}" class=
"addlink">
60 {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
67 {% if cl.formset.errors %}
69 {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
71 {{ cl.formset.non_form_errors }}
73 <div class=
"module{% if cl.has_filters %} filtered{% endif %}" id=
"changelist">
74 {% block search %}{% search_form cl %}{% endblock %}
75 {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
78 {% if cl.has_filters %}
79 <div id=
"changelist-filter">
80 <h2>{% trans 'Filter' %}
</h2>
81 {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
86 <form id=
"changelist-form" action=
"" method=
"post"{% if cl.formset.is_multipart %}
enctype=
"multipart/form-data"{% endif %}
>{% csrf_token %}
88 <div>{{ cl.formset.management_form }}
</div>
91 {% block result_list %}
92 {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %}
94 {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}
96 {% block pagination %}{% pagination cl %}{% endblock %}