fix #1425
[auf_rh_dae.git] / project / dae / templates / dae / embauche.html
CommitLineData
139686f2 1{% extends 'base.html' %}
0e0aeb7e 2{% load adminmedia %}
139686f2 3
e8e75458 4{% block title %}RH - DAE - Embauche{% endblock %}
5{% block titre %}Ressources humaines{% endblock %}
6{% block sous_titre %}Demande d'autorisation d'embauche{% endblock %}
7
139686f2
NC
8{% block extrahead %}
9 <script src="{{ MEDIA_URL }}js/jquery-1.5.1.min.js"
10 type="text/javascript"></script>
da3ca955 11
0e0aeb7e
OL
12 {% comment %} style pour le calendier {% endcomment %}
13 <script type="text/javascript">
14 window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";
15 </script>
16 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/calendrier.css" />
9d1253e9 17 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/dae.css" />
0e0aeb7e
OL
18 <script type="text/javascript" src="/admin/jsi18n/"></script>
19 <script type="text/javascript" src="{% admin_media_prefix %}js/core.js"></script>
20 <script type="text/javascript" src="{% admin_media_prefix %}js/calendar.js"></script>
21 <script type="text/javascript" src="{% admin_media_prefix %}js/admin/DateTimeShortcuts.js"></script>
dfc31755
OL
22 <script src="{{ MEDIA_URL }}js/dae.js" type="text/javascript"></script>
23 <script src="{{ MEDIA_URL }}js/dae-embauche.js" type="text/javascript"></script>
139686f2 24{% endblock %}
139686f2
NC
25
26{% block main %}
da3ca955 27<h1>Demandes d'autorisation d'engagement de personnel</h1>
0db0aedd 28<form action="" method="post" enctype="multipart/form-data">
da3ca955 29{% if step == 'poste' %}
30 <h2 class="section">SECTION 1 - POSTE</h2>
31 <fieldset>
32 <h2>Poste visé</h2>
33
34 <table cellspacing="0">
139686f2 35 {{ form.as_table }}
da3ca955 36 </table>
37 </fieldset>
da3ca955 38{% else %}
39 <h2 class="section">SECTION 1 - POSTE</h2>
5b78da24 40 {% include 'dae/poste_resume.html' %}
da3ca955 41
42 <h2 class="section">SECTION 2 - PERSONNEL ENGAGÉ</h2>
43 <fieldset>
44 <div>
45 <div class="gauche"><h2>Personne</h2></div>
46 <div class="droite">
47 <table class="droite">
48 <tbody>
49 <tr>
50 <th>Mobilité interne</th>
51 <td colspan="3"><input id="mobilite_interne" type="checkbox" name="mobilite_interne" /></td>
52 </tr>
53 </tbody>
54 </table>
55 </div>
56 </div>
57 <div class="clear"></div>
58 <table id="form-employe">
59 <tbody>
60 <tr>
61 <th>
62 Employé :<br />
63 {{ forms.employe.employe.errors }}
64 </th>
65 <td colspan="5">{{ forms.employe.employe }}</td>
66 </tr>
67 <tr>
68 <th>
69 {{ forms.employe.nom.label_tag }} :<br />
70 {{ forms.employe.nom.errors }}
71 </th>
72 <td>{{ forms.employe.nom }}</td>
73 <th>
74 {{ forms.employe.prenom.label_tag }} :<br />
75 {{ forms.employe.prenom.errors }}
76 </th>
77 <td>{{ forms.employe.prenom }}</td>
78 <th>
79 {{ forms.employe.genre.label_tag }} :<br />
80 {{ forms.employe.genre.errors }}
81 </th>
82 <td>{{ forms.employe.genre }}</td>
83 </tr>
84 </tbody>
85 </table>
86
87 <input type="hidden" id="poste" name="poste"
88 value="dae-{{ poste.id }}" />
89 <input type="hidden" id="implantation" name="implantation"
90 value="{{ poste.implantation_id }}" />
91 <input type="hidden" id="dossier" name="dossier"
92 value="{{ dossier.id }}" />
93 </fieldset>
94
7e43f9b6
OL
95 <fieldset>
96 <h2>Comparaison salariale</h2>
97 <span class="info">dans la région pour les employés occupant un poste similaire</span>
98 <table>
99 <tbody>
100 <tr>
101 <th>Employé</th>
102 <th>Poste</th>
103 <th>Date fin contrat</th>
104 <th>Salaire</th>
62dbbb71 105 <th>Salaire EUR</th>
7e43f9b6
OL
106 <th>Implantation</th>
107 <th>Famille Emploi</th>
108 </tr>
109 {% for d in comparaison_dossiers %}
110 <tr>
111 <td>{{ d.employe }}</td>
112 <td>{{ d.poste1.type_poste.nom }} {{ d.complement1 }}</td>
113 <td>{{ d.contrat_date_fin|default:"en cours" }}</td>
114 <td>{{ d.get_salaire_display }}</td>
62dbbb71 115 <td>{{ d.get_salaire_euro_display }}</td>
7e43f9b6
OL
116 <td>{{ d.poste1.implantation }}</td>
117 <td>{{ d.poste1.type_poste.famille_emploi.nom }}</td>
118 </tr>
119 {% endfor %}
120 </tbody>
121 </table>
122 </fieldset>
123
124
179f6b49
OL
125 <div id="form-dossier">
126 {% comment %}Wrapper du formulaire de dossier{% endcomment %}
72db8238
OL
127 {% with forms.dossier as form %}
128 {% include "dae/embauche-dossier.html" %}
129 {% endwith %}
179f6b49 130 </div>
6b34f27e 131
dbb687ad
OL
132 <fieldset>
133 <h2>Pièces jointes</h2>
134 <p class="info">CV, lettre de motivation...</p>
135 {% include "dae/pieces.html" %}
136 </fieldset>
137
0801327c
NC
138 <h2 class="section">SECTION 3 - COÛT GLOBAL</h2>
139
cb1d62b5 140 <fieldset>
cb1d62b5
NC
141
142 {% if new %}
143 <p>
144 Vous devez enregister ce dossier avant de pouvoir détailler le
145 coût global.
146 </p>
147 {% else %}
148 <table cellspacing="0" id="global-cost">
149 {% include 'dae/embauche-remun.html' %}
150 </table>
151
152 <select id="type-remun" name="type-remun">
153 <option value="">(Ajouter une ligne)</option>
154 {% for tr in type_remun %}
155 <option value="{{ tr.id }}">{{ tr.nom }}</option>
156 {% endfor %}
157 </select>
158 {% endif %}
159
160 </fieldset>
161
0801327c 162 <h2 class="section">SECTION 4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)</h2>
e289ef67
OL
163 <h3>A - Justification du poste</h3>
164 <p>{{ poste.justification }}</p>
165
166 <h3>B - Justification de l'employé</h3>
72db8238
OL
167 <p class="info">Les questions posées pour la justification apparaîtront après avoir enregistré le dossier.</p>
168 <table>
169 <tr>
170 <th>NOUVEL EMPLOYÉ</th>
171 <th>RENOUVELLEMENT, PROLONGATION, RECLASSEMENT, MOBILITÉ INTERNE</th>
172 </tr>
173 <tr>
174 <td>
175 {% with justificationsNouveauForm as form %}
176 {% include "dae/justifications.html" %}
177 {% endwith %}
178 </td>
179 <td>
180 {% with justificationsAutreForm as form %}
181 {% include "dae/justifications.html" %}
182 {% endwith %}
183 </td>
184 </tr>
185 </table>
139686f2 186 <input type="submit" name="save" value="Sauvegarder" />
cb1d62b5 187 </form>
cb1d62b5 188 {% endif %}
139686f2
NC
189{% endblock %}
190