Commit | Line | Data |
---|---|---|
3a62d4fe OL |
1 | {% load dae %} |
2 | ||
179f6b49 | 3 | <fieldset> |
8f4a8792 OL |
4 | <h2>Contrat</h2> |
5 | <table> | |
6 | <tbody> | |
7 | <tr> | |
8 | <th>{{ form.type_contrat.label_tag }} :</th> | |
9 | <td colspan="4"> | |
10 | {{ form.type_contrat }}<br /> | |
11 | {{ form.type_contrat.errors }} | |
12 | </td> | |
13 | <th>{{ form.remplacement.label_tag }} :</th> | |
14 | <td> | |
15 | {{ form.remplacement }}<br /> | |
16 | {{ form.remplacement.errors }} | |
17 | </td> | |
18 | </tr> | |
19 | <tr> | |
20 | <th rowspan="2">Durée :</th> | |
21 | <td>du</td> | |
22 | <td> | |
23 | {{ form.contrat_date_debut }}<br /> | |
24 | <span class="info">({{form.contrat_date_debut.help_text }})</span><br /> | |
25 | {{ form.contrat_date_debut.errors }} | |
26 | </td> | |
27 | <td> au </td> | |
28 | <td> | |
29 | {{ form.contrat_date_fin }}<br /> | |
30 | <span class="info">({{form.contrat_date_fin.help_text }})</span><br /> | |
31 | {{ form.contrat_date_fin.errors }} | |
32 | </td> | |
33 | <th>{{ form.regime_travail.label_tag }} :<br />{{ form.regime_travail.errors }}</th> | |
34 | <td> | |
35 | {{ form.regime_travail }} | |
36 | <span class="info">{{ form.regime_travail.help_text }}</span> | |
37 | </td> | |
38 | </tr> | |
39 | <tr> | |
40 | <td colspan="4" class="info"> | |
41 | <p id="note-duree">Pour une durée indéterminée, spécifier uniquement la date de début.</p> | |
42 | </td> | |
43 | <th> | |
44 | {{ form.regime_travail_nb_heure_semaine.label_tag }} :<br /> | |
45 | {{ form.regime_travail_nb_heure_semaine.errors }} | |
46 | </th> | |
e2827532 OL |
47 | <td>{{ form.regime_travail_nb_heure_semaine }} |
48 | <span class="info">{{ form.regime_travail_nb_heure_semaine.help_text }}</span></td> | |
8f4a8792 OL |
49 | </tr> |
50 | <tr> | |
51 | <th>Statut : </th> | |
52 | <td colspan="4"> | |
53 | {{ form.statut }} | |
54 | <span class="row"> | |
55 | {{ form.statut_residence }} | |
56 | {% if form.statut.errors %} | |
57 | <br /> | |
58 | {{ form.statut.errors }} | |
59 | {% endif %} | |
60 | {% if form.statut_residence.errors %} | |
61 | <br /> | |
62 | {{ form.statut_residence.errors }} | |
63 | {% endif %} | |
64 | </span> | |
65 | </td> | |
66 | <th>{{ form.organisme_bstg.label_tag }} :</th> | |
67 | <td> | |
68 | {{ form.organisme_bstg }} | |
69 | {% if form.organisme_bstg.errors %} | |
70 | <br /> | |
71 | {{ form.organisme_bstg.errors }} | |
72 | {% endif %} | |
73 | <span class="info">{{ form.organisme_bstg.help_text }}</span><br/><br/> | |
74 | {{ form.organisme_bstg_autre }} | |
75 | <span class="info">{{ form.organisme_bstg_autre.help_text }}</span> | |
76 | </td> | |
77 | </tr> | |
78 | </tbody> | |
79 | </table> | |
80 | </fieldset> | |
81 | ||
82 | <fieldset> | |
179f6b49 OL |
83 | <h2>Classement et salaire de base</h2> |
84 | <table> | |
eabaed81 | 85 | <tbody> |
179f6b49 OL |
86 | <tr> |
87 | <td colspan="7"> | |
88 | <h3>Ancien dossier <span class="info">(le cas échéant)</span></h3> | |
89 | </td> | |
90 | </tr> | |
179f6b49 | 91 | <tr> |
eabaed81 OL |
92 | <td colspan="7"> |
93 | {{ employe }} <span class="info">{{ employe.dossier_set.all.reverse }}</span> | |
179f6b49 OL |
94 | </td> |
95 | </tr> | |
179f6b49 OL |
96 | <tr> |
97 | <th>{{ form.classement_anterieur.label_tag }}</th> | |
eabaed81 | 98 | <th>{{ form.salaire_anterieur.label_tag }}</th> |
179f6b49 | 99 | <th>{{ form.statut_anterieur.label_tag }}</th> |
67c15007 | 100 | <th>{{ form.type_contrat_anterieur.label_tag }}</th> |
eabaed81 | 101 | <th colpsan="3"></th> |
179f6b49 OL |
102 | </tr> |
103 | <tr> | |
4f3cb539 OL |
104 | <td>{{ form.classement_anterieur }}</td> |
105 | <td>{{ form.salaire_anterieur }} {{ form.devise_anterieur }}</td> | |
106 | <td>{{ form.statut_anterieur }}</td> | |
67c15007 | 107 | <td>{{ form.type_contrat_anterieur }}</td> |
eabaed81 | 108 | <td colspan="3"></td> |
179f6b49 OL |
109 | </tr> |
110 | <tr> | |
111 | <td colspan="7"> | |
c2639f57 | 112 | <h3>Précédent titulaire <span class="info">(le cas échéant)</span></h3> |
179f6b49 OL |
113 | </td> |
114 | </tr> | |
115 | <tr> | |
116 | <td colspan="7"> | |
3a62d4fe OL |
117 | {% if request.user|test_membre_drh %} |
118 | {{ form.instance.employe_anterieur }}{{ form.employe_anterieur }} | |
119 | {% else %} | |
b1baa306 | 120 | {{ form.instance.employe_anterieur }}{{ form.employe_anterieur.as_hidden }} |
3a62d4fe | 121 | {% endif %} |
179f6b49 OL |
122 | {{ form.employe_anterieur.errors }} |
123 | </td> | |
124 | </tr> | |
125 | <tr> | |
126 | <th>{{ form.classement_titulaire_anterieur.label_tag }}</th> | |
179f6b49 OL |
127 | <th colspan="4">{{ form.salaire_titulaire_anterieur.label_tag }}</th> |
128 | <th>{{ form.statut_titulaire_anterieur.label_tag }}</th> | |
129 | <th></th> | |
130 | </tr> | |
131 | <tr> | |
3a62d4fe OL |
132 | {% if request.user|test_membre_drh %} |
133 | <td>{{ form.instance.classement_titulaire_anterieur }} | |
134 | {{ form.classement_titulaire_anterieur }}<br /> | |
135 | {{ form.classement_titulaire_anterieur.errors }} | |
136 | </td> | |
80bcc96b | 137 | <td>{{ form.instance.salaire_titulaire_anterieur }}{{ form.salaire_titulaire_anterieur }} {{ form.devise_titulaire_anterieur }}</td> |
3a62d4fe OL |
138 | <td></td> |
139 | <td></td> | |
140 | <td></td> | |
141 | <td>{{ form.instance.statut_titulaire_anterieur }}{{ form.statut_titulaire_anterieur }}</td> | |
142 | {% else %} | |
143 | <td>{{ form.instance.classement_titulaire_anterieur }} | |
144 | {{ form.classement_titulaire_anterieur.as_hidden }}<br /> | |
145 | {{ form.classement_titulaire_anterieur.errors }} | |
146 | </td> | |
80bcc96b | 147 | <td>{{ form.instance.salaire_titulaire_anterieur }}{{ form.salaire_titulaire_anterieur.as_hidden }} {{ form.instance.devise_titulaire_anterieur.as_hidden }}</td> |
3a62d4fe OL |
148 | <td></td> |
149 | <td></td> | |
150 | <td></td> | |
151 | <td>{{ form.instance.statut_titulaire_anterieur }}{{ form.statut_titulaire_anterieur.as_hidden }}</td> | |
152 | {% endif %} | |
179f6b49 OL |
153 | <td></td> |
154 | </tr> | |
155 | <tr> | |
156 | <td colspan="7"> | |
157 | <h3>Proposition de classement</h3> | |
158 | </td> | |
159 | </tr> | |
179f6b49 OL |
160 | <tr> |
161 | <th>{{ form.classement.label_tag }}</th> | |
66796c1f | 162 | <th colspan="3">{{ form.salaire.label_tag }}</th> |
179f6b49 OL |
163 | <td colspan="2"></td> |
164 | </tr> | |
165 | <tr> | |
66796c1f | 166 | <td>{{ form.classement }}<br />{{ form.classement.errors }}</td> |
58ad4beb | 167 | <td>{{ form.salaire.errors }} {{ form.salaire }} {{ form.devise }} |
66796c1f OL |
168 | <span class="info">(fourchette du poste : {{ poste.salaire_min }} {{ poste.devise_min.code }} |
169 | - {{ poste.salaire_max }} {{ poste.devise_max.code }})</span> | |
179f6b49 | 170 | </td> |
66796c1f | 171 | <td id="salaire-propose-euros" class="montant"></td> |
179f6b49 OL |
172 | <td>€</td> |
173 | <td colspan="2"></td> | |
174 | </tr> | |
175 | </tbody> | |
176 | </table> | |
177 | </fieldset> | |
178 | ||
179 | <script type="text/javascript"> | |
0e7a9d8b OL |
180 | /* Changement de classement, on repropose un salaire */ |
181 | $('#id_classement').change(function() { | |
66796c1f OL |
182 | loadSalaire(); |
183 | proposition_comparaison($('#id_devise').val()); | |
0e7a9d8b OL |
184 | }); |
185 | /* changements, on recalcule */ | |
186 | $('#id_salaire').focusout(function() {proposition_comparaison($('#id_devise').val());}); | |
187 | $('#id_devise').change(function() {proposition_comparaison($('#id_devise').val());}); | |
188 | proposition_comparaison($('#id_devise').val()); | |
179f6b49 OL |
189 | </script> |
190 | ||
191 | <fieldset> | |
179f6b49 OL |
192 | <h2>Accès et ouverture des comptes</h2> |
193 | <table> | |
194 | <tbody> | |
195 | <tr> | |
196 | <th> | |
197 | {{ form.compte_compta.label_tag }} | |
198 | </th> | |
199 | <td> | |
200 | {{ form.compte_compta }}<br /> | |
201 | {{ form.compte_compta.errors }} | |
202 | </td> | |
203 | <th> | |
204 | {{ form.compte_courriel.label_tag }} | |
205 | </th> | |
206 | <td> | |
207 | {{ form.compte_courriel }}<br /> | |
208 | {{ form.compte_courriel.errors }} | |
209 | </td> | |
210 | </tr> | |
211 | </tbody> | |
212 | </table> | |
213 | </fieldset> | |
d766bf2c | 214 |