1 {% extends "admin/page_base_site.html" %} |
|
2 {% load adminmedia admin_list i18n %} |
|
3 |
|
4 {% block extrastyle %} |
|
5 {{ block.super }} |
|
6 <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" /> |
|
7 {% if cl.formset %} |
|
8 <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" /> |
|
9 <script type="text/javascript" src="../../jsi18n/"></script> |
|
10 {% endif %} |
|
11 {{ media }} |
|
12 {% if not actions_on_top and not actions_on_bottom %} |
|
13 <style> |
|
14 #changelist table thead th:first-child {width: inherit} |
|
15 </style> |
|
16 {% endif %} |
|
17 {% endblock %} |
|
18 |
|
19 {% block bodyclass %}change-list{% endblock %} |
|
20 |
|
21 {% if not is_popup %} |
|
22 {% block breadcrumbs %} |
|
23 <div class="breadcrumbs"> |
|
24 <a href="../../"> |
|
25 {% trans "Home" %} |
|
26 </a> |
|
27 › |
|
28 <a href="../"> |
|
29 {{ app_label|capfirst }} |
|
30 </a> |
|
31 › |
|
32 {{ cl.opts.verbose_name_plural|capfirst }} |
|
33 </div> |
|
34 {% endblock %} |
|
35 {% endif %} |
|
36 |
|
37 {% block coltype %}flex{% endblock %} |
|
38 |
|
39 {% block content %} |
|
40 <div id="content-main"> |
|
41 {% block object-tools %} |
|
42 {% if has_add_permission %} |
|
43 <ul class="object-tools"> |
|
44 <li> |
|
45 <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink"> |
|
46 {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %} |
|
47 </a> |
|
48 </li> |
|
49 </ul> |
|
50 {% endif %} |
|
51 {% endblock %} |
|
52 {% if cl.formset.errors %} |
|
53 <p class="errornote"> |
|
54 {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} |
|
55 </p> |
|
56 <ul class="errorlist">{% for error in cl.formset.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul> |
|
57 {% endif %} |
|
58 <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> |
|
59 {% block search %}{% search_form cl %}{% endblock %} |
|
60 {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} |
|
61 |
|
62 {% block filters %} |
|
63 {% if cl.has_filters %} |
|
64 <div id="changelist-filter"> |
|
65 <h2>{% trans 'Filter' %}</h2> |
|
66 {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} |
|
67 </div> |
|
68 {% endif %} |
|
69 {% endblock %} |
|
70 |
|
71 <form action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}> |
|
72 {% if cl.formset %} |
|
73 {{ cl.formset.management_form }} |
|
74 {% endif %} |
|
75 |
|
76 {% block result_list %} |
|
77 {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} |
|
78 {% result_list cl %} |
|
79 {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} |
|
80 {% endblock %} |
|
81 {% block pagination %}{% pagination cl %}{% endblock %} |
|
82 </form> |
|
83 </div> |
|
84 </div> |
|
85 {% endblock %} |
|