Commit | Line | Data |
---|---|---|
8e0d552d NBV |
1 | {% extends "admin/base_site.html" %} |
2 | {% load i18n admin_modify adminmedia %} | |
3 | ||
4 | {% block extrahead %}{{ block.super }} | |
5 | {% url admin:jsi18n as jsi18nurl %} | |
6 | <script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script> | |
7 | {{ media }} | |
8 | {% endblock %} | |
9 | ||
32c22f96 | 10 | {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" /> |
63f8af95 | 11 | <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/dae.css" />{% endblock %} |
8e0d552d NBV |
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> › | |
20 | <a href="../../">{{ app_label|capfirst|escape }}</a> › | |
21 | {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} › | |
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"><li><a href="history/" class="historylink">{% trans "History" %}</a></li> | |
30 | {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%} | |
32c22f96 | 31 | <li><a class="historylink" target="_blank" href="/recrutement/candidat_pdf/?id={{original.id}}">Imprimer la fiche du candidat</a></li> |
8e0d552d NBV |
32 | </ul> |
33 | {% endif %}{% endif %} | |
34 | {% endblock %} | |
35 | <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 %} | |
36 | <div> | |
37 | {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} | |
38 | {% if save_on_top %}{% submit_row %}{% endif %} | |
39 | {% if errors %} | |
40 | <p class="errornote"> | |
41 | {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} | |
42 | </p> | |
43 | {{ adminform.form.non_field_errors }} | |
44 | {% endif %} | |
45 | ||
46 | {% for fieldset in adminform %} | |
47 | {% include "admin/includes/fieldset.html" %} | |
48 | {% endfor %} | |
49 | ||
50 | {% block after_field_sets %}{% endblock %} | |
51 | ||
52 | {% for inline_admin_formset in inline_admin_formsets %} | |
53 | {% include inline_admin_formset.opts.template %} | |
54 | {% endfor %} | |
55 | ||
56 | <fieldset class="module aligned "> | |
8f800d64 | 57 | <h2>Pièces jointes</h2> |
8e0d552d | 58 | {% for p in original.pieces_jointes %} |
e34ba098 | 59 | {% if p.path %} |
8e0d552d | 60 | <div class="form-row"> |
572c8d08 NBV |
61 | <label>{{ p.get_nom_display }}:</label> |
62 | <p><a href="{{ p.path.url }}">{{ p.path.url }}</a></p> | |
8e0d552d | 63 | </div> |
e34ba098 | 64 | {% endif %} |
8f800d64 | 65 | {% endfor %} |
8e0d552d NBV |
66 | </fieldset> |
67 | ||
68 | {% block after_related_objects %}{% endblock %} | |
69 | ||
13389dae NBV |
70 | <div class="submit-row"> |
71 | <a href="../" class="default">Retour</a> | |
72 | </div> | |
8e0d552d NBV |
73 | |
74 | {% if adminform and add %} | |
75 | <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script> | |
76 | {% endif %} | |
77 | ||
78 | {# JavaScript for prepopulated fields #} | |
79 | {% prepopulated_fields_js %} | |
80 | ||
81 | </div> | |
32c22f96 NBV |
82 | </form> |
83 | </div> | |
8e0d552d | 84 | {% endblock %} |