3be30a94 |
1 | {% extends "base.html" %} |
0ba28d89 |
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 | |
3be30a94 |
52 | {% block content_title %}<h1>Liste des étudiants</h1>{% endblock %} |
53 | |
0ba28d89 |
54 | {% block content %} |
55 | <div id="content-main"> |
56 | {% block object-tools %} |
57 | {% if has_add_permission %} |
58 | <ul class="object-tools"> |
59 | {% block object-tools-items %} |
60 | <li> |
61 | <a href="{% url cl.opts|admin_urlname:'add' %}{% if is_popup %}?_popup=1{% endif %}" class="addlink"> |
62 | {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %} |
63 | </a> |
64 | </li> |
65 | {% endblock %} |
66 | </ul> |
67 | {% endif %} |
68 | {% endblock %} |
69 | {% if cl.formset.errors %} |
70 | <p class="errornote"> |
71 | {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} |
72 | </p> |
73 | {{ cl.formset.non_form_errors }} |
74 | {% endif %} |
75 | <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> |
76 | {% block search %}{% search_form cl %}{% endblock %} |
77 | {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} |
78 | |
79 | {% block filters %} |
80 | {% if cl.has_filters %} |
81 | <div id="changelist-filter"> |
82 | <h2>{% trans 'Filter' %}</h2> |
83 | {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} |
84 | </div> |
85 | {% endif %} |
86 | {% endblock %} |
87 | |
88 | <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %} |
89 | {% if cl.formset %} |
90 | <div>{{ cl.formset.management_form }}</div> |
91 | {% endif %} |
92 | |
93 | {% block result_list %} |
0ba28d89 |
94 | {% result_list cl %} |
0ba28d89 |
95 | {% endblock %} |
96 | {% block pagination %}{% pagination cl %}{% endblock %} |
97 | </form> |
98 | </div> |
99 | </div> |
100 | {% endblock %} |