| 1 | {% extends "base.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 | › <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst|escape }}</a> |
| 23 | › {% 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 | › {% if add %}{% trans 'Add' %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %} |
| 25 | </div> |
| 26 | {% endblock %} |
| 27 | {% endif %} |
| 28 | |
| 29 | {% block content_title %}<h1>Information en détail de l'étudiant</h1>{% endblock %} |
| 30 | |
| 31 | {% block content %}<div id="content-main"> |
| 32 | <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 %} |
| 33 | <div> |
| 34 | {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} |
| 35 | {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} |
| 36 | {% if errors %} |
| 37 | <p class="errornote"> |
| 38 | {% blocktrans count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} |
| 39 | </p> |
| 40 | {{ adminform.form.non_field_errors }} |
| 41 | {% endif %} |
| 42 | |
| 43 | {% block field_sets %} |
| 44 | {% for fieldset in adminform %} |
| 45 | {% include "admin/includes/fieldset.html" %} |
| 46 | {% endfor %} |
| 47 | {% endblock %} |
| 48 | |
| 49 | {% block after_field_sets %}{% endblock %} |
| 50 | |
| 51 | {% block inline_field_sets %} |
| 52 | {% for inline_admin_formset in inline_admin_formsets %} |
| 53 | {% include inline_admin_formset.opts.template %} |
| 54 | {% endfor %} |
| 55 | {% endblock %} |
| 56 | |
| 57 | {% block after_related_objects %}{% endblock %} |
| 58 | |
| 59 | |
| 60 | {% if adminform and add %} |
| 61 | <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script> |
| 62 | {% endif %} |
| 63 | |
| 64 | {# JavaScript for prepopulated fields #} |
| 65 | {% prepopulated_fields_js %} |
| 66 | |
| 67 | </div> |
| 68 | </form></div> |
| 69 | {% endblock %} |