[#3812] Corrigé l'affichage de la liste des devises
[auf_rh_dae.git] / project / templates / reversion / change_form.html
CommitLineData
fb94ebfb
OL
1{% extends "admin/base_site.html" %}
2{% load i18n admin_modify adminmedia %}
3{% load url from future %}
4
5{% block extrahead %}{{ block.super }}
6{% url 'admin:jsi18n' as jsi18nurl %}
7<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
8{{ media }}
9{% endblock %}
10
11{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
12
13{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
14
15{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
16
17{% block breadcrumbs %}{% if not is_popup %}
18<div class="breadcrumbs">
19 <a href="../../../">{% trans "Home" %}</a> &rsaquo;
20 <a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo;
21 {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo;
22 {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
23</div>
24{% endif %}{% endblock %}
25
26{% block content %}<div id="content-main">
27{% block object-tools %}
28{% if change %}{% if not is_popup %}
29 <ul class="object-tools">
30 {% block object-tools-items %}
31 <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
32 {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
33 {% endblock %}
34 </ul>
35{% endif %}{% endif %}
36{% endblock %}
37<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 %}
38<div>
39{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
40{% if errors %}
41 <p class="errornote">
42 {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
43 </p>
44 {{ adminform.form.non_field_errors }}
45{% endif %}
46
47{% for fieldset in adminform %}
48 {% include "admin/includes/fieldset.html" %}
49{% endfor %}
50
51{% block after_field_sets %}{% endblock %}
52
53{% for inline_admin_formset in inline_admin_formsets %}
54 {% include inline_admin_formset.opts.template %}
55{% endfor %}
56
57{% block after_related_objects %}{% endblock %}
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 %}