1 {% extends 'base.html' %}
3 {% block title %}RH - DAE{% endblock %}
4 {% block titre %}Ressources humaines{% endblock %}
6 Demande d'autorisation d'embauche
10 <script src=
"{{ MEDIA_URL }}js/jquery-1.5.1.min.js"
11 type=
"text/javascript"></script>
12 <script src=
"{{ MEDIA_URL }}js/jquery-ui-1.8.11.custom.min.js"
13 type=
"text/javascript"></script>
14 <link href=
"{{ MEDIA_URL }}/css/redmond/jquery-ui-1.8.11.custom.css"
18 h1.section {background-color: #D0E8F8; text-align: center; color: #
5F5F5F; margin:
50px
0px
26px
0px; border-bottom:
3px solid #BBD8EC; padding:
4px;}
19 .row {padding:
10px
0px; clear: both; display:block;}
20 .row * {float: left; margin:
0px; padding:
0px; margin-right:
4px;}
21 .row li {list-style-type: none;}
22 .underline {text-decoration: underline;}
23 .clear {display: block; clear: both;}
24 .note {text-decoration: underline; font-style: italic; margin-left:
12px;}
25 .info {font-size:
13px; font-style: italic;}
26 .noborder {border:none; margin:
0; padding;
0}
27 tr.noborder td {border:none; padding-left:
0;}
32 <h1>Demande d'autorisation de création de poste
</h1>
34 <form action=
"" method=
"post">
40 Poste existant : {{ poste.nom }} ({{ poste.implantation.nom }})
46 <th>{{ form.poste.label_tag }} :
<br />{{ form.poste.errors }}
</th>
47 <td>{{ form.poste }}
</td>
50 <th>{{ form.nom.label_tag }} :
<br />{{ form.nom.errors }}
</th>
51 <td>{{ form.nom }}
</td>
54 <th>{{ form.type_poste.label_tag }} :
<br />{{ form.type_poste.errors }}
</th>
55 <td>{{ form.type_poste }}
</td>
58 <th>{{ form.implantation.label_tag }} :
<br />{{ form.implantation.errors }}
</th>
59 <td>{{ form.implantation }}
</td>
62 <th>{{ form.service.label_tag }} :
<br />{{ form.service.errors }}
</th>
63 <td>{{ form.service }}
</td>
66 <th>{{ form.responsable.label_tag }} :
<br />{{ form.responsable.errors }}
</th>
67 <td>{{ form.responsable }}
</td>
78 <th>{{ form.statut_residence.label_tag }} :
<br />{{ form.statut_residence.errors }}
</th>
81 {{ form.statut_residence }}
82 {{ form.mise_a_disposition.label_tag }}
83 {{ form.mise_a_disposition.errors }}
84 {{ form.mise_a_disposition }}
89 <th>{{ form.appel.label_tag }} :
<br />{{ form.appel.errors }}
</th>
101 <h2>Durée prévue du poste
</h2>
102 <span class=
"info">Indépendamment du titulaire du poste
</span>
106 <th rowspan=
"2">Durée :
</th>
109 {{ form.date_debut }}
<br />
110 <span class=
"info">({{form.date_debut.help_text }})
</span><br />
111 {{ form.date_debut.errors }}
115 {{ form.date_fin }}
<br />
116 <span class=
"info">({{form.date_fin.help_text }})
</span><br />
117 {{ form.date_fin.errors }}
121 <td colspan=
"4" class=
"info">Pour une durée indéterminée, spécifier uniquement la date de début.
</td>
124 <th>{{ form.regime_travail.label_tag }} :
<br />{{ form.regime_travail.errors }}
</th>
126 {{ form.regime_travail }}
127 <span class=
"info">{{ form.regime_travail.help_text }}
</span>
132 {{ form.regime_travail_nb_heure_semaine.label_tag }} :
<br />
133 {{ form.regime_travail_nb_heure_semaine.errors }}
135 <td colspan=
"4">{{ form.regime_travail_nb_heure_semaine }}
</td>
142 <h2>Classement du poste
</h2>
149 <th>Valeur du point
</th>
151 <th colspan=
"2">Salaire de base
</th>
152 <th colspan=
"2">Indemnité, responsabilité (le cas échéant)
</th>
153 <th colspan=
"2">Autres
</th>
154 <th colspan=
"2">TOTAL
</th>
155 <th colspan=
"2">Conversion EUR
</th>
159 <td>{{ form.classement_min }}
</td>
160 <td>{{ form.coefficient_min }}
</td>
162 {{ form.valeur_point_min }}
163 {{ form.valeur_point_min.errors }}
166 {{ form.devise_min }}
167 {{ form.devise_min.errors }}
169 <td>{{ form.salaire_min }}
</td>
170 <td><span class=
"devise_min_code">EUR
</span></td>
171 <td>{{ form.indemn_min }}
</td>
172 <td><span class=
"devise_min_code">EUR
</span></td>
173 <td>{{ form.autre_min }}
</td>
174 <td><span class=
"devise_min_code">EUR
</span></td>
175 <td id=
"total_min"></td>
176 <td><span class=
"devise_min_code">EUR
</span></td>
177 <td id=
"total_min_eur"></td>
182 <td>{{ form.classement_max }}
</td>
183 <td>{{ form.coefficient_max }}
</td>
185 {{ form.valeur_point_max }}
186 {{ form.valeur_point_max.errors }}
189 {{ form.devise_max }}
190 {{ form.devise_max.errors }}
192 <td>{{ form.salaire_max }}
</td>
193 <td><span class=
"devise_max_code">EUR
</span></td>
194 <td>{{ form.indemn_max }}
</td>
195 <td><span class=
"devise_max_code">EUR
</span></td>
196 <td>{{ form.autre_max }}
</td>
197 <td><span class=
"devise_max_code">EUR
</span></td>
198 <td id=
"total_max"></td>
199 <td><span class=
"devise_max_code">EUR
</span></td>
200 <td id=
"total_max_eur">??
</td>
206 <p class=
"info">N.B Conversion en EUROS au taux de change budgétaire
</p>
211 <h2>Éléments de comparaison
</h2>
212 <p class=
"info">Compléter uniquement lors de la création d'un poste
</p>
219 <th>Fonction publique
</th>
225 <td>{{ form.comp_locale_min }}
</td>
226 <td>{{ form.comp_universite_min }}
</td>
227 <td>{{ form.comp_fonctionpub_min }}
</td>
228 <td>{{ form.comp_ong_min }}
</td>
229 <td>{{ form.comp_autre_min }}
</td>
233 <td>{{ form.comp_locale_max }}
</td>
234 <td>{{ form.comp_universite_max }}
</td>
235 <td>{{ form.comp_fonctionpub_max }}
</td>
236 <td>{{ form.comp_ong_max }}
</td>
237 <td>{{ form.comp_autre_max }}
</td>
241 <p class=
"info">N.B Conversion en EUROS au taux de change budgétaire
</p>
246 <h1 class=
"section clear">SECTION
2 - PERSONNEL ENGAGÉ
</h1>
247 <div class=
"row"></div>
249 <h1 class=
"section">SECTION
3 - COÛT GLOBAL
</h1>
250 <div class=
"row"></div>
252 <h1 class=
"section">SECTION
4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)
</h1>
253 <div class=
"row"></div>
255 <input type=
"submit" name=
"save" value=
"Sauvegarder" />
261 <table cellspacing=
"0" id=
"financing">
270 {% for fin in poste.financements.all %}
272 <td>{{ fin.get_type_display }}
</td>
273 <td>{{ fin.montant }}
</td>
279 <td>{{ fin.pourcentage }}
</td>
280 <td>{{ fin.commentaire }}
</td>
281 <td><a href=
"{% url financement poste_key fin.id %}">Modifier
</a></td>
287 Vous devez enregister ce nouveau poste avant de pouvoir spécifier
288 la ou les sources de financement.
290 Aucun financement au registre
297 <a href=
"{% url financement poste_key %}" class=
"new">
298 Ajouter une source de financement
302 <div id=
"financing-form"></div>
305 <script type=
"text/javascript">
306 $('#id_poste').change(function() {
307 window.location = '{% url poste %}/' + $(this).val();
309 $('#financing a, a.new').click(function() {
310 $('#financing-form').load($(this).attr('href') + '?ajax=
1')
320 $(document).ready(function() {
321 valeur_min = '
<input type=
"hidden" id=
"valeur_min" name=
"valeur_min" value=
"0" disabled=
"disabled">'
322 devise_min_code = '
<input type=
"hidden" id=
"devise_min_code" name=
"devise_min_code" value=
"5" disabled=
"disabled">'
323 $('#id_valeur_point_min').after(valeur_min)
324 $('#id_devise_min').after(devise_min_code)
327 $('#id_coefficient_min').bind('coeff_min_modified', function(){
328 $('#id_salaire_min').trigger('update_salaire_min');
330 $('.devise_min_code').bind('update_devise_min_code', function(){
331 devise_code = $('#devise_min_code').val();
332 $('.devise_min_code').empty();
333 $('.devise_min_code').text(devise_code);
335 $('#id_salaire_min').bind('update_salaire_min', function(){
336 valeur = $('#valeur_min').val();
337 coeff = $('#id_coefficient_min').val();
338 salaire = coeff * valeur;
339 salaire = clean_float(salaire);
340 $(this).val(salaire);
341 $('#total_min').trigger('update_total_min');
343 $('#total_min').bind('update_total_min', function(){
345 salaire = $('#id_salaire_min').val();
346 indemn = $('#id_indemn_min').val();
347 autre = $('#id_autre_min').val();
348 salaire = clean_float(salaire);
349 indemn = clean_float(indemn);
350 autre = clean_float(autre);
351 total = salaire + indemn + autre;
353 $(this).text(total.toFixed(
2));
356 $('#id_coefficient_min').change(function(){
357 $(this).trigger('coeff_min_modified');
359 $('#id_classement_min').change(function() {
360 classement = $(this).val();
361 url =
"{% url dae_coefficient %}";
362 $.post(url, {'classement':classement}, function(data){
363 $('#id_coefficient_min').val(data[
"coefficient"]);
364 $('#id_coefficient_min').trigger('coeff_min_modified');
367 $('#id_valeur_point_min').change(function() {
368 url_valeur =
"{% url dae_valeur %}";
369 url_devise =
"{% url dae_devise %}";
370 $.post(url_valeur, {'valeur_point':$(this).val()}, function(data){
371 $('#valeur_min').val(data[
"valeur"]);
372 $('#id_salaire_min').trigger('update_salaire_min');
374 $.post(url_devise, {'valeur_point':$(this).val()}, function(data){
375 $('#id_devise_min').val(data[
"devise"]);
376 $('#devise_min_code').val(data[
"devise_code"]);
377 $('.devise_min_code').trigger('update_devise_min_code');
380 $('#id_devise_min').change(function(){
381 url_devise_code =
"{% url dae_devise_code %}";
382 $.post(url_devise_code, {'devise':$(this).val()}, function(data){
383 $('#devise_min_code').val(data[
"devise_code"]);
384 $('.devise_min_code').trigger('update_devise_min_code');
387 $('#id_salaire_min').change(function(){
388 $('#total_min').trigger('update_total_min');
390 $('#id_indemn_min').change(function(){
391 $('#total_min').trigger('update_total_min');
393 $('#id_autre_min').change(function(){
394 $('#total_min').trigger('update_total_min');
398 $('#id_classement_max').change(function() {
399 url =
"{% url dae_coefficient %}";
400 $.post(url, {'classement':$(this).val()}, function(data){
401 $('#id_coefficient_max').val(data[
"coefficient"]);
406 function clean_float(value){
407 if (value == undefined)
410 output = parseFloat(value);
411 output = Math.round(output*
100)/
100;