Merge branch 'hotfix/comparaison_clear_id'
[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 %}
47560eb5 6{% block sous_titre %}Demande d'autorisation d'engagement{% endblock %}
e8e75458 7
139686f2 8{% block extrahead %}
63f8af95 9 <script src="{{ STATIC_URL }}js/jquery-1.5.1.min.js"
139686f2 10 type="text/javascript"></script>
da3ca955 11
0a085c42
OL
12 <script type="text/javascript">
13 var DEVISES = {};
14 {% for d in devises %}
4718c21c 15 DEVISES['{{d.devise_code}}'] = {{d.taux_euro|stringformat:"f"}};
0a085c42
OL
16 {% endfor %}
17 </script>
18
0e0aeb7e
OL
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>
63f8af95
OL
23 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/calendrier.css" />
24 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/dae.css" />
0e0aeb7e
OL
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>
63f8af95
OL
29 <script src="{{ STATIC_URL }}jquery-autocomplete/jquery.autocomplete.js" type="text/javascript"></script>
30 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}jquery-autocomplete/jquery.autocomplete.css" />
31 <script src="{{ STATIC_URL }}js/dae.js" type="text/javascript"></script>
32 <script src="{{ STATIC_URL }}js/dae-embauche.js" type="text/javascript"></script>
36fc5c09 33 <script src="{{ STATIC_URL }}js/remun.js" type="text/javascript"></script>
139686f2 34{% endblock %}
139686f2
NC
35
36{% block main %}
58ad4beb 37
47560eb5 38<h1>Demande d'autorisation d'engagement de personnel</h1>
0db0aedd 39<form action="" method="post" enctype="multipart/form-data">
da3ca955 40 <h2 class="section">SECTION 1 - POSTE</h2>
5b78da24 41 {% include 'dae/poste_resume.html' %}
9536ea21 42
da3ca955 43 <h2 class="section">SECTION 2 - PERSONNEL ENGAGÉ</h2>
44 <fieldset>
45 <div>
46 <div class="gauche"><h2>Personne</h2></div>
47 <div class="droite">
48 <table class="droite">
49 <tbody>
50 <tr>
51 <th>Mobilité interne</th>
52 <td colspan="3"><input id="mobilite_interne" type="checkbox" name="mobilite_interne" /></td>
53 </tr>
54 </tbody>
55 </table>
56 </div>
57 </div>
58 <div class="clear"></div>
59 <table id="form-employe">
60 <tbody>
61 <tr>
62 <th>
63 Employé :<br />
64 {{ forms.employe.employe.errors }}
65 </th>
66 <td colspan="5">{{ forms.employe.employe }}</td>
67 </tr>
68 <tr>
69 <th>
70 {{ forms.employe.nom.label_tag }} :<br />
71 {{ forms.employe.nom.errors }}
72 </th>
73 <td>{{ forms.employe.nom }}</td>
74 <th>
75 {{ forms.employe.prenom.label_tag }} :<br />
76 {{ forms.employe.prenom.errors }}
77 </th>
78 <td>{{ forms.employe.prenom }}</td>
79 <th>
80 {{ forms.employe.genre.label_tag }} :<br />
81 {{ forms.employe.genre.errors }}
82 </th>
83 <td>{{ forms.employe.genre }}</td>
84 </tr>
85 </tbody>
86 </table>
87
9536ea21 88 <input type="hidden" id="poste" name="poste"
da3ca955 89 value="dae-{{ poste.id }}" />
90 <input type="hidden" id="implantation" name="implantation"
91 value="{{ poste.implantation_id }}" />
92 <input type="hidden" id="dossier" name="dossier"
93 value="{{ dossier.id }}" />
94 </fieldset>
95
7e43f9b6
OL
96 <fieldset>
97 <h2>Comparaison salariale</h2>
98 <span class="info">dans la région pour les employés occupant un poste similaire</span>
320d7584 99 {{ comparaisons_formset.management_form }}
9536ea21 100
320d7584 101 {% for f in comparaisons_formset.forms %}
03b395db
OL
102 <table>
103 {% for field in f %}
104 {% if field.is_hidden %}{{ field }}{% endif %}
105 {% endfor %}
8fb23ce9 106 <tr><td colspan=2>Rechercher (personne, poste) : {{ f.recherche }} <span class="clear-cmp"><a href="#" class="display-none">Supprimmer</a></span></td></tr>
58ad4beb
OL
107 <tr><th>{{ f.implantation.label }}</th><td>{{ f.implantation.errors }} {{ f.implantation }}</td></tr>
108 <tr><th>{{ f.poste.label }}</th><td>{{ f.poste.errors }} {{ f.poste }}</td></tr>
109 <tr><th>{{ f.personne.label }}</th><td>{{ f.personne.errors }} {{ f.personne }}</td></tr>
119bc407
OL
110 <tr><th>{{ f.statut.label }}</th><td>{{ f.statut.errors }} {{ f.statut }}</td></tr>
111 <tr><th>{{ f.classement.label }}</th><td>{{ f.classement.errors }} {{ f.classement }}</td></tr>
112 <tr><th>{{ f.montant.label }} ({{f.devise.label }})</th><td>{{ f.montant.errors }} {{ f.montant }} {{ f.devise.errors }} {{f.devise }}</td></tr>
03b395db
OL
113 </table>
114 {% endfor %}
7e43f9b6
OL
115 </fieldset>
116
117
179f6b49 118 <div id="form-dossier">
661da766 119 <!-- Wrapper du formulaire de dossier -->
72db8238
OL
120 {% with forms.dossier as form %}
121 {% include "dae/embauche-dossier.html" %}
122 {% endwith %}
179f6b49 123 </div>
6b34f27e 124
dbb687ad
OL
125 <fieldset>
126 <h2>Pièces jointes</h2>
127 <p class="info">CV, lettre de motivation...</p>
128 {% include "dae/pieces.html" %}
129 </fieldset>
9536ea21 130
0801327c
NC
131 <h2 class="section">SECTION 3 - COÛT GLOBAL</h2>
132
cb1d62b5 133 <fieldset>
cb1d62b5 134
b9098c33 135 {% include 'dae/embauche-remun.html' %}
0a085c42 136
661da766
BS
137 <!-- <select id="type-remun" name="type-remun"> -->
138 <!-- <option value="">(Ajouter une ligne)</option> -->
139 <!-- {% for tr in type_remun %} -->
140 <!-- <option value="{{ tr.id }}">{{ tr.nom }}</option> -->
141 <!-- {% endfor %} -->
142 <!-- </select> -->
cb1d62b5
NC
143
144 </fieldset>
145
0801327c 146 <h2 class="section">SECTION 4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)</h2>
e289ef67
OL
147 <h3>A - Justification du poste</h3>
148 <p>{{ poste.justification }}</p>
149
150 <h3>B - Justification de l'employé</h3>
72db8238
OL
151 <table>
152 <tr>
29dffede
OL
153 <th>Nouvel employé</th>
154 <th>Renouvellement, prolongation, reclassement, mobilité interne</th>
72db8238
OL
155 </tr>
156 <tr>
29dffede
OL
157 <td>
158 <h4>{{ forms.dossier.justif_nouveau_statut.label }}</h4>
159 {{ forms.dossier.justif_nouveau_statut }}
160 <h4>{{ forms.dossier.justif_nouveau_tmp_remplacement.label }}</h4>
161 {{ forms.dossier.justif_nouveau_tmp_remplacement }}
162 <h4>{{ forms.dossier.justif_nouveau_salaire.label }}</h4>
163 {{ forms.dossier.justif_nouveau_salaire }}
164 <h4>{{ forms.dossier.justif_nouveau_commentaire.label }}</h4>
165 {{ forms.dossier.justif_nouveau_commentaire }}
72db8238
OL
166 </td>
167 <td>
29dffede
OL
168 <h4>{{ forms.dossier.justif_rempl_type_contrat.label }}</h4>
169 {{ forms.dossier.justif_rempl_type_contrat}}
170 <h4>{{ forms.dossier.justif_rempl_statut_employe.label }}</h4>
171 {{ forms.dossier.justif_rempl_statut_employe}}
172 <h4>{{ forms.dossier.justif_rempl_evaluation.label }}</h4>
173 {{ forms.dossier.justif_rempl_evaluation}}
174 <h4>{{ forms.dossier.justif_rempl_salaire.label }}</h4>
175 {{ forms.dossier.justif_rempl_salaire }}
176 <h4>{{ forms.dossier.justif_rempl_commentaire.label }}</h4>
177 {{ forms.dossier.justif_rempl_commentaire }}
72db8238
OL
178 </td>
179 </tr>
180 </table>
9536ea21 181
6147b497 182 <input type="submit" name="continue" value="Sauvegarder (et ajouter des lignes)" />
139686f2 183 <input type="submit" name="save" value="Sauvegarder" />
cb1d62b5 184 </form>
139686f2 185{% endblock %}