Nettoyage, 1ère passe…
[auf_paf.git] / paf / templates / student_info.html
CommitLineData
0ba28d89 1{% extends "base_enseignant.html" %}
2{% load i18n admin_static admin_modify %}
3{% load url from future %}
4{% load admin_urls %}
5
6{% block extrahead %}{{ block.super }}
7{% url 'admin:jsi18n' as jsi18nurl %}
8<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
9{{ media }}
10{% endblock %}
11
12{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />{% endblock %}
13
14{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
15
16{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
17
18{% if not is_popup %}
19{% block breadcrumbs %}
20<div class="breadcrumbs">
21<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
22&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst|escape }}</a>
23&rsaquo; {% if has_change_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
24&rsaquo; {% if add %}{% trans 'Add' %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
25</div>
26{% endblock %}
27{% endif %}
28
29
30{% block content %}<div id="content-main">
31<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}
32<div>
33{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
34{% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %}
35{% if errors %}
36 <p class="errornote">
37 {% blocktrans count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
38 </p>
39 {{ adminform.form.non_field_errors }}
40{% endif %}
41
42{% block field_sets %}
43{% for fieldset in adminform %}
44 {% include "admin/includes/fieldset.html" %}
45{% endfor %}
46{% endblock %}
47
48{% block after_field_sets %}{% endblock %}
49
50{% block inline_field_sets %}
51{% for inline_admin_formset in inline_admin_formsets %}
52 {% include inline_admin_formset.opts.template %}
53{% endfor %}
54{% endblock %}
55
56{% block after_related_objects %}{% endblock %}
57
58
59{% if adminform and add %}
60 <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
61{% endif %}
62
63{# JavaScript for prepopulated fields #}
64{% prepopulated_fields_js %}
65
66</div>
67</form></div>
68{% endblock %}