css refactorisation
[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>
40 <fieldset>
41 <h2>Poste : {{ poste.nom }} ({{ poste.implantation.nom }})</h2>
42
43 </fieldset>
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
7e43f9b6
OL
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 <table>
102 <tbody>
103 <tr>
104 <th>Employé</th>
105 <th>Poste</th>
106 <th>Date fin contrat</th>
107 <th>Salaire</th>
62dbbb71 108 <th>Salaire EUR</th>
7e43f9b6
OL
109 <th>Implantation</th>
110 <th>Famille Emploi</th>
111 </tr>
112 {% for d in comparaison_dossiers %}
113 <tr>
114 <td>{{ d.employe }}</td>
115 <td>{{ d.poste1.type_poste.nom }} {{ d.complement1 }}</td>
116 <td>{{ d.contrat_date_fin|default:"en cours" }}</td>
117 <td>{{ d.get_salaire_display }}</td>
62dbbb71 118 <td>{{ d.get_salaire_euro_display }}</td>
7e43f9b6
OL
119 <td>{{ d.poste1.implantation }}</td>
120 <td>{{ d.poste1.type_poste.famille_emploi.nom }}</td>
121 </tr>
122 {% endfor %}
123 </tbody>
124 </table>
125 </fieldset>
126
127
179f6b49
OL
128 <div id="form-dossier">
129 {% comment %}Wrapper du formulaire de dossier{% endcomment %}
72db8238
OL
130 {% with forms.dossier as form %}
131 {% include "dae/embauche-dossier.html" %}
132 {% endwith %}
179f6b49 133 </div>
6b34f27e 134
dbb687ad
OL
135 <fieldset>
136 <h2>Pièces jointes</h2>
137 <p class="info">CV, lettre de motivation...</p>
138 {% include "dae/pieces.html" %}
139 </fieldset>
140
0801327c
NC
141 <h2 class="section">SECTION 3 - COÛT GLOBAL</h2>
142
cb1d62b5 143 <fieldset>
cb1d62b5
NC
144
145 {% if new %}
146 <p>
147 Vous devez enregister ce dossier avant de pouvoir détailler le
148 coût global.
149 </p>
150 {% else %}
151 <table cellspacing="0" id="global-cost">
152 {% include 'dae/embauche-remun.html' %}
153 </table>
154
155 <select id="type-remun" name="type-remun">
156 <option value="">(Ajouter une ligne)</option>
157 {% for tr in type_remun %}
158 <option value="{{ tr.id }}">{{ tr.nom }}</option>
159 {% endfor %}
160 </select>
161 {% endif %}
162
163 </fieldset>
164
0801327c 165 <h2 class="section">SECTION 4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)</h2>
e289ef67
OL
166 <h3>A - Justification du poste</h3>
167 <p>{{ poste.justification }}</p>
168
169 <h3>B - Justification de l'employé</h3>
72db8238
OL
170 <p class="info">Les questions posées pour la justification apparaîtront après avoir enregistré le dossier.</p>
171 <table>
172 <tr>
173 <th>NOUVEL EMPLOYÉ</th>
174 <th>RENOUVELLEMENT, PROLONGATION, RECLASSEMENT, MOBILITÉ INTERNE</th>
175 </tr>
176 <tr>
177 <td>
178 {% with justificationsNouveauForm as form %}
179 {% include "dae/justifications.html" %}
180 {% endwith %}
181 </td>
182 <td>
183 {% with justificationsAutreForm as form %}
184 {% include "dae/justifications.html" %}
185 {% endwith %}
186 </td>
187 </tr>
188 </table>
139686f2 189 <input type="submit" name="save" value="Sauvegarder" />
cb1d62b5 190 </form>
cb1d62b5 191 {% endif %}
139686f2
NC
192{% endblock %}
193