1 {% extends 'base.html' %}
3 {% block title %}RH - DAE - Poste{% 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 .row {padding:
10px
0px; clear: both; display:block;}
19 .row * {float: left; margin:
0px; padding:
0px; margin-right:
4px;}
20 .row li {list-style-type: none;}
21 .underline {text-decoration: underline;}
22 .clear {display: block; clear: both;}
23 .note {text-decoration: underline; font-style: italic; margin-left:
12px;}
24 .info {font-size:
13px; font-style: italic;}
25 .noborder {border:none; margin:
0; padding;
0}
26 tr.noborder td {border:none; padding-left:
0;}
31 <h1>Demande d'autorisation de création de poste
</h1>
33 <form action=
"" method=
"post" enctype=
"multipart/form-data">
39 Poste existant : {{ poste.nom }} ({{ poste.implantation.nom }})
45 <th>{{ form.poste.label_tag }} :
<br />{{ form.poste.errors }}
</th>
46 <td>{{ form.poste }}
</td>
49 <th>{{ form.nom.label_tag }} :
<br />{{ form.nom.errors }}
</th>
50 <td>{{ form.nom }}
</td>
53 <th>{{ form.type_poste.label_tag }} :
<br />{{ form.type_poste.errors }}
</th>
54 <td>{{ form.type_poste }}
</td>
57 <th>{{ form.implantation.label_tag }} :
<br />{{ form.implantation.errors }}
</th>
58 <td>{{ form.implantation }}
</td>
61 <th>{{ form.service.label_tag }} :
<br />{{ form.service.errors }}
</th>
62 <td>{{ form.service }}
</td>
65 <th>{{ form.responsable.label_tag }} :
<br />{{ form.responsable.errors }}
</th>
66 <td>{{ form.responsable }}
</td>
77 <th>{{ form.statut_residence.label_tag }} :
<br />{{ form.statut_residence.errors }}
</th>
80 {{ form.statut_residence }}
81 {{ form.mise_a_disposition.label_tag }}
82 {{ form.mise_a_disposition.errors }}
83 {{ form.mise_a_disposition }}
88 <th>{{ form.appel.label_tag }} :
<br />{{ form.appel.errors }}
</th>
100 <h2>Durée prévue du poste
</h2>
101 <span class=
"info">Indépendamment du titulaire du poste
</span>
105 <th rowspan=
"2">Durée :
</th>
108 {{ form.date_debut }}
<br />
109 <span class=
"info">({{form.date_debut.help_text }})
</span><br />
110 {{ form.date_debut.errors }}
114 {{ form.date_fin }}
<br />
115 <span class=
"info">({{form.date_fin.help_text }})
</span><br />
116 {{ form.date_fin.errors }}
118 <th>{{ form.regime_travail.label_tag }} :
<br />{{ form.regime_travail.errors }}
</th>
120 {{ form.regime_travail }}
121 <span class=
"info">{{ form.regime_travail.help_text }}
</span>
125 <td colspan=
"4" class=
"info">
126 <p>Pour une durée indéterminée, spécifier uniquement la date de début.
</p>
129 {{ form.regime_travail_nb_heure_semaine.label_tag }} :
<br />
130 {{ form.regime_travail_nb_heure_semaine.errors }}
132 <td>{{ form.regime_travail_nb_heure_semaine }}
</td>
139 <h2>Classement du poste
</h2>
146 <th>Valeur du point
</th>
148 <th colspan=
"2">Salaire de base
</th>
149 <th colspan=
"2">Indemnité, responsabilité (le cas échéant)
</th>
150 <th colspan=
"2">Autres
</th>
151 <th colspan=
"2">TOTAL
</th>
152 <th>Taux
> €
</th>
153 <th colspan=
"2">Conversion EUR
</th>
158 {{ form.classement_min }}
159 {{ form.classement_min.errors }}
162 {{ form.coefficient_min }}
163 {{ form.coefficient_min.errors }}
166 {{ form.valeur_point_min }}
167 {{ form.valeur_point_min.errors }}
170 {{ form.devise_min }}
171 {{ form.devise_min.errors }}
174 {{ form.salaire_min }}
175 {{ form.salaire_min.errors }}
177 <td><span class=
"devise_min_code">EUR
</span></td>
178 <td>{{ form.indemn_min }}
</td>
179 <td><span class=
"devise_min_code">EUR
</span></td>
180 <td>{{ form.autre_min }}
</td>
181 <td><span class=
"devise_min_code">EUR
</span></td>
182 <td id=
"total_min" class=
"cell-nombre">0.00</td>
183 <td><span class=
"devise_min_code">EUR
</span></td>
184 <td id=
"taux_min_euro_display">1</td>
185 <td id=
"total_min_euro" class=
"cell-nombre">0.00</td>
191 {{ form.classement_max }}
192 {{ form.classement_max.errors }}
195 {{ form.coefficient_max }}
196 {{ form.coefficient_max.errors }}
199 {{ form.valeur_point_max }}
200 {{ form.valeur_point_max.errors }}
203 {{ form.devise_max }}
204 {{ form.devise_max.errors }}
207 {{ form.salaire_max }}
208 {{ form.salaire_max.errors }}
210 <td><span class=
"devise_max_code">EUR
</span></td>
211 <td>{{ form.indemn_max }}
</td>
212 <td><span class=
"devise_max_code">EUR
</span></td>
213 <td>{{ form.autre_max }}
</td>
214 <td><span class=
"devise_max_code">EUR
</span></td>
215 <td id=
"total_max" class=
"cell-nombre">0.00</td>
216 <td><span class=
"devise_max_code">EUR
</span></td>
217 <td id=
"taux_max_euro_display">1</td>
218 <td id=
"total_max_euro" class=
"cell-nombre">0.00</td>
224 <p class=
"info">N.B Conversion en EUROS au taux de change budgétaire
</p>
227 {% comment %}{% if new %}{% endcomment %}
229 <h2>Éléments de comparaison
</h2>
230 <span class=
"info">Compléter uniquement lors de la création d'un poste
</span>
236 {{ form.devise_comparaison }}
237 {{ form.devise_comparaison.errors }}
246 <th colspan=
"2">Entreprise locale
</th>
247 <th colspan=
"2">Université
</th>
248 <th colspan=
"2">Fonction publique
</th>
249 <th colspan=
"2">ONG
</th>
250 <th colspan=
"2">Autre
</th>
254 <td>{{ form.comp_locale_min }}
</td>
255 <td><span class=
"devise_comp_code">€
</span></td>
256 <td>{{ form.comp_universite_min }}
</td>
257 <td><span class=
"devise_comp_code">€
</span></td>
258 <td>{{ form.comp_fonctionpub_min }}
</td>
259 <td><span class=
"devise_comp_code">€
</span></td>
260 <td>{{ form.comp_ong_min }}
</td>
261 <td><span class=
"devise_comp_code">€
</span></td>
262 <td>{{ form.comp_autre_min }}
</td>
263 <td><span class=
"devise_comp_code">€
</span></td>
267 <td>{{ form.comp_locale_max }}
</td>
268 <td><span class=
"devise_comp_code">€
</span></td>
269 <td>{{ form.comp_universite_max }}
</td>
270 <td><span class=
"devise_comp_code">€
</span></td>
271 <td>{{ form.comp_fonctionpub_max }}
</td>
272 <td><span class=
"devise_comp_code">€
</span></td>
273 <td>{{ form.comp_ong_max }}
</td>
274 <td><span class=
"devise_comp_code">€
</span></td>
275 <td>{{ form.comp_autre_max }}
</td>
276 <td><span class=
"devise_comp_code">€
</span></td>
281 {% comment %}{% endif %}{% endcomment %}
284 <h2>Pièces jointes
</h2>
285 <p class=
"info">Compléter uniquement lors de la création d'un poste
</p>
286 {% include
"dae/pieces.html" %}
288 <input type=
"submit" name=
"save" value=
"Sauvegarder" />
294 <table cellspacing=
"0" id=
"financing">
297 <th colspan=
"2">Montant
</th>
298 <th colspan=
"2">Pourcentage
</th>
302 {% for fin in poste.financements.all %}
304 <td>{{ fin.get_type_display }}
</td>
305 <td class=
"cell-nombre">{{ fin.montant }}
</td>
311 <td class=
"cell-nombre">{{ fin.pourcentage }}
</td>
313 <td>{{ fin.commentaire }}
</td>
314 <td><a href=
"{% url financement poste_key fin.id %}">Modifier
</a></td>
320 Vous devez enregister ce nouveau poste avant de pouvoir spécifier
321 la ou les sources de financement.
323 Aucun financement au registre
330 <a href=
"{% url financement poste_key %}" class=
"new">
331 Ajouter une source de financement
335 <div id=
"financing-form"></div>
338 <script type=
"text/javascript">
339 $('#id_poste').change(function() {
340 window.location = '{% url poste %}/' + $(this).val();
342 $('#financing a, a.new').click(function() {
343 $('#financing-form').load($(this).attr('href') + '?ajax=
1')
353 $(document).ready(function() {
354 valeur_min = '
<input type=
"hidden" id=
"valeur_min" name=
"valeur_min" value=
"0" disabled=
"disabled">'
355 devise_min_code = '
<input type=
"hidden" id=
"devise_min_code" name=
"devise_min_code" value=
"EUR" disabled=
"disabled">'
356 taux_min_euro = '
<input type=
"hidden" id=
"taux_min_euro" name=
"taux_min_euro" value=
"1" disabled=
"disabled">'
357 $('#id_valeur_point_min').after(valeur_min)
358 $('#id_devise_min').after(devise_min_code)
359 $('#total_min_euro').after(taux_min_euro)
361 /* valeur_point, devise et taux de l'implantation par défaut */
363 implantation = $('id_implantation').val();
364 valeur_point_min = $('#id_valeur_point_min').val();
365 if (valeur_point_min == '' and implantation != '')
367 /* simuler id_valeur_point_min change */
370 /* simuler id_devise_min change */
371 devise_min = $('#id_devise_min').val();
372 url_devise_code =
"{% url dae_devise_code %}";
373 $.post(url_devise_code, {'devise':devise_min}, function(data){
374 $('#devise_min_code').val(data[
"devise_code"]);
375 $('#taux_min_euro').val(data[
"taux_euro"]);
376 $('#taux_min_euro_display').empty();
377 $('#taux_min_euro_display').text(data[
"taux_euro"]);
378 $('.devise_min_code').trigger('update_devise_min_code');
379 $('#total_min_euro').trigger('update_total_min_euro');
382 $('#total_min').trigger('update_total_min');
384 $('#total_min_euro').trigger('update_total_min_euro');
387 $('#id_coefficient_min').bind('coeff_min_modified', function(){
388 $('#id_salaire_min').trigger('update_salaire_min');
390 $('.devise_min_code').bind('update_devise_min_code', function(){
391 devise_code = $('#devise_min_code').val();
392 $('.devise_min_code').empty();
393 $('.devise_min_code').text(devise_code);
395 $('#id_salaire_min').bind('update_salaire_min', function(){
396 valeur = $('#valeur_min').val();
397 coeff = $('#id_coefficient_min').val();
398 salaire = coeff * valeur;
399 salaire = clean_float(salaire);
400 $(this).val(salaire);
401 $('#total_min').trigger('update_total_min');
403 $('#total_min').bind('update_total_min', function(){
405 salaire = $('#id_salaire_min').val();
406 indemn = $('#id_indemn_min').val();
407 autre = $('#id_autre_min').val();
408 salaire = clean_float(salaire);
409 indemn = clean_float(indemn);
410 autre = clean_float(autre);
411 total = salaire + indemn + autre;
413 $(this).text(total.toFixed(
2));
414 $('#total_min_euro').trigger('update_total_min_euro');
416 $('#total_min_euro').bind('update_total_min_euro', function(){
417 total = $('#total_min').text();
418 taux_euro = $('#taux_min_euro').val();
419 total = clean_float(total);
420 taux_euro = clean_float(taux_euro);
421 total_euro = total * taux_euro;
423 $(this).text(total_euro.toFixed(
2));
426 $('#id_coefficient_min').change(function(){
427 $(this).trigger('coeff_min_modified');
429 $('#id_classement_min').change(function() {
430 url =
"{% url dae_coefficient %}";
431 $.post(url, {'classement':$(this).val()}, function(data){
432 $('#id_coefficient_min').val(data[
"coefficient"]);
433 $('#id_coefficient_min').trigger('coeff_min_modified');
436 $('#id_valeur_point_min').change(function() {
437 url_valeur =
"{% url dae_valeur %}";
438 url_devise =
"{% url dae_devise %}";
439 min_now = $('#id_valeur_point_min').val();
440 max_now = $('#id_valeur_point_max').val();
441 $.post(url_valeur, {'valeur_point':min_now}, function(data){
442 $('#valeur_min').val(data[
"valeur"]);
443 $('#id_salaire_min').trigger('update_salaire_min');
444 $('#total_min_euro').trigger('update_total_min_euro');
446 $('#id_valeur_point_max').val(min_now);
447 $('#valeur_max').val(data[
"valeur"]);
448 $('#id_salaire_max').trigger('update_salaire_max');
449 $('#total_max_euro').trigger('update_total_max_euro');
452 $.post(url_devise, {'valeur_point':min_now}, function(data){
453 $('#id_devise_min').val(data[
"devise"]);
454 $('#devise_min_code').val(data[
"devise_code"]);
455 $('#taux_min_euro').val(data[
"taux_euro"]);
456 $('#taux_min_euro_display').empty();
457 $('#taux_min_euro_display').text(data[
"taux_euro"]);
458 $('.devise_min_code').trigger('update_devise_min_code');
459 $('#total_min_euro').trigger('update_total_min_euro');
461 $('#id_devise_max').val(data[
"devise"]);
462 $('#devise_max_code').val(data[
"devise_code"]);
463 $('#taux_max_euro').val(data[
"taux_euro"]);
464 $('#taux_max_euro_display').empty();
465 $('#taux_max_euro_display').text(data[
"taux_euro"]);
466 $('.devise_max_code').trigger('update_devise_max_code');
467 $('#total_max_euro').trigger('update_total_max_euro');
471 $('#id_devise_min').change(function(){
472 devise_min = $('#id_devise_min').val();
473 url_devise_code =
"{% url dae_devise_code %}";
474 $.post(url_devise_code, {'devise':devise_min}, function(data){
475 $('#devise_min_code').val(data[
"devise_code"]);
476 $('#taux_min_euro').val(data[
"taux_euro"]);
477 $('#taux_min_euro_display').empty();
478 $('#taux_min_euro_display').text(data[
"taux_euro"]);
479 $('.devise_min_code').trigger('update_devise_min_code');
480 $('#total_min_euro').trigger('update_total_min_euro');
483 $('#id_salaire_min').change(function(){
484 $('#total_min').trigger('update_total_min');
486 $('#id_indemn_min').change(function(){
487 $('#total_min').trigger('update_total_min');
489 $('#id_autre_min').change(function(){
490 $('#total_min').trigger('update_total_min');
494 $(document).ready(function() {
495 valeur_max = '
<input type=
"hidden" id=
"valeur_max" name=
"valeur_max" value=
"0" disabled=
"disabled">'
496 devise_max_code = '
<input type=
"hidden" id=
"devise_max_code" name=
"devise_max_code" value=
"EUR" disabled=
"disabled">'
497 taux_max_euro = '
<input type=
"hidden" id=
"taux_max_euro" name=
"taux_max_euro" value=
"1" disabled=
"disabled">'
498 $('#id_valeur_point_max').after(valeur_max)
499 $('#id_devise_max').after(devise_max_code)
500 $('#total_max_euro').after(taux_max_euro)
502 /* simuler id_devise_max change */
503 devise_max = $('#id_devise_max').val();
504 url_devise_code =
"{% url dae_devise_code %}";
505 $.post(url_devise_code, {'devise':devise_max}, function(data){
506 $('#devise_max_code').val(data[
"devise_code"]);
507 $('#taux_max_euro').val(data[
"taux_euro"]);
508 $('#taux_max_euro_display').empty();
509 $('#taux_max_euro_display').text(data[
"taux_euro"]);
510 $('.devise_max_code').trigger('update_devise_max_code');
511 $('#total_max_euro').trigger('update_total_max_euro');
514 $('#total_max').trigger('update_total_max');
516 $('#total_max_euro').trigger('update_total_max_euro');
519 $('#id_coefficient_max').bind('coeff_max_modified', function(){
520 $('#id_salaire_max').trigger('update_salaire_max');
522 $('.devise_max_code').bind('update_devise_max_code', function(){
523 devise_code = $('#devise_max_code').val();
524 $('.devise_max_code').empty();
525 $('.devise_max_code').text(devise_code);
527 $('#id_salaire_max').bind('update_salaire_max', function(){
528 valeur = $('#valeur_max').val();
529 coeff = $('#id_coefficient_max').val();
530 salaire = coeff * valeur;
531 salaire = clean_float(salaire);
532 $(this).val(salaire);
533 $('#total_max').trigger('update_total_max');
535 $('#total_max').bind('update_total_max', function(){
537 salaire = $('#id_salaire_max').val();
538 indemn = $('#id_indemn_max').val();
539 autre = $('#id_autre_max').val();
540 salaire = clean_float(salaire);
541 indemn = clean_float(indemn);
542 autre = clean_float(autre);
543 total = salaire + indemn + autre;
545 $(this).text(total.toFixed(
2));
546 $('#total_max_euro').trigger('update_total_max_euro');
548 $('#total_max_euro').bind('update_total_max_euro', function(){
549 total = $('#total_max').text();
550 taux_euro = $('#taux_max_euro').val();
551 total = clean_float(total);
552 taux_euro = clean_float(taux_euro);
553 total_euro = total * taux_euro;
555 $(this).text(total_euro.toFixed(
2));
558 $('#id_coefficient_max').change(function(){
559 $(this).trigger('coeff_max_modified');
561 $('#id_classement_max').change(function() {
562 url =
"{% url dae_coefficient %}";
563 $.post(url, {'classement':$(this).val()}, function(data){
564 $('#id_coefficient_max').val(data[
"coefficient"]);
565 $('#id_coefficient_max').trigger('coeff_max_modified');
568 $('#id_valeur_point_max').change(function() {
569 url_valeur =
"{% url dae_valeur %}";
570 url_devise =
"{% url dae_devise %}";
571 min_now = $('#id_valeur_point_min').val();
572 max_now = $('#id_valeur_point_max').val();
573 $.post(url_valeur, {'valeur_point':max_now}, function(data){
574 $('#valeur_max').val(data[
"valeur"]);
575 $('#id_salaire_max').trigger('update_salaire_max');
576 $('#total_max_euro').trigger('update_total_max_euro');
578 $('#id_valeur_point_min').val(max_now);
579 $('#valeur_min').val(data[
"valeur"]);
580 $('#id_salaire_min').trigger('update_salaire_min');
581 $('#total_min_euro').trigger('update_total_min_euro');
584 $.post(url_devise, {'valeur_point':max_now}, function(data){
585 $('#id_devise_max').val(data[
"devise"]);
586 $('#devise_max_code').val(data[
"devise_code"]);
587 $('#taux_max_euro').val(data[
"taux_euro"]);
588 $('#taux_max_euro_display').empty();
589 $('#taux_max_euro_display').text(data[
"taux_euro"]);
590 $('.devise_max_code').trigger('update_devise_max_code');
591 $('#total_max_euro').trigger('update_total_max_euro');
593 $('#id_devise_min').val(data[
"devise"]);
594 $('#devise_min_code').val(data[
"devise_code"]);
595 $('#taux_min_euro').val(data[
"taux_euro"]);
596 $('#taux_min_euro_display').empty();
597 $('#taux_min_euro_display').text(data[
"taux_euro"]);
598 $('.devise_min_code').trigger('update_devise_min_code');
599 $('#total_min_euro').trigger('update_total_min_euro');
603 $('#id_devise_max').change(function(){
604 devise_max = $('#id_devise_max').val();
605 url_devise_code =
"{% url dae_devise_code %}";
606 $.post(url_devise_code, {'devise':devise_max}, function(data){
607 $('#devise_max_code').val(data[
"devise_code"]);
608 $('#taux_max_euro').val(data[
"taux_euro"]);
609 $('#taux_max_euro_display').empty();
610 $('#taux_max_euro_display').text(data[
"taux_euro"]);
611 $('.devise_max_code').trigger('update_devise_max_code');
612 $('#total_max_euro').trigger('update_total_max_euro');
615 $('#id_salaire_max').change(function(){
616 $('#total_max').trigger('update_total_max');
618 $('#id_indemn_max').change(function(){
619 $('#total_max').trigger('update_total_max');
621 $('#id_autre_max').change(function(){
622 $('#total_max').trigger('update_total_max');
627 $(document).ready(function() {
628 devise_comp_code = '
<input type=
"hidden" id=
"devise_comp_code" name=
"devise_comp_code" value=
"EUR" disabled=
"disabled">'
629 $('#id_devise_comparaison').after(devise_comp_code)
631 /* simuler id_devise_comparaison change */
632 devise_comparaison = $('#id_devise_comparaison').val();
633 url_devise_code =
"{% url dae_devise_code %}";
634 $.post(url_devise_code, {'devise':devise_comparaison}, function(data){
635 $('#devise_comp_code').val(data[
"devise_code"]);
636 $('.devise_comp_code').trigger('update_devise_comp_code');
639 $('.devise_comp_code').bind('update_devise_comp_code', function(){
640 devise_code = $('#devise_comp_code').val();
641 $('.devise_comp_code').empty();
642 $('.devise_comp_code').text(devise_code);
644 $('#id_devise_comparaison').change(function(){
645 devise_comparaison = $('#id_devise_comparaison').val();
646 url_devise_code =
"{% url dae_devise_code %}";
647 $.post(url_devise_code, {'devise':devise_comparaison}, function(data){
648 $('#devise_comp_code').val(data[
"devise_code"]);
649 $('.devise_comp_code').trigger('update_devise_comp_code');
654 function clean_float(value){
655 if (value == undefined)
658 output = parseFloat(value);
659 output = Math.round(output*
100)/
100;