Merge branch 'test' into dev
[auf_rh_dae.git] / project / dae / templates / dae / embauche.html
CommitLineData
139686f2 1{% extends 'base.html' %}
0e0aeb7e 2{% load adminmedia %}
139686f2 3
e8e75458 4{% block title %}RH - DAE - Embauche{% endblock %}
5{% block titre %}Ressources humaines{% endblock %}
6{% block sous_titre %}Demande d'autorisation d'embauche{% endblock %}
7
139686f2
NC
8{% block extrahead %}
9 <script src="{{ MEDIA_URL }}js/jquery-1.5.1.min.js"
10 type="text/javascript"></script>
da3ca955 11
0e0aeb7e
OL
12 {% comment %} style pour le calendier {% endcomment %}
13 <script type="text/javascript">
14 window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";
15 </script>
16 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/calendrier.css" />
9d1253e9 17 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/dae.css" />
0e0aeb7e
OL
18 <script type="text/javascript" src="/admin/jsi18n/"></script>
19 <script type="text/javascript" src="{% admin_media_prefix %}js/core.js"></script>
20 <script type="text/javascript" src="{% admin_media_prefix %}js/calendar.js"></script>
21 <script type="text/javascript" src="{% admin_media_prefix %}js/admin/DateTimeShortcuts.js"></script>
03b395db
OL
22 <script src="{{ MEDIA_URL }}jquery-autocomplete/jquery.autocomplete.js" type="text/javascript"></script>
23 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}jquery-autocomplete/jquery.autocomplete.css" />
dfc31755
OL
24 <script src="{{ MEDIA_URL }}js/dae.js" type="text/javascript"></script>
25 <script src="{{ MEDIA_URL }}js/dae-embauche.js" type="text/javascript"></script>
139686f2 26{% endblock %}
139686f2
NC
27
28{% block main %}
58ad4beb 29
da3ca955 30<h1>Demandes d'autorisation d'engagement de personnel</h1>
0db0aedd 31<form action="" method="post" enctype="multipart/form-data">
da3ca955 32{% if step == 'poste' %}
33 <h2 class="section">SECTION 1 - POSTE</h2>
34 <fieldset>
35 <h2>Poste visé</h2>
36
37 <table cellspacing="0">
139686f2 38 {{ form.as_table }}
da3ca955 39 </table>
40 </fieldset>
da3ca955 41{% else %}
42 <h2 class="section">SECTION 1 - POSTE</h2>
5b78da24 43 {% include 'dae/poste_resume.html' %}
da3ca955 44
45 <h2 class="section">SECTION 2 - PERSONNEL ENGAGÉ</h2>
46 <fieldset>
47 <div>
48 <div class="gauche"><h2>Personne</h2></div>
49 <div class="droite">
50 <table class="droite">
51 <tbody>
52 <tr>
53 <th>Mobilité interne</th>
54 <td colspan="3"><input id="mobilite_interne" type="checkbox" name="mobilite_interne" /></td>
55 </tr>
56 </tbody>
57 </table>
58 </div>
59 </div>
60 <div class="clear"></div>
61 <table id="form-employe">
62 <tbody>
63 <tr>
64 <th>
65 Employé :<br />
66 {{ forms.employe.employe.errors }}
67 </th>
68 <td colspan="5">{{ forms.employe.employe }}</td>
69 </tr>
70 <tr>
71 <th>
72 {{ forms.employe.nom.label_tag }} :<br />
73 {{ forms.employe.nom.errors }}
74 </th>
75 <td>{{ forms.employe.nom }}</td>
76 <th>
77 {{ forms.employe.prenom.label_tag }} :<br />
78 {{ forms.employe.prenom.errors }}
79 </th>
80 <td>{{ forms.employe.prenom }}</td>
81 <th>
82 {{ forms.employe.genre.label_tag }} :<br />
83 {{ forms.employe.genre.errors }}
84 </th>
85 <td>{{ forms.employe.genre }}</td>
86 </tr>
87 </tbody>
88 </table>
89
90 <input type="hidden" id="poste" name="poste"
91 value="dae-{{ poste.id }}" />
92 <input type="hidden" id="implantation" name="implantation"
93 value="{{ poste.implantation_id }}" />
94 <input type="hidden" id="dossier" name="dossier"
95 value="{{ dossier.id }}" />
96 </fieldset>
97
7e43f9b6
OL
98 <fieldset>
99 <h2>Comparaison salariale</h2>
100 <span class="info">dans la région pour les employés occupant un poste similaire</span>
03b395db
OL
101 {% for f in dossiersComparaisonsForm.management_form %}
102 {{ f }}
103 {% endfor %}
104
105 {% for f in dossiersComparaisonsForm.forms %}
106 <table>
107 {% for field in f %}
108 {% if field.is_hidden %}{{ field }}{% endif %}
109 {% endfor %}
110
111 <tr><td colspan=2>Rechercher (personne, poste) : {{ f.recherche }}</td></tr>
58ad4beb
OL
112 <tr><th>{{ f.implantation.label }}</th><td>{{ f.implantation.errors }} {{ f.implantation }}</td></tr>
113 <tr><th>{{ f.poste.label }}</th><td>{{ f.poste.errors }} {{ f.poste }}</td></tr>
114 <tr><th>{{ f.personne.label }}</th><td>{{ f.personne.errors }} {{ f.personne }}</td></tr>
115 <tr><th>{{ f.montant.label }} ({{f.devise.label }})</th><td>{{ f.montant.errors }} {{ f.montant }} {{ f.devise.errors }} {{f.devise }} ({{ f.montant_euros.errors }} {{ f.montant_euros }} EUR)</td></tr>
03b395db
OL
116 </table>
117 {% endfor %}
7e43f9b6
OL
118 </fieldset>
119
120
179f6b49
OL
121 <div id="form-dossier">
122 {% comment %}Wrapper du formulaire de dossier{% endcomment %}
72db8238
OL
123 {% with forms.dossier as form %}
124 {% include "dae/embauche-dossier.html" %}
125 {% endwith %}
179f6b49 126 </div>
6b34f27e 127
dbb687ad
OL
128 <fieldset>
129 <h2>Pièces jointes</h2>
130 <p class="info">CV, lettre de motivation...</p>
131 {% include "dae/pieces.html" %}
132 </fieldset>
133
0801327c
NC
134 <h2 class="section">SECTION 3 - COÛT GLOBAL</h2>
135
cb1d62b5 136 <fieldset>
cb1d62b5 137
58ad4beb 138 {% if dossier.id == None %}
cb1d62b5
NC
139 <p>
140 Vous devez enregister ce dossier avant de pouvoir détailler le
141 coût global.
142 </p>
143 {% else %}
144 <table cellspacing="0" id="global-cost">
145 {% include 'dae/embauche-remun.html' %}
146 </table>
147
148 <select id="type-remun" name="type-remun">
149 <option value="">(Ajouter une ligne)</option>
150 {% for tr in type_remun %}
151 <option value="{{ tr.id }}">{{ tr.nom }}</option>
152 {% endfor %}
153 </select>
154 {% endif %}
155
156 </fieldset>
157
0801327c 158 <h2 class="section">SECTION 4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)</h2>
e289ef67
OL
159 <h3>A - Justification du poste</h3>
160 <p>{{ poste.justification }}</p>
161
162 <h3>B - Justification de l'employé</h3>
72db8238
OL
163 <p class="info">Les questions posées pour la justification apparaîtront après avoir enregistré le dossier.</p>
164 <table>
165 <tr>
166 <th>NOUVEL EMPLOYÉ</th>
167 <th>RENOUVELLEMENT, PROLONGATION, RECLASSEMENT, MOBILITÉ INTERNE</th>
168 </tr>
169 <tr>
170 <td>
171 {% with justificationsNouveauForm as form %}
172 {% include "dae/justifications.html" %}
173 {% endwith %}
174 </td>
175 <td>
176 {% with justificationsAutreForm as form %}
177 {% include "dae/justifications.html" %}
178 {% endwith %}
179 </td>
180 </tr>
181 </table>
5bc760f9 182 <input type="submit" name="continue" value="Sauvegarder et continuer" />
139686f2 183 <input type="submit" name="save" value="Sauvegarder" />
cb1d62b5 184 </form>
cb1d62b5 185 {% endif %}
139686f2
NC
186{% endblock %}
187