Première version en Python-Django.
[auf_paf.git] / paf / templates / edit_info.html
CommitLineData
3be30a94 1{% extends "base.html" %}
0ba28d89 2{% load i18n admin_static admin_modify %}
3{% load url from future %}
4{% load admin_urls %}
5
3be30a94 6{% block edit_info %}{% endblock %}
7
0ba28d89 8{% block extrahead %}{{ block.super }}
9{% url 'admin:jsi18n' as jsi18nurl %}
10<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
11{{ media }}
12{% endblock %}
13
14{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />{% endblock %}
15
16{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
17
18{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
19
20{% if not is_popup %}
21{% block breadcrumbs %}
22<div class="breadcrumbs">
23<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
24&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ app_label|capfirst|escape }}</a>
25&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 %}
26&rsaquo; {% if add %}{% trans 'Add' %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
27</div>
28{% endblock %}
29{% endif %}
3be30a94 30
31{% block content_title %}<h1>Modification de votre information</h1>{% endblock %}
0ba28d89 32
33{% block content %}<div id="content-main">
34<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 %}
35<div>
36{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
0ba28d89 37{% if errors %}
38 <p class="errornote">
39 {% blocktrans count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
40 </p>
41 {{ adminform.form.non_field_errors }}
42{% endif %}
43
44{% block field_sets %}
45{% for fieldset in adminform %}
46 {% include "admin/includes/fieldset.html" %}
47{% endfor %}
48{% endblock %}
49
50{% block after_field_sets %}{% endblock %}
51
52{% block inline_field_sets %}
53{% for inline_admin_formset in inline_admin_formsets %}
54 {% include inline_admin_formset.opts.template %}
55{% endfor %}
56{% endblock %}
57
58{% block after_related_objects %}{% endblock %}
59
3be30a94 60{% block submit_buttons_bottom %}
61<div class="submit-row">
62<input type="submit" value="Enregistrer" class="default" name="_save" />
63</div>
64{% endblock %}
0ba28d89 65
66{% if adminform and add %}
67 <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
68{% endif %}
69
70{# JavaScript for prepopulated fields #}
71{% prepopulated_fields_js %}
72
73</div>
74</form></div>
75{% endblock %}