Ajout bouton impression avec style d'impression pour les fiches des candidats
[auf_rh_dae.git] / project / recrutement / templates / admin / recrutement / candidat / change_form.html
CommitLineData
f71d8904
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
NBV
10{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
11<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/dae.css" />{% endblock %}
f71d8904
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> &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"><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>
f71d8904
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 ">
57 <h2>Moyenne des notes</h2>
58 <div class="form-row">
59 <label>Moyenne:</label>
60 <p>{{ original.moyenne_notes }}</p>
61 </div>
62</fieldset>
63
64{% block after_related_objects %}{% endblock %}
65
66{% submit_row %}
67
68{% if adminform and add %}
69 <script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
70{% endif %}
71
72{# JavaScript for prepopulated fields #}
73{% prepopulated_fields_js %}
74
75</div>
32c22f96 76
f71d8904
NBV
77</form></div>
78{% endblock %}