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>Taux
> €
</th>
156 <th colspan=
"2">Conversion EUR
</th>
160 <td>{{ form.classement_min }}
</td>
161 <td>{{ form.coefficient_min }}
</td>
163 {{ form.valeur_point_min }}
164 {{ form.valeur_point_min.errors }}
167 {{ form.devise_min }}
168 {{ form.devise_min.errors }}
171 {{ form.salaire_min }}
172 {{ form.salaire_min.errors }}
174 <td><span class=
"devise_min_code">EUR
</span></td>
175 <td>{{ form.indemn_min }}
</td>
176 <td><span class=
"devise_min_code">EUR
</span></td>
177 <td>{{ form.autre_min }}
</td>
178 <td><span class=
"devise_min_code">EUR
</span></td>
179 <td id=
"total_min" class=
"cell-nombre">0.00</td>
180 <td><span class=
"devise_min_code">EUR
</span></td>
181 <td id=
"taux_min_euro_display">1</td>
182 <td id=
"total_min_euro" class=
"cell-nombre">0.00</td>
187 <td>{{ form.classement_max }}
</td>
188 <td>{{ form.coefficient_max }}
</td>
190 {{ form.valeur_point_max }}
191 {{ form.valeur_point_max.errors }}
194 {{ form.devise_max }}
195 {{ form.devise_max.errors }}
198 {{ form.salaire_max }}
199 {{ form.salaire_max.errors }}
201 <td><span class=
"devise_max_code">EUR
</span></td>
202 <td>{{ form.indemn_max }}
</td>
203 <td><span class=
"devise_max_code">EUR
</span></td>
204 <td>{{ form.autre_max }}
</td>
205 <td><span class=
"devise_max_code">EUR
</span></td>
206 <td id=
"total_max" class=
"cell-nombre">0.00</td>
207 <td><span class=
"devise_max_code">EUR
</span></td>
208 <td id=
"taux_max_euro_display">1</td>
209 <td id=
"total_max_euro" class=
"cell-nombre">0.00</td>
215 <p class=
"info">N.B Conversion en EUROS au taux de change budgétaire
</p>
218 {% comment %}{% if new %}{% endcomment %}
220 <h2>Éléments de comparaison
</h2>
221 <p class=
"info">Compléter uniquement lors de la création d'un poste
</p>
228 <th>Fonction publique
</th>
234 <td>{{ form.comp_locale_min }}
</td>
235 <td>{{ form.comp_universite_min }}
</td>
236 <td>{{ form.comp_fonctionpub_min }}
</td>
237 <td>{{ form.comp_ong_min }}
</td>
238 <td>{{ form.comp_autre_min }}
</td>
242 <td>{{ form.comp_locale_max }}
</td>
243 <td>{{ form.comp_universite_max }}
</td>
244 <td>{{ form.comp_fonctionpub_max }}
</td>
245 <td>{{ form.comp_ong_max }}
</td>
246 <td>{{ form.comp_autre_max }}
</td>
251 {% comment %}{% endif %}{% endcomment %}
254 <h1 class=
"section clear">SECTION
2 - PERSONNEL ENGAGÉ
</h1>
255 <div class=
"row"></div>
257 <h1 class=
"section">SECTION
3 - COÛT GLOBAL
</h1>
258 <div class=
"row"></div>
260 <h1 class=
"section">SECTION
4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)
</h1>
261 <div class=
"row"></div>
263 <input type=
"submit" name=
"save" value=
"Sauvegarder" />
269 <table cellspacing=
"0" id=
"financing">
278 {% for fin in poste.financements.all %}
280 <td>{{ fin.get_type_display }}
</td>
281 <td>{{ fin.montant }}
</td>
287 <td>{{ fin.pourcentage }}
</td>
288 <td>{{ fin.commentaire }}
</td>
289 <td><a href=
"{% url financement poste_key fin.id %}">Modifier
</a></td>
295 Vous devez enregister ce nouveau poste avant de pouvoir spécifier
296 la ou les sources de financement.
298 Aucun financement au registre
305 <a href=
"{% url financement poste_key %}" class=
"new">
306 Ajouter une source de financement
310 <div id=
"financing-form"></div>
313 <script type=
"text/javascript">
314 $('#id_poste').change(function() {
315 window.location = '{% url poste %}/' + $(this).val();
317 $('#financing a, a.new').click(function() {
318 $('#financing-form').load($(this).attr('href') + '?ajax=
1')
328 $(document).ready(function() {
329 valeur_min = '
<input type=
"hidden" id=
"valeur_min" name=
"valeur_min" value=
"0" disabled=
"disabled">'
330 devise_min_code = '
<input type=
"hidden" id=
"devise_min_code" name=
"devise_min_code" value=
"5" disabled=
"disabled">'
331 taux_min_euro = '
<input type=
"hidden" id=
"taux_min_euro" name=
"taux_min_euro" value=
"1" disabled=
"disabled">'
332 $('#id_valeur_point_min').after(valeur_min)
333 $('#id_devise_min').after(devise_min_code)
334 $('#total_min_euro').after(taux_min_euro)
336 /* simuler id_devise_min change */
337 devise_min = $('#id_devise_min').val();
338 url_devise_code =
"{% url dae_devise_code %}";
339 $.post(url_devise_code, {'devise':devise_min}, function(data){
340 $('#devise_min_code').val(data[
"devise_code"]);
341 $('#taux_min_euro').val(data[
"taux_euro"]);
342 $('#taux_min_euro_display').empty();
343 $('#taux_min_euro_display').text(data[
"taux_euro"]);
344 $('.devise_min_code').trigger('update_devise_min_code');
345 $('#total_min_euro').trigger('update_total_min_euro');
348 $('#total_min').trigger('update_total_min');
350 $('#total_min_euro').trigger('update_total_min_euro');
353 $('#id_coefficient_min').bind('coeff_min_modified', function(){
354 $('#id_salaire_min').trigger('update_salaire_min');
356 $('.devise_min_code').bind('update_devise_min_code', function(){
357 devise_code = $('#devise_min_code').val();
358 $('.devise_min_code').empty();
359 $('.devise_min_code').text(devise_code);
361 $('#id_salaire_min').bind('update_salaire_min', function(){
362 valeur = $('#valeur_min').val();
363 coeff = $('#id_coefficient_min').val();
364 salaire = coeff * valeur;
365 salaire = clean_float(salaire);
366 $(this).val(salaire);
367 $('#total_min').trigger('update_total_min');
369 $('#total_min').bind('update_total_min', function(){
371 salaire = $('#id_salaire_min').val();
372 indemn = $('#id_indemn_min').val();
373 autre = $('#id_autre_min').val();
374 salaire = clean_float(salaire);
375 indemn = clean_float(indemn);
376 autre = clean_float(autre);
377 total = salaire + indemn + autre;
379 $(this).text(total.toFixed(
2));
380 $('#total_min_euro').trigger('update_total_min_euro');
382 $('#total_min_euro').bind('update_total_min_euro', function(){
383 total = $('#total_min').text();
384 taux_euro = $('#taux_min_euro').val();
385 total = clean_float(total);
386 taux_euro = clean_float(taux_euro);
387 total_euro = total * taux_euro;
389 $(this).text(total_euro.toFixed(
2));
392 $('#id_coefficient_min').change(function(){
393 $(this).trigger('coeff_min_modified');
395 $('#id_classement_min').change(function() {
396 url =
"{% url dae_coefficient %}";
397 $.post(url, {'classement':$(this).val()}, function(data){
398 $('#id_coefficient_min').val(data[
"coefficient"]);
399 $('#id_coefficient_min').trigger('coeff_min_modified');
402 $('#id_valeur_point_min').change(function() {
403 url_valeur =
"{% url dae_valeur %}";
404 url_devise =
"{% url dae_devise %}";
405 min_now = $('#id_valeur_point_min').val();
406 max_now = $('#id_valeur_point_max').val();
407 $.post(url_valeur, {'valeur_point':$(this).val()}, function(data){
408 $('#valeur_min').val(data[
"valeur"]);
409 $('#id_salaire_min').trigger('update_salaire_min');
410 $('#total_min_euro').trigger('update_total_min_euro');
412 $('#id_valeur_point_max').val(min_now);
413 $('#valeur_max').val(data[
"valeur"]);
414 $('#id_salaire_max').trigger('update_salaire_max');
415 $('#total_max_euro').trigger('update_total_max_euro');
417 $.post(url_devise, {'valeur_point':$(this).val()}, function(data){
418 $('#id_devise_min').val(data[
"devise"]);
419 $('#devise_min_code').val(data[
"devise_code"]);
420 $('#taux_min_euro').val(data[
"taux_euro"]);
421 $('#taux_min_euro_display').empty();
422 $('#taux_min_euro_display').text(data[
"taux_euro"]);
423 $('.devise_min_code').trigger('update_devise_min_code');
424 $('#total_min_euro').trigger('update_total_min_euro');
426 $('#id_devise_max').val(data[
"devise"]);
427 $('#devise_max_code').val(data[
"devise_code"]);
428 $('#taux_max_euro').val(data[
"taux_euro"]);
429 $('#taux_max_euro_display').empty();
430 $('#taux_max_euro_display').text(data[
"taux_euro"]);
431 $('.devise_max_code').trigger('update_devise_max_code');
432 $('#total_max_euro').trigger('update_total_max_euro');
435 $('#id_devise_min').change(function(){
436 devise_min = $('#id_devise_min').val();
437 url_devise_code =
"{% url dae_devise_code %}";
438 $.post(url_devise_code, {'devise':devise_min}, function(data){
439 $('#devise_min_code').val(data[
"devise_code"]);
440 $('#taux_min_euro').val(data[
"taux_euro"]);
441 $('#taux_min_euro_display').empty();
442 $('#taux_min_euro_display').text(data[
"taux_euro"]);
443 $('.devise_min_code').trigger('update_devise_min_code');
444 $('#total_min_euro').trigger('update_total_min_euro');
447 $('#id_salaire_min').change(function(){
448 $('#total_min').trigger('update_total_min');
450 $('#id_indemn_min').change(function(){
451 $('#total_min').trigger('update_total_min');
453 $('#id_autre_min').change(function(){
454 $('#total_min').trigger('update_total_min');
458 $(document).ready(function() {
459 valeur_max = '
<input type=
"hidden" id=
"valeur_max" name=
"valeur_max" value=
"0" disabled=
"disabled">'
460 devise_max_code = '
<input type=
"hidden" id=
"devise_max_code" name=
"devise_max_code" value=
"5" disabled=
"disabled">'
461 taux_max_euro = '
<input type=
"hidden" id=
"taux_max_euro" name=
"taux_max_euro" value=
"1" disabled=
"disabled">'
462 $('#id_valeur_point_max').after(valeur_max)
463 $('#id_devise_max').after(devise_max_code)
464 $('#total_max_euro').after(taux_max_euro)
466 /* simuler id_devise_max change */
467 devise_max = $('#id_devise_max').val();
468 url_devise_code =
"{% url dae_devise_code %}";
469 $.post(url_devise_code, {'devise':devise_max}, function(data){
470 $('#devise_max_code').val(data[
"devise_code"]);
471 $('#taux_max_euro').val(data[
"taux_euro"]);
472 $('#taux_max_euro_display').empty();
473 $('#taux_max_euro_display').text(data[
"taux_euro"]);
474 $('.devise_max_code').trigger('update_devise_max_code');
475 $('#total_max_euro').trigger('update_total_max_euro');
478 $('#total_max').trigger('update_total_max');
480 $('#total_max_euro').trigger('update_total_max_euro');
483 $('#id_coefficient_max').bind('coeff_max_modified', function(){
484 $('#id_salaire_max').trigger('update_salaire_max');
486 $('.devise_max_code').bind('update_devise_max_code', function(){
487 devise_code = $('#devise_max_code').val();
488 $('.devise_max_code').empty();
489 $('.devise_max_code').text(devise_code);
491 $('#id_salaire_max').bind('update_salaire_max', function(){
492 valeur = $('#valeur_max').val();
493 coeff = $('#id_coefficient_max').val();
494 salaire = coeff * valeur;
495 salaire = clean_float(salaire);
496 $(this).val(salaire);
497 $('#total_max').trigger('update_total_max');
499 $('#total_max').bind('update_total_max', function(){
501 salaire = $('#id_salaire_max').val();
502 indemn = $('#id_indemn_max').val();
503 autre = $('#id_autre_max').val();
504 salaire = clean_float(salaire);
505 indemn = clean_float(indemn);
506 autre = clean_float(autre);
507 total = salaire + indemn + autre;
509 $(this).text(total.toFixed(
2));
510 $('#total_max_euro').trigger('update_total_max_euro');
512 $('#total_max_euro').bind('update_total_max_euro', function(){
513 total = $('#total_max').text();
514 taux_euro = $('#taux_max_euro').val();
515 total = clean_float(total);
516 taux_euro = clean_float(taux_euro);
517 total_euro = total * taux_euro;
519 $(this).text(total_euro.toFixed(
2));
522 $('#id_coefficient_max').change(function(){
523 $(this).trigger('coeff_max_modified');
525 $('#id_classement_max').change(function() {
526 url =
"{% url dae_coefficient %}";
527 $.post(url, {'classement':$(this).val()}, function(data){
528 $('#id_coefficient_max').val(data[
"coefficient"]);
529 $('#id_coefficient_max').trigger('coeff_max_modified');
532 $('#id_valeur_point_max').change(function() {
533 url_valeur =
"{% url dae_valeur %}";
534 url_devise =
"{% url dae_devise %}";
535 min_now = $('#id_valeur_point_min').val();
536 max_now = $('#id_valeur_point_max').val();
537 $.post(url_valeur, {'valeur_point':$(this).val()}, function(data){
538 $('#valeur_max').val(data[
"valeur"]);
539 $('#id_salaire_max').trigger('update_salaire_max');
540 $('#total_max_euro').trigger('update_total_max_euro');
542 $('#id_valeur_point_min').val(max_now);
543 $('#valeur_min').val(data[
"valeur"]);
544 $('#id_salaire_min').trigger('update_salaire_min');
545 $('#total_min_euro').trigger('update_total_min_euro');
547 $.post(url_devise, {'valeur_point':$(this).val()}, function(data){
548 $('#id_devise_max').val(data[
"devise"]);
549 $('#devise_max_code').val(data[
"devise_code"]);
550 $('#taux_max_euro').val(data[
"taux_euro"]);
551 $('#taux_max_euro_display').empty();
552 $('#taux_max_euro_display').text(data[
"taux_euro"]);
553 $('.devise_max_code').trigger('update_devise_max_code');
554 $('#total_max_euro').trigger('update_total_max_euro');
556 $('#id_devise_min').val(data[
"devise"]);
557 $('#devise_min_code').val(data[
"devise_code"]);
558 $('#taux_min_euro').val(data[
"taux_euro"]);
559 $('#taux_min_euro_display').empty();
560 $('#taux_min_euro_display').text(data[
"taux_euro"]);
561 $('.devise_min_code').trigger('update_devise_min_code');
562 $('#total_min_euro').trigger('update_total_min_euro');
565 $('#id_devise_max').change(function(){
566 devise_max = $('#id_devise_max').val();
567 url_devise_code =
"{% url dae_devise_code %}";
568 $.post(url_devise_code, {'devise':devise_max}, function(data){
569 $('#devise_max_code').val(data[
"devise_code"]);
570 $('#taux_max_euro').val(data[
"taux_euro"]);
571 $('#taux_max_euro_display').empty();
572 $('#taux_max_euro_display').text(data[
"taux_euro"]);
573 $('.devise_max_code').trigger('update_devise_max_code');
574 $('#total_max_euro').trigger('update_total_max_euro');
577 $('#id_salaire_max').change(function(){
578 $('#total_max').trigger('update_total_max');
580 $('#id_indemn_max').change(function(){
581 $('#total_max').trigger('update_total_max');
583 $('#id_autre_max').change(function(){
584 $('#total_max').trigger('update_total_max');
588 function clean_float(value){
589 if (value == undefined)
592 output = parseFloat(value);
593 output = Math.round(output*
100)/
100;