1 {% extends 'base.html' %}
4 {% block title %}RH - DAE - Poste{% endblock %}
5 {% block titre %}Ressources humaines{% endblock %}
7 Demande d'autorisation d'embauche
11 <script src=
"{{ MEDIA_URL }}js/jquery-1.5.1.min.js"
12 type=
"text/javascript"></script>
13 <script src=
"{{ MEDIA_URL }}js/jquery-ui-1.8.11.custom.min.js"
14 type=
"text/javascript"></script>
16 {% comment %} style pour le calendier {% endcomment %}
17 <script type=
"text/javascript">
18 window.__admin_media_prefix__ =
"{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";
20 <link rel=
"stylesheet" type=
"text/css" href=
"{{ MEDIA_URL }}css/calendrier.css" />
21 <script type=
"text/javascript" src=
"/admin/jsi18n/"></script>
22 <script type=
"text/javascript" src=
"{% admin_media_prefix %}js/core.js"></script>
26 <script src=
"{{ MEDIA_URL }}js/dae.js" /></script>
27 <script src=
"{{ MEDIA_URL }}js/dae-poste.js" /></script>
30 <link href=
"{{ MEDIA_URL }}/css/redmond/jquery-ui-1.8.11.custom.css"
34 .row {padding:
10px
0px; clear: both; display:block;}
35 .row * {float: left; margin:
0px; padding:
0px; margin-right:
4px;}
36 .row li {list-style-type: none;}
37 .underline {text-decoration: underline;}
38 .clear {display: block; clear: both;}
39 .note {text-decoration: underline; font-style: italic; margin-left:
12px;}
40 .info {font-size:
13px; font-style: italic;}
41 .noborder {border:none; margin:
0; padding;
0}
42 tr.noborder td {border:none; padding-left:
0;}
48 <h1>Demande d'autorisation de création de poste
</h1>
50 <form action=
"" method=
"post" enctype=
"multipart/form-data">
57 Poste existant : {{ poste.nom }} ({{ poste.implantation.nom }})
63 <th>{{ form.poste.label_tag }} :
<br />{{ form.poste.errors }}
</th>
64 <td>{{ form.poste }}
</td>
67 <th>{{ form.nom.label_tag }} :
<br />{{ form.nom.errors }}
</th>
68 <td>{{ form.nom }}
</td>
71 <th>{{ form.type_poste.label_tag }} :
<br />{{ form.type_poste.errors }}
</th>
72 <td>{{ form.type_poste }}
</td>
75 <th>{{ form.implantation.label_tag }} :
<br />{{ form.implantation.errors }}
</th>
76 <td>{{ form.implantation }}
</td>
79 <th>{{ form.service.label_tag }} :
<br />{{ form.service.errors }}
</th>
80 <td>{{ form.service }}
</td>
83 <th>{{ form.responsable.label_tag }} :
<br />{{ form.responsable.errors }}
</th>
84 <td>{{ form.responsable }}
</td>
95 <th>{{ form.statut_residence.label_tag }} :
<br />{{ form.statut_residence.errors }}
</th>
98 {{ form.statut_residence }}
99 {{ form.mise_a_disposition.label_tag }}
100 {{ form.mise_a_disposition.errors }}
101 {{ form.mise_a_disposition }}
106 <th>{{ form.appel.label_tag }} :
<br />{{ form.appel.errors }}
</th>
118 <h2>Durée prévue du poste
</h2>
119 <span class=
"info">Indépendamment du titulaire du poste
</span>
123 <th rowspan=
"2">Durée :
</th>
126 {{ form.date_debut }}
<br />
127 <span class=
"info">({{form.date_debut.help_text }})
</span><br />
128 {{ form.date_debut.errors }}
132 {{ form.date_fin }}
<br />
133 <span class=
"info">({{form.date_fin.help_text }})
</span><br />
134 {{ form.date_fin.errors }}
136 <th>{{ form.regime_travail.label_tag }} :
<br />{{ form.regime_travail.errors }}
</th>
138 {{ form.regime_travail }}
139 <span class=
"info">{{ form.regime_travail.help_text }}
</span>
143 <td colspan=
"4" class=
"info">
144 <p>Pour une durée indéterminée, spécifier uniquement la date de début.
</p>
147 {{ form.regime_travail_nb_heure_semaine.label_tag }} :
<br />
148 {{ form.regime_travail_nb_heure_semaine.errors }}
150 <td>{{ form.regime_travail_nb_heure_semaine }}
</td>
157 <h2>Classement du poste
</h2>
158 <table id=
"classement">
164 <th>Valeur du point
</th>
166 <th colspan=
"2">Salaire de base
</th>
167 <th colspan=
"2">Indemnité, responsabilité (le cas échéant)
</th>
168 <th colspan=
"2">Autres
</th>
169 <th colspan=
"2">TOTAL
</th>
170 <th>Taux
> €
</th>
171 <th colspan=
"2">Conversion EUR
</th>
176 {{ form.classement_min }}
177 {{ form.classement_min.errors }}
180 {{ form.coefficient_min }}
181 {{ form.coefficient_min.errors }}
184 {{ form.valeur_point_min }}
185 {{ form.valeur_point_min.errors }}
188 {{ form.devise_min }}
189 {{ form.devise_min.errors }}
192 {{ form.salaire_min }}
193 {{ form.salaire_min.errors }}
195 <td><span class=
"devise_code">EUR
</span></td>
196 <td>{{ form.indemn_min }}
</td>
197 <td><span class=
"devise_code">EUR
</span></td>
198 <td>{{ form.autre_min }}
</td>
199 <td><span class=
"devise_code">EUR
</span></td>
200 <td id=
"total_min" class=
"total-devise cell-nombre">0.00</td>
201 <td><span class=
"devise_code">EUR
</span></td>
202 <td class=
"taux">1</td>
203 <td id=
"total_min_euro" class=
"total-euro cell-nombre">0.00</td>
209 {{ form.classement_max }}
210 {{ form.classement_max.errors }}
213 {{ form.coefficient_max }}
214 {{ form.coefficient_max.errors }}
217 {{ form.valeur_point_max }}
218 {{ form.valeur_point_max.errors }}
221 {{ form.devise_max }}
222 {{ form.devise_max.errors }}
225 {{ form.salaire_max }}
226 {{ form.salaire_max.errors }}
228 <td><span class=
"devise_code">EUR
</span></td>
229 <td>{{ form.indemn_max }}
</td>
230 <td><span class=
"devise_code">EUR
</span></td>
231 <td>{{ form.autre_max }}
</td>
232 <td><span class=
"devise_code">EUR
</span></td>
233 <td id=
"total_max" class=
"total-devise cell-nombre">0.00</td>
234 <td><span class=
"devise_code">EUR
</span></td>
235 <td class=
"taux">1</td>
236 <td id=
"total_max_euro" class=
"total-euro cell-nombre">0.00</td>
242 <p class=
"info">N.B Conversion en EUROS au taux de change budgétaire
</p>
245 {% comment %}{% if new %}{% endcomment %}
247 <h2>Éléments de comparaison
</h2>
248 <span class=
"info">Compléter uniquement lors de la création d'un poste
</span>
254 {{ form.devise_comparaison }}
255 {{ form.devise_comparaison.errors }}
264 <th colspan=
"2">Entreprise locale
</th>
265 <th colspan=
"2">Université
</th>
266 <th colspan=
"2">Fonction publique
</th>
267 <th colspan=
"2">ONG
</th>
268 <th colspan=
"2">Autre
</th>
272 <td>{{ form.comp_locale_min }}
</td>
273 <td><span class=
"devise_comp_code">€
</span></td>
274 <td>{{ form.comp_universite_min }}
</td>
275 <td><span class=
"devise_comp_code">€
</span></td>
276 <td>{{ form.comp_fonctionpub_min }}
</td>
277 <td><span class=
"devise_comp_code">€
</span></td>
278 <td>{{ form.comp_ong_min }}
</td>
279 <td><span class=
"devise_comp_code">€
</span></td>
280 <td>{{ form.comp_autre_min }}
</td>
281 <td><span class=
"devise_comp_code">€
</span></td>
285 <td>{{ form.comp_locale_max }}
</td>
286 <td><span class=
"devise_comp_code">€
</span></td>
287 <td>{{ form.comp_universite_max }}
</td>
288 <td><span class=
"devise_comp_code">€
</span></td>
289 <td>{{ form.comp_fonctionpub_max }}
</td>
290 <td><span class=
"devise_comp_code">€
</span></td>
291 <td>{{ form.comp_ong_max }}
</td>
292 <td><span class=
"devise_comp_code">€
</span></td>
293 <td>{{ form.comp_autre_max }}
</td>
294 <td><span class=
"devise_comp_code">€
</span></td>
299 {% comment %}{% endif %}{% endcomment %}
302 <h2>Pièces jointes
</h2>
303 <p class=
"info">Compléter uniquement lors de la création d'un poste
</p>
304 {% include
"dae/pieces.html" %}
308 <input type=
"submit" name=
"save" value=
"Sauvegarder" />
315 <table cellspacing=
"0" id=
"financing">
318 <th colspan=
"2">Montant
</th>
319 <th colspan=
"2">Pourcentage
</th>
323 {% for fin in poste.financements.all %}
325 <td>{{ fin.get_type_display }}
</td>
326 <td class=
"cell-nombre">{{ fin.montant }}
</td>
332 <td class=
"cell-nombre">{{ fin.pourcentage }}
</td>
334 <td>{{ fin.commentaire }}
</td>
335 <td><a href=
"{% url financement poste_key fin.id %}">Modifier
</a></td>
341 Vous devez enregister ce nouveau poste avant de pouvoir spécifier
342 la ou les sources de financement.
344 Aucun financement au registre
351 <a href=
"{% url financement poste_key %}" class=
"new">
352 Ajouter une source de financement
356 <div id=
"financing-form"></div>
359 <script type=
"text/javascript">
360 $('#id_poste').change(function() {
361 window.location = '{% url poste %}/' + $(this).val();
363 $('#financing a, a.new').click(function() {
364 $('#financing-form').load($(this).attr('href') + '?ajax=
1')
375 $(document).ready(function() {
376 valeur_min = '
<input type=
"hidden" id=
"valeur_min" name=
"valeur_min" value=
"0" disabled=
"disabled">'
377 devise_min_code = '
<input type=
"hidden" id=
"devise_min_code" name=
"devise_min_code" value=
"EUR" disabled=
"disabled">'
378 taux_min_euro = '
<input type=
"hidden" id=
"taux_min_euro" name=
"taux_min_euro" value=
"1" disabled=
"disabled">'
379 $('#id_valeur_point_min').after(valeur_min)
380 $('#id_devise_min').after(devise_min_code)
381 $('#total_min_euro').after(taux_min_euro)
383 /* valeur_point, devise et taux de l'implantation par défaut */
385 implantation = $('id_implantation').val();
386 valeur_point_min = $('#id_valeur_point_min').val();
387 if (valeur_point_min == '' and implantation != '')
389 /* simuler id_valeur_point_min change */
392 /* simuler id_devise_min change */
393 devise_min = $('#id_devise_min').val();
394 url_devise_code =
"{% url dae_devise_code %}";
395 $.post(url_devise_code, {'devise':devise_min}, function(data){
396 $('#devise_min_code').val(data[
"devise_code"]);
397 $('#taux_min_euro').val(data[
"taux_euro"]);
398 $('#taux_min_euro_display').empty();
399 $('#taux_min_euro_display').text(data[
"taux_euro"]);
400 $('.devise_min_code').trigger('update_devise_min_code');
401 $('#total_min_euro').trigger('update_total_min_euro');
404 $('#total_min').trigger('update_total_min');
406 $('#total_min_euro').trigger('update_total_min_euro');
409 $('#id_coefficient_min').bind('coeff_min_modified', function(){
410 $('#id_salaire_min').trigger('update_salaire_min');
412 $('.devise_min_code').bind('update_devise_min_code', function(){
413 devise_code = $('#devise_min_code').val();
414 $('.devise_min_code').empty();
415 $('.devise_min_code').text(devise_code);
417 $('#id_salaire_min').bind('update_salaire_min', function(){
418 valeur = $('#valeur_min').val();
419 coeff = $('#id_coefficient_min').val();
420 salaire = coeff * valeur;
421 salaire = clean_float(salaire);
422 $(this).val(salaire);
423 $('#total_min').trigger('update_total_min');
425 $('#total_min').bind('update_total_min', function(){
427 salaire = $('#id_salaire_min').val();
428 indemn = $('#id_indemn_min').val();
429 autre = $('#id_autre_min').val();
430 salaire = clean_float(salaire);
431 indemn = clean_float(indemn);
432 autre = clean_float(autre);
433 total = salaire + indemn + autre;
435 $(this).text(total.toFixed(
2));
436 $('#total_min_euro').trigger('update_total_min_euro');
438 $('#total_min_euro').bind('update_total_min_euro', function(){
439 total = $('#total_min').text();
440 taux_euro = $('#taux_min_euro').val();
441 total = clean_float(total);
442 taux_euro = clean_float(taux_euro);
443 total_euro = total * taux_euro;
445 $(this).text(total_euro.toFixed(
2));
448 $('#id_coefficient_min').change(function(){
449 $(this).trigger('coeff_min_modified');
451 $('#id_classement_min').change(function() {
452 url =
"{% url dae_coefficient %}";
453 $.post(url, {'classement':$(this).val()}, function(data){
454 $('#id_coefficient_min').val(data[
"coefficient"]);
455 $('#id_coefficient_min').trigger('coeff_min_modified');
458 $('#id_valeur_point_min').change(function() {
459 url_valeur =
"{% url dae_valeur %}";
460 url_devise =
"{% url dae_devise %}";
461 min_now = $('#id_valeur_point_min').val();
462 max_now = $('#id_valeur_point_max').val();
463 $.post(url_valeur, {'valeur_point':min_now}, function(data){
464 $('#valeur_min').val(data[
"valeur"]);
465 $('#id_salaire_min').trigger('update_salaire_min');
466 $('#total_min_euro').trigger('update_total_min_euro');
468 $('#id_valeur_point_max').val(min_now);
469 $('#valeur_max').val(data[
"valeur"]);
470 $('#id_salaire_max').trigger('update_salaire_max');
471 $('#total_max_euro').trigger('update_total_max_euro');
474 $.post(url_devise, {'valeur_point':min_now}, function(data){
475 $('#id_devise_min').val(data[
"devise"]);
476 $('#devise_min_code').val(data[
"devise_code"]);
477 $('#taux_min_euro').val(data[
"taux_euro"]);
478 $('#taux_min_euro_display').empty();
479 $('#taux_min_euro_display').text(data[
"taux_euro"]);
480 $('.devise_min_code').trigger('update_devise_min_code');
481 $('#total_min_euro').trigger('update_total_min_euro');
483 $('#id_devise_max').val(data[
"devise"]);
484 $('#devise_max_code').val(data[
"devise_code"]);
485 $('#taux_max_euro').val(data[
"taux_euro"]);
486 $('#taux_max_euro_display').empty();
487 $('#taux_max_euro_display').text(data[
"taux_euro"]);
488 $('.devise_max_code').trigger('update_devise_max_code');
489 $('#total_max_euro').trigger('update_total_max_euro');
493 $('#id_devise_min').change(function(){
494 devise_min = $('#id_devise_min').val();
495 url_devise_code =
"{% url dae_devise_code %}";
496 $.post(url_devise_code, {'devise':devise_min}, function(data){
497 $('#devise_min_code').val(data[
"devise_code"]);
498 $('#taux_min_euro').val(data[
"taux_euro"]);
499 $('#taux_min_euro_display').empty();
500 $('#taux_min_euro_display').text(data[
"taux_euro"]);
501 $('.devise_min_code').trigger('update_devise_min_code');
502 $('#total_min_euro').trigger('update_total_min_euro');
505 $('#id_salaire_min').change(function(){
506 $('#total_min').trigger('update_total_min');
508 $('#id_indemn_min').change(function(){
509 $('#total_min').trigger('update_total_min');
511 $('#id_autre_min').change(function(){
512 $('#total_min').trigger('update_total_min');
516 $(document).ready(function() {
517 valeur_max = '
<input type=
"hidden" id=
"valeur_max" name=
"valeur_max" value=
"0" disabled=
"disabled">'
518 devise_max_code = '
<input type=
"hidden" id=
"devise_max_code" name=
"devise_max_code" value=
"EUR" disabled=
"disabled">'
519 taux_max_euro = '
<input type=
"hidden" id=
"taux_max_euro" name=
"taux_max_euro" value=
"1" disabled=
"disabled">'
520 $('#id_valeur_point_max').after(valeur_max)
521 $('#id_devise_max').after(devise_max_code)
522 $('#total_max_euro').after(taux_max_euro)
524 /* simuler id_devise_max change */
525 devise_max = $('#id_devise_max').val();
526 url_devise_code =
"{% url dae_devise_code %}";
527 $.post(url_devise_code, {'devise':devise_max}, function(data){
528 $('#devise_max_code').val(data[
"devise_code"]);
529 $('#taux_max_euro').val(data[
"taux_euro"]);
530 $('#taux_max_euro_display').empty();
531 $('#taux_max_euro_display').text(data[
"taux_euro"]);
532 $('.devise_max_code').trigger('update_devise_max_code');
533 $('#total_max_euro').trigger('update_total_max_euro');
536 $('#total_max').trigger('update_total_max');
538 $('#total_max_euro').trigger('update_total_max_euro');
541 $('#id_coefficient_max').bind('coeff_max_modified', function(){
542 $('#id_salaire_max').trigger('update_salaire_max');
544 $('.devise_max_code').bind('update_devise_max_code', function(){
545 devise_code = $('#devise_max_code').val();
546 $('.devise_max_code').empty();
547 $('.devise_max_code').text(devise_code);
549 $('#id_salaire_max').bind('update_salaire_max', function(){
550 valeur = $('#valeur_max').val();
551 coeff = $('#id_coefficient_max').val();
552 salaire = coeff * valeur;
553 salaire = clean_float(salaire);
554 $(this).val(salaire);
555 $('#total_max').trigger('update_total_max');
557 $('#total_max').bind('update_total_max', function(){
559 salaire = $('#id_salaire_max').val();
560 indemn = $('#id_indemn_max').val();
561 autre = $('#id_autre_max').val();
562 salaire = clean_float(salaire);
563 indemn = clean_float(indemn);
564 autre = clean_float(autre);
565 total = salaire + indemn + autre;
567 $(this).text(total.toFixed(
2));
568 $('#total_max_euro').trigger('update_total_max_euro');
570 $('#total_max_euro').bind('update_total_max_euro', function(){
571 total = $('#total_max').text();
572 taux_euro = $('#taux_max_euro').val();
573 total = clean_float(total);
574 taux_euro = clean_float(taux_euro);
575 total_euro = total * taux_euro;
577 $(this).text(total_euro.toFixed(
2));
580 $('#id_coefficient_max').change(function(){
581 $(this).trigger('coeff_max_modified');
583 $('#id_classement_max').change(function() {
584 url =
"{% url dae_coefficient %}";
585 $.post(url, {'classement':$(this).val()}, function(data){
586 $('#id_coefficient_max').val(data[
"coefficient"]);
587 $('#id_coefficient_max').trigger('coeff_max_modified');
590 $('#id_valeur_point_max').change(function() {
591 url_valeur =
"{% url dae_valeur %}";
592 url_devise =
"{% url dae_devise %}";
593 min_now = $('#id_valeur_point_min').val();
594 max_now = $('#id_valeur_point_max').val();
595 $.post(url_valeur, {'valeur_point':max_now}, function(data){
596 $('#valeur_max').val(data[
"valeur"]);
597 $('#id_salaire_max').trigger('update_salaire_max');
598 $('#total_max_euro').trigger('update_total_max_euro');
600 $('#id_valeur_point_min').val(max_now);
601 $('#valeur_min').val(data[
"valeur"]);
602 $('#id_salaire_min').trigger('update_salaire_min');
603 $('#total_min_euro').trigger('update_total_min_euro');
606 $.post(url_devise, {'valeur_point':max_now}, function(data){
607 $('#id_devise_max').val(data[
"devise"]);
608 $('#devise_max_code').val(data[
"devise_code"]);
609 $('#taux_max_euro').val(data[
"taux_euro"]);
610 $('#taux_max_euro_display').empty();
611 $('#taux_max_euro_display').text(data[
"taux_euro"]);
612 $('.devise_max_code').trigger('update_devise_max_code');
613 $('#total_max_euro').trigger('update_total_max_euro');
615 $('#id_devise_min').val(data[
"devise"]);
616 $('#devise_min_code').val(data[
"devise_code"]);
617 $('#taux_min_euro').val(data[
"taux_euro"]);
618 $('#taux_min_euro_display').empty();
619 $('#taux_min_euro_display').text(data[
"taux_euro"]);
620 $('.devise_min_code').trigger('update_devise_min_code');
621 $('#total_min_euro').trigger('update_total_min_euro');
625 $('#id_devise_max').change(function(){
626 devise_max = $('#id_devise_max').val();
627 url_devise_code =
"{% url dae_devise_code %}";
628 $.post(url_devise_code, {'devise':devise_max}, function(data){
629 $('#devise_max_code').val(data[
"devise_code"]);
630 $('#taux_max_euro').val(data[
"taux_euro"]);
631 $('#taux_max_euro_display').empty();
632 $('#taux_max_euro_display').text(data[
"taux_euro"]);
633 $('.devise_max_code').trigger('update_devise_max_code');
634 $('#total_max_euro').trigger('update_total_max_euro');
637 $('#id_salaire_max').change(function(){
638 $('#total_max').trigger('update_total_max');
640 $('#id_indemn_max').change(function(){
641 $('#total_max').trigger('update_total_max');
643 $('#id_autre_max').change(function(){
644 $('#total_max').trigger('update_total_max');
649 $(document).ready(function() {
650 devise_comp_code = '
<input type=
"hidden" id=
"devise_comp_code" name=
"devise_comp_code" value=
"EUR" disabled=
"disabled">'
651 $('#id_devise_comparaison').after(devise_comp_code)
653 /* simuler id_devise_comparaison change */
654 devise_comparaison = $('#id_devise_comparaison').val();
655 url_devise_code =
"{% url dae_devise_code %}";
656 $.post(url_devise_code, {'devise':devise_comparaison}, function(data){
657 $('#devise_comp_code').val(data[
"devise_code"]);
658 $('.devise_comp_code').trigger('update_devise_comp_code');
661 $('.devise_comp_code').bind('update_devise_comp_code', function(){
662 devise_code = $('#devise_comp_code').val();
663 $('.devise_comp_code').empty();
664 $('.devise_comp_code').text(devise_code);
666 $('#id_devise_comparaison').change(function(){
667 devise_comparaison = $('#id_devise_comparaison').val();
668 url_devise_code =
"{% url dae_devise_code %}";
669 $.post(url_devise_code, {'devise':devise_comparaison}, function(data){
670 $('#devise_comp_code').val(data[
"devise_code"]);
671 $('.devise_comp_code').trigger('update_devise_comp_code');
676 function clean_float(value){
677 if (value == undefined)
680 output = parseFloat(value);
681 output = Math.round(output*
100)/
100;