17bdc1e79d4e11ef5836b3a74a229635e0ed7310
[auf_paf.git] / paf / templates / edit_info copy.html
1 {% extends "base.html" %}
2 {% load i18n admin_static admin_modify %}
3 {% load url from future %}
4 {% load admin_urls %}
5
6 {% block css %}
7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/edit_info.css" media="all"/>
8 {% endblock %}
9
10 {% block main %}
11
12 {% if messages %}
13 {% for message in messages %}{%endfor%}
14 <ul class="messagelist">
15 <li class="info">Vos informations ont été modifiées avec succès.</li>
16 </ul>
17 {% endif %}
18
19 <div id="content-main">
20 <h1>Edit info</h1>
21 <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 %}
22 <div>
23 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
24 {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %}
25 {% if errors %}
26 <p class="errornote">
27 {% blocktrans count counter=errors|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
28 </p>
29 {{ adminform.form.non_field_errors }}
30 {% endif %}
31
32 {% block field_sets %}
33 {% for fieldset in adminform %}
34 {% include "admin/includes/fieldset.html" %}
35 {% endfor %}
36 {% endblock %}
37
38 {% block after_field_sets %}{% endblock %}
39
40 {% block inline_field_sets %}
41 {% for inline_admin_formset in inline_admin_formsets %}
42 {% include inline_admin_formset.opts.template %}
43 {% endfor %}
44 {% endblock %}
45
46 {% block after_related_objects %}{% endblock %}
47
48 {% block submit_buttons_bottom %}{% submit_row %}{% endblock %}
49
50 {% if adminform and add %}
51 <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
52 {% endif %}
53
54 {# JavaScript for prepopulated fields #}
55 {% prepopulated_fields_js %}
56
57 </div>
58 </form></div>
59 {% endblock %}