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