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