root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / change_list.html @ 1a305335
History | View | Annotate | Download (3.39 KB)
1 | 1a305335 | officers | {% extends "admin/base_site.html" %} |
---|---|---|---|
2 | {% load i18n admin_static admin_list %} |
||
3 | {% load url from future %} |
||
4 | {% load admin_urls %} |
||
5 | |||
6 | {% block extrastyle %} |
||
7 | {{ block.super }} |
||
8 | <link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" /> |
||
9 | {% if cl.formset %} |
||
10 | <link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" /> |
||
11 | {% endif %} |
||
12 | {% if cl.formset or action_form %} |
||
13 | {% url 'admin:jsi18n' as jsi18nurl %} |
||
14 | <script type="text/javascript" src="{{ jsi18nurl|default:'../../jsi18n/' }}"></script> |
||
15 | {% endif %} |
||
16 | {{ media.css }} |
||
17 | {% if not actions_on_top and not actions_on_bottom %} |
||
18 | <style>
|
||
19 | #changelist table thead th:first-child {width: inherit}
|
||
20 | </style>
|
||
21 | {% endif %} |
||
22 | {% endblock %} |
||
23 | |||
24 | {% block extrahead %} |
||
25 | {{ block.super }} |
||
26 | {{ media.js }} |
||
27 | {% if action_form %}{% if actions_on_top or actions_on_bottom %} |
||
28 | <script type="text/javascript"> |
||
29 | (function($) {
|
||
30 | $(document).ready(function($) {
|
||
31 | $("tr input.action-select").actions();
|
||
32 | });
|
||
33 | })(django.jQuery);
|
||
34 | </script>
|
||
35 | {% endif %}{% endif %} |
||
36 | {% endblock %} |
||
37 | |||
38 | {% block bodyclass %}change-list{% endblock %} |
||
39 | |||
40 | {% if not is_popup %} |
||
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 }}
|
||
46 | </div>
|
||
47 | {% endblock %} |
||
48 | {% endif %} |
||
49 | |||
50 | {% block coltype %}flex{% endblock %} |
||
51 | |||
52 | {% block content %} |
||
53 | <div id="content-main"> |
||
54 | {% block object-tools %} |
||
55 | {% if has_add_permission %} |
||
56 | <ul class="object-tools"> |
||
57 | {% block object-tools-items %} |
||
58 | <li>
|
||
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 %} |
||
61 | </a>
|
||
62 | </li>
|
||
63 | {% endblock %} |
||
64 | </ul>
|
||
65 | {% endif %} |
||
66 | {% endblock %} |
||
67 | {% if cl.formset.errors %} |
||
68 | <p class="errornote"> |
||
69 | {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} |
||
70 | </p>
|
||
71 | {{ cl.formset.non_form_errors }} |
||
72 | {% endif %} |
||
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 %} |
||
76 | |||
77 | {% block filters %} |
||
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 %} |
||
82 | </div>
|
||
83 | {% endif %} |
||
84 | {% endblock %} |
||
85 | |||
86 | <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %} |
||
87 | {% if cl.formset %} |
||
88 | <div>{{ cl.formset.management_form }}</div> |
||
89 | {% endif %} |
||
90 | |||
91 | {% block result_list %} |
||
92 | {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} |
||
93 | {% result_list cl %} |
||
94 | {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} |
||
95 | {% endblock %} |
||
96 | {% block pagination %}{% pagination cl %}{% endblock %} |
||
97 | </form>
|
||
98 | </div>
|
||
99 | </div>
|
||
100 | {% endblock %} |