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> | |
47 | <td>{{ form.regime_travail_nb_heure_semaine }}</td> | |
48 | </tr> | |
49 | <tr> | |
50 | <th>Statut : </th> | |
51 | <td colspan="4"> | |
52 | {{ form.statut }} | |
53 | <span class="row"> | |
54 | {{ form.statut_residence }} | |
55 | {% if form.statut.errors %} | |
56 | <br /> | |
57 | {{ form.statut.errors }} | |
58 | {% endif %} | |
59 | {% if form.statut_residence.errors %} | |
60 | <br /> | |
61 | {{ form.statut_residence.errors }} | |
62 | {% endif %} | |
63 | </span> | |
64 | </td> | |
65 | <th>{{ form.organisme_bstg.label_tag }} :</th> | |
66 | <td> | |
67 | {{ form.organisme_bstg }} | |
68 | {% if form.organisme_bstg.errors %} | |
69 | <br /> | |
70 | {{ form.organisme_bstg.errors }} | |
71 | {% endif %} | |
72 | <span class="info">{{ form.organisme_bstg.help_text }}</span><br/><br/> | |
73 | {{ form.organisme_bstg_autre }} | |
74 | <span class="info">{{ form.organisme_bstg_autre.help_text }}</span> | |
75 | </td> | |
76 | </tr> | |
77 | </tbody> | |
78 | </table> | |
79 | </fieldset> | |
80 | ||
81 | <fieldset> | |
179f6b49 OL |
82 | <h2>Classement et salaire de base</h2> |
83 | <table> | |
eabaed81 | 84 | <tbody> |
179f6b49 OL |
85 | <tr> |
86 | <td colspan="7"> | |
87 | <h3>Ancien dossier <span class="info">(le cas échéant)</span></h3> | |
88 | </td> | |
89 | </tr> | |
179f6b49 | 90 | <tr> |
eabaed81 OL |
91 | <td colspan="7"> |
92 | {{ employe }} <span class="info">{{ employe.dossier_set.all.reverse }}</span> | |
179f6b49 OL |
93 | </td> |
94 | </tr> | |
179f6b49 OL |
95 | <tr> |
96 | <th>{{ form.classement_anterieur.label_tag }}</th> | |
eabaed81 | 97 | <th>{{ form.salaire_anterieur.label_tag }}</th> |
179f6b49 | 98 | <th>{{ form.statut_anterieur.label_tag }}</th> |
eabaed81 OL |
99 | <th>{{ form.type_contrat.label_tag }}</th> |
100 | <th colpsan="3"></th> | |
179f6b49 OL |
101 | </tr> |
102 | <tr> | |
4f3cb539 OL |
103 | <td>{{ form.classement_anterieur }}</td> |
104 | <td>{{ form.salaire_anterieur }} {{ form.devise_anterieur }}</td> | |
105 | <td>{{ form.statut_anterieur }}</td> | |
106 | <td>{{ form.type_contrat }}</td> | |
eabaed81 | 107 | <td colspan="3"></td> |
179f6b49 OL |
108 | </tr> |
109 | <tr> | |
110 | <td colspan="7"> | |
c2639f57 | 111 | <h3>Précédent titulaire <span class="info">(le cas échéant)</span></h3> |
179f6b49 OL |
112 | </td> |
113 | </tr> | |
114 | <tr> | |
115 | <td colspan="7"> | |
3a62d4fe OL |
116 | {% if request.user|test_membre_drh %} |
117 | {{ form.instance.employe_anterieur }}{{ form.employe_anterieur }} | |
118 | {% else %} | |
b1baa306 | 119 | {{ form.instance.employe_anterieur }}{{ form.employe_anterieur.as_hidden }} |
3a62d4fe | 120 | {% endif %} |
179f6b49 OL |
121 | {{ form.employe_anterieur.errors }} |
122 | </td> | |
123 | </tr> | |
124 | <tr> | |
125 | <th>{{ form.classement_titulaire_anterieur.label_tag }}</th> | |
179f6b49 OL |
126 | <th colspan="4">{{ form.salaire_titulaire_anterieur.label_tag }}</th> |
127 | <th>{{ form.statut_titulaire_anterieur.label_tag }}</th> | |
128 | <th></th> | |
129 | </tr> | |
130 | <tr> | |
3a62d4fe OL |
131 | {% if request.user|test_membre_drh %} |
132 | <td>{{ form.instance.classement_titulaire_anterieur }} | |
133 | {{ form.classement_titulaire_anterieur }}<br /> | |
134 | {{ form.classement_titulaire_anterieur.errors }} | |
135 | </td> | |
80bcc96b | 136 | <td>{{ form.instance.salaire_titulaire_anterieur }}{{ form.salaire_titulaire_anterieur }} {{ form.devise_titulaire_anterieur }}</td> |
3a62d4fe OL |
137 | <td></td> |
138 | <td></td> | |
139 | <td></td> | |
140 | <td>{{ form.instance.statut_titulaire_anterieur }}{{ form.statut_titulaire_anterieur }}</td> | |
141 | {% else %} | |
142 | <td>{{ form.instance.classement_titulaire_anterieur }} | |
143 | {{ form.classement_titulaire_anterieur.as_hidden }}<br /> | |
144 | {{ form.classement_titulaire_anterieur.errors }} | |
145 | </td> | |
80bcc96b | 146 | <td>{{ form.instance.salaire_titulaire_anterieur }}{{ form.salaire_titulaire_anterieur.as_hidden }} {{ form.instance.devise_titulaire_anterieur.as_hidden }}</td> |
3a62d4fe OL |
147 | <td></td> |
148 | <td></td> | |
149 | <td></td> | |
150 | <td>{{ form.instance.statut_titulaire_anterieur }}{{ form.statut_titulaire_anterieur.as_hidden }}</td> | |
151 | {% endif %} | |
179f6b49 OL |
152 | <td></td> |
153 | </tr> | |
154 | <tr> | |
155 | <td colspan="7"> | |
156 | <h3>Proposition de classement</h3> | |
157 | </td> | |
158 | </tr> | |
179f6b49 OL |
159 | <tr> |
160 | <th>{{ form.classement.label_tag }}</th> | |
66796c1f | 161 | <th colspan="3">{{ form.salaire.label_tag }}</th> |
179f6b49 OL |
162 | <td colspan="2"></td> |
163 | </tr> | |
164 | <tr> | |
66796c1f | 165 | <td>{{ form.classement }}<br />{{ form.classement.errors }}</td> |
58ad4beb | 166 | <td>{{ form.salaire.errors }} {{ form.salaire }} {{ form.devise }} |
66796c1f OL |
167 | <span class="info">(fourchette du poste : {{ poste.salaire_min }} {{ poste.devise_min.code }} |
168 | - {{ poste.salaire_max }} {{ poste.devise_max.code }})</span> | |
179f6b49 | 169 | </td> |
66796c1f | 170 | <td id="salaire-propose-euros" class="montant"></td> |
179f6b49 OL |
171 | <td>€</td> |
172 | <td colspan="2"></td> | |
173 | </tr> | |
174 | </tbody> | |
175 | </table> | |
176 | </fieldset> | |
177 | ||
178 | <script type="text/javascript"> | |
0e7a9d8b OL |
179 | /* Changement de classement, on repropose un salaire */ |
180 | $('#id_classement').change(function() { | |
66796c1f OL |
181 | loadSalaire(); |
182 | proposition_comparaison($('#id_devise').val()); | |
0e7a9d8b OL |
183 | }); |
184 | /* changements, on recalcule */ | |
185 | $('#id_salaire').focusout(function() {proposition_comparaison($('#id_devise').val());}); | |
186 | $('#id_devise').change(function() {proposition_comparaison($('#id_devise').val());}); | |
187 | proposition_comparaison($('#id_devise').val()); | |
179f6b49 OL |
188 | </script> |
189 | ||
190 | <fieldset> | |
179f6b49 OL |
191 | <h2>Accès et ouverture des comptes</h2> |
192 | <table> | |
193 | <tbody> | |
194 | <tr> | |
195 | <th> | |
196 | {{ form.compte_compta.label_tag }} | |
197 | </th> | |
198 | <td> | |
199 | {{ form.compte_compta }}<br /> | |
200 | {{ form.compte_compta.errors }} | |
201 | </td> | |
202 | <th> | |
203 | {{ form.compte_courriel.label_tag }} | |
204 | </th> | |
205 | <td> | |
206 | {{ form.compte_courriel }}<br /> | |
207 | {{ form.compte_courriel.errors }} | |
208 | </td> | |
209 | </tr> | |
210 | </tbody> | |
211 | </table> | |
212 | </fieldset> | |
d766bf2c | 213 |