1 {% extends 'base.html' %}
3 {% block title %}RH - DAE - Embauche{% endblock %}
4 {% block titre %}Ressources humaines{% endblock %}
5 {% block sous_titre %}Demande d'autorisation d'embauche{% endblock %}
8 <script src=
"{{ MEDIA_URL }}js/jquery-1.5.1.min.js"
9 type=
"text/javascript"></script>
14 background-color: #D0E8F8;
17 margin:
50px
0px
26px
0px;
18 border-bottom:
3px solid #BBD8EC;
21 .row {padding:
10px
0px; clear: both; display:block;}
22 .row * {float: left; margin:
0px; padding:
0px; margin-right:
4px;}
23 .row li {list-style-type: none;}
24 .underline {text-decoration: underline;}
25 .clear {display: block; clear: both;}
26 .note {text-decoration: underline; font-style: italic; margin-left:
12px;}
27 .info {font-size:
13px; font-style: italic;}
28 .noborder {border:none; margin:
0; padding;
0}
29 tr.noborder td {border:none; padding-left:
0;}
30 .gauche { float:left; }
31 .droite { float:right; text-align:right; }
32 .clear { clear:both; width:
100%; }
37 <h1>Demandes d'autorisation d'engagement de personnel
</h1>
38 <form action=
"" method=
"post">
39 {% if step == 'poste' %}
40 <h2 class=
"section">SECTION
1 - POSTE
</h2>
44 <table cellspacing=
"0">
49 <script type=
"text/javascript">
50 $('#id_poste').change(function() {
51 window.location = '{% url embauche %}/' + $(this).val();
55 <h2 class=
"section">SECTION
1 - POSTE
</h2>
57 <h2>Poste : {{ poste.nom }} ({{ poste.implantation.nom }})
</h2>
61 <h2 class=
"section">SECTION
2 - PERSONNEL ENGAGÉ
</h2>
64 <div class=
"gauche"><h2>Personne
</h2></div>
66 <table class=
"droite">
69 <th>Mobilité interne
</th>
70 <td colspan=
"3"><input id=
"mobilite_interne" type=
"checkbox" name=
"mobilite_interne" /></td>
76 <div class=
"clear"></div>
77 <table id=
"form-employe">
82 {{ forms.employe.employe.errors }}
84 <td colspan=
"5">{{ forms.employe.employe }}
</td>
88 {{ forms.employe.nom.label_tag }} :
<br />
89 {{ forms.employe.nom.errors }}
91 <td>{{ forms.employe.nom }}
</td>
93 {{ forms.employe.prenom.label_tag }} :
<br />
94 {{ forms.employe.prenom.errors }}
96 <td>{{ forms.employe.prenom }}
</td>
98 {{ forms.employe.genre.label_tag }} :
<br />
99 {{ forms.employe.genre.errors }}
101 <td>{{ forms.employe.genre }}
</td>
106 <input type=
"hidden" id=
"poste" name=
"poste"
107 value=
"dae-{{ poste.id }}" />
108 <input type=
"hidden" id=
"implantation" name=
"implantation"
109 value=
"{{ poste.implantation_id }}" />
110 <input type=
"hidden" id=
"dossier" name=
"dossier"
111 value=
"{{ dossier.id }}" />
114 <script type=
"text/javascript">
115 function activateEmployeDropDown() {
116 $('#id_employe').change(loadEmploye);
119 function loadEmploye() {
120 var employeUrl = '{% url employe %}/' + $(this).val();
121 $('#form-employe').html('
<tr><td>Chargement...
</td></tr>')
122 .load(employeUrl, activateEmployeDropDown);
123 var dossierUrl = '{% url dossier %}/' + $('#poste').val() +
125 $('#form-dossier').html('
<tr><td>Chargement...
</td></tr>')
126 .load(dossierUrl, activateDossierDropDowns);
128 activateEmployeDropDown();
131 {% with forms.dossier as form %}
132 {% include
"dae/embauche-dossier.html" %}
136 <h2>Pièces jointes
</h2>
137 <p class=
"info">CV, lettre de motivation...
</p>
138 {% include
"dae/pieces.html" %}
141 <script type=
"text/javascript">
142 function activateDossierDropDowns() {
143 $('#id_classement, #id_devise').change(loadSalaire);
146 function loadSalaire() {
147 $.getJSON('{% url salaire %}/' + $('#implantation').val() + '/' +
148 $('#id_devise').val() + '/' + $('#id_classement').val(),
151 $('#id_salaire').val(data.salaire_devise);
155 activateDossierDropDowns();
158 <h2 class=
"section">SECTION
3 - COÛT GLOBAL
</h2>
164 Vous devez enregister ce dossier avant de pouvoir détailler le
168 <table cellspacing=
"0" id=
"global-cost">
169 {% include 'dae/embauche-remun.html' %}
172 <select id=
"type-remun" name=
"type-remun">
173 <option value=
"">(Ajouter une ligne)
</option>
174 {% for tr in type_remun %}
175 <option value=
"{{ tr.id }}">{{ tr.nom }}
</option>
182 <script type=
"text/javascript">
184 return Math.round(n *
100) /
100;
187 $('#global-cost input[id^=
"montant"]').live('keyup', function() {
188 var value = $(this).val(),
189 idParts = $(this).attr('id').split('-'),
192 if (name == 'montant') {
193 $('#montant_mois-' + id).val(round2(value /
12));
196 $('#montant-' + id).val(round2(value));
198 var taux = $('#taux_devise-' + id).val();
199 $('#montant_euro_mois-' + id).text(round2(value / taux /
12));
200 $('#montant_euro-' + id).text(round2(value / taux));
204 <h2 class=
"section">SECTION
4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)
</h2>
206 <input type=
"submit" name=
"save" value=
"Sauvegarder" />
208 <script type=
"text/javascript">
209 $('#type-remun').change(function() {
210 if ($(this).val() != '') {
211 $('#global-cost').html('
<tr><td>Chargement...
</td></tr>')
212 .load('{% url add_remun %}/' +
213 $('#dossier').val() + '/' +
214 $(this).val(), function() {
215 $('#type-remun').val('');