| 1 | {% extends 'base.html' %} |
| 2 | {% load adminmedia dae permissions %} |
| 3 | |
| 4 | {% block title %}RH - DAE - Embauche{% endblock %} |
| 5 | {% block titre %}Ressources humaines{% endblock %} |
| 6 | {% block sous_titre %}Demande d'autorisation d'engagement{% endblock %} |
| 7 | |
| 8 | {% block extrahead %} |
| 9 | <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/dae.css" /> |
| 10 | <link rel="stylesheet" type="text/css" media="print" href="{{ STATIC_URL }}css/print.css" /> |
| 11 | <script src="{{ STATIC_URL }}js/jquery-1.5.1.min.js" |
| 12 | type="text/javascript"></script> |
| 13 | <script type="text/javascript"> |
| 14 | var DEVISES = {}; |
| 15 | {% for d in devises %} |
| 16 | DEVISES['{{d.devise_code}}'] = {{d.taux_euro|stringformat:".10f"}}; |
| 17 | {% endfor %} |
| 18 | </script> |
| 19 | <script src="{{ STATIC_URL }}js/dae.js" type="text/javascript"></script> |
| 20 | <script src="{{ STATIC_URL }}js/remun.js" type="text/javascript"></script> |
| 21 | {% endblock %} |
| 22 | |
| 23 | {% block main %} |
| 24 | <h1 class="gauche">Demande d'autorisation d'engagement de personnel</h1> |
| 25 | <a class="droite bouton-action" href="#" onclick="window.print(); return false;">Impression</a> |
| 26 | {% if dossier|est_editable:request.user %} |
| 27 | <a class="droite bouton-action" href="{% url embauche dossier.poste.key dossier.id %}">Modifier le dossier</a> |
| 28 | {% endif %} |
| 29 | {% if dossier.poste|est_editable:request.user %} |
| 30 | <a class="droite bouton-action" href="{% url poste dossier.poste.key %}">Modifier le poste</a> |
| 31 | {% endif %} |
| 32 | {% if importer and not dossier.dossier_rh %} |
| 33 | <a class="droite bouton-action" href="{% url embauche_importer dossier.id %}">Importer</a> |
| 34 | {% endif %} |
| 35 | <div class="visualClear"></div> |
| 36 | |
| 37 | <h2 class="section">SECTION 1 - POSTE</h2> |
| 38 | {% with dossier.poste as poste %} |
| 39 | {% include 'dae/poste_resume.html' %} |
| 40 | {% endwith %} |
| 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">{% if dossier.mobilite_interne %}oui{% else %}non{% endif %} |
| 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>Employé</th> |
| 62 | <td colspan="5">{{ dossier.employe }} ({{ dossier.employe.genre }})</td> |
| 63 | </tr> |
| 64 | </tbody> |
| 65 | </table> |
| 66 | |
| 67 | </fieldset> |
| 68 | |
| 69 | <fieldset> |
| 70 | <h2>Accès et ouvertures des comptes</h2> |
| 71 | <table> |
| 72 | <tbody> |
| 73 | <tr> |
| 74 | <th>Compte comptabilité<th> |
| 75 | <td>{% if dossier.compte_compta %}oui{% else %}non{% endif %}</td> |
| 76 | <th>Compte courriel</th> |
| 77 | <td>{% if dossier.compte_courriel %}oui{% else %}non{% endif %}</td> |
| 78 | </tr> |
| 79 | </tbody> |
| 80 | </table> |
| 81 | </fieldset> |
| 82 | |
| 83 | <fieldset> |
| 84 | <h2>Pièces jointes</h2> |
| 85 | <ul> |
| 86 | {% for pj in dossier.dae_dossierpieces.all %} |
| 87 | <li><a href="{% url dossier_piece pj.id pj.fichier.name|basename %}">{{ pj.nom }}</a></li> |
| 88 | {% endfor %} |
| 89 | </ul> |
| 90 | </fieldset> |
| 91 | |
| 92 | <fieldset> |
| 93 | <h2>Comparaison salariale</h2> |
| 94 | <span class="info">dans la région pour les employés occupant un poste similaire</span> |
| 95 | <table> |
| 96 | <tbody> |
| 97 | <tr> |
| 98 | <th>Classement</th> |
| 99 | <th>Statut</th> |
| 100 | <th>Implantation</th> |
| 101 | <th>Employé</th> |
| 102 | <th>Poste</th> |
| 103 | </tr> |
| 104 | {% for dc in comparaisons %} |
| 105 | <tr class="gris-bkg"> |
| 106 | <td>{{ dc.classement|default:"" }}</td> |
| 107 | <td>{{ dc.statut|default:"" }}</td> |
| 108 | <td>{{ dc.implantation }}</td> |
| 109 | <td>{{ dc.personne }}</td> |
| 110 | <td>{{ dc.poste }}</td> |
| 111 | </tr> |
| 112 | {% if dc.dossier_comparaison_remunerations.count > 0 %} |
| 113 | <tr> |
| 114 | <td colspan="1"> |
| 115 | Rémunération |
| 116 | </td> |
| 117 | <td colspan="4"> |
| 118 | {% dossier_cmp_remun_form dc %} |
| 119 | </td> |
| 120 | </tr> |
| 121 | {% endif %} |
| 122 | {% endfor %} |
| 123 | |
| 124 | |
| 125 | </tbody> |
| 126 | </table> |
| 127 | </fieldset> |
| 128 | |
| 129 | |
| 130 | <div id="form-dossier"> |
| 131 | {% comment %}Wrapper du formulaire de dossier{% endcomment %} |
| 132 | {% include "dae/embauche-dossier-consulter.html" %} |
| 133 | </div> |
| 134 | |
| 135 | <h2 class="section">SECTION 3 - COÛT GLOBAL</h2> |
| 136 | |
| 137 | <fieldset> |
| 138 | <h2>Proposition de classement et rémunération</h2> |
| 139 | <table> |
| 140 | <tbody> |
| 141 | <tr> |
| 142 | <th>Classement proposé</th> |
| 143 | <th colspan="6">Salaire proposé</span></th> |
| 144 | </tr> |
| 145 | <tr> |
| 146 | <td>{{ dossier.classement }}</td> |
| 147 | <td colspan="2">{{ dossier.salaire|floatformat:0 }} {{ dossier.devise.code }}</td> |
| 148 | <td colspan="4" id="salaire-propose-euros" class="montant">{{ dossier.get_salaire_euros|floatformat:0 }} €</td> |
| 149 | </tr> |
| 150 | </tbody> |
| 151 | </table> |
| 152 | |
| 153 | {% remun_form dossier %} |
| 154 | {% comment %} |
| 155 | <!-- <table cellspacing="0" id="global-cost"> --> |
| 156 | <!-- {% include 'dae/embauche-remun-consulter.html' %} --> |
| 157 | <!-- </table> --> |
| 158 | {% endcomment %} |
| 159 | </fieldset> |
| 160 | |
| 161 | <h2 class="section">SECTION 4 - JUSTIFICATION DE LA DEMANDE (OBLIGATOIRE)</h2> |
| 162 | <h3>A - Justification du poste</h3> |
| 163 | <p>{{ poste.justification }}</p> |
| 164 | |
| 165 | <h3>B - Justification de l'employé</h3> |
| 166 | <table class="justifications"> |
| 167 | <tr> |
| 168 | <th>Nouvel employé</th> |
| 169 | <th>Renouvellement, prolongation, reclassement, mobilité interne</th> |
| 170 | </tr> |
| 171 | <tr> |
| 172 | <td> |
| 173 | <h4>{{ dossier.justif_nouveau_statut_label }}</h4> |
| 174 | <p>{{ dossier.justif_nouveau_statut|default:"∅" }} |
| 175 | <h4>{{ dossier.justif_nouveau_tmp_remplacement_label }}</h4> |
| 176 | <p>{{ dossier.justif_nouveau_tmp_remplacement|default:"∅" }}</p> |
| 177 | <h4>{{ dossier.justif_nouveau_salaire_label }}</h4> |
| 178 | <p>{{ dossier.justif_nouveau_salaire|default:"∅" }}</p> |
| 179 | <h4>{{ dossier.justif_nouveau_commentaire_label }}</h4> |
| 180 | <p>{{ dossier.justif_nouveau_commentaire|default:"∅" }}</p> |
| 181 | </td> |
| 182 | <td> |
| 183 | <h4>{{ dossier.justif_rempl_type_contrat_label }}</h4> |
| 184 | <p>{{ dossier.justif_rempl_type_contrat|default:"∅"}}</p> |
| 185 | <h4>{{ dossier.justif_rempl_statut_employe_label }}</h4> |
| 186 | <p>{{ dossier.justif_rempl_statut_employe|default:"∅"}}</p> |
| 187 | <h4>{{ dossier.justif_rempl_evaluation_label }}</h4> |
| 188 | <p>{{ dossier.justif_rempl_evaluation|default:"∅"}}</p> |
| 189 | <h4>{{ dossier.justif_rempl_salaire_label }}</h4> |
| 190 | <p>{{ dossier.justif_rempl_salaire|default:"∅" }}</p> |
| 191 | <h4>{{ dossier.justif_rempl_commentaire_label }}</h4> |
| 192 | <p>{{ dossier.justif_rempl_commentaire|default:"∅" }}</p> |
| 193 | </td> |
| 194 | </tr> |
| 195 | </table> |
| 196 | |
| 197 | <h2 class="section">PIÈCES JOINTES</h2> |
| 198 | |
| 199 | {% if dossier.valide %} |
| 200 | <a class="droite bouton-action" href="{% url embauche_ajouter_contrat dossier_id=dossier.id %}" |
| 201 | >Ajouter un contrat</a> |
| 202 | <h3>Contrats</h3> |
| 203 | |
| 204 | <table> |
| 205 | <thead> |
| 206 | <tr> |
| 207 | <th>Type</th> |
| 208 | <th>Fichier</th> |
| 209 | <th></th> |
| 210 | </tr> |
| 211 | </thead> |
| 212 | <tbody> |
| 213 | {% for contrat in dossier.dae_contrats.all %} |
| 214 | <tr> |
| 215 | <td>{{ contrat.type_contrat }}</td> |
| 216 | <td><a href="{% url contrat contrat.id contrat.fichier.name|basename %}" |
| 217 | >{{ contrat.fichier.name|basename }}</a></td> |
| 218 | <td><a href="{% url contrat_supprimer contrat.id %}">Supprimer</a></td> |
| 219 | </tr> |
| 220 | {% empty %} |
| 221 | <tr> |
| 222 | <td colspan="0">Aucun contrat pour l'instant</td> |
| 223 | </tr> |
| 224 | {% endfor %} |
| 225 | </tbody> |
| 226 | </table> |
| 227 | {% endif %} |
| 228 | |
| 229 | <h3>DAE numérisée</h3> |
| 230 | <table> |
| 231 | <thead> |
| 232 | <tr> |
| 233 | <th>Fichier</th> |
| 234 | {% ifhasperm 'modifier_dae_numerisee' dossier %} |
| 235 | <th></th> |
| 236 | {% endifhasperm %} |
| 237 | </tr> |
| 238 | </thead> |
| 239 | <tbody> |
| 240 | {% if dossier.dae_numerisee %} |
| 241 | <td><a href="{% url dae_numerisee dossier.id %}">Télécharger la DAE numérisée</a></td> |
| 242 | {% ifhasperm 'modifier_dae_numerisee' dossier %} |
| 243 | <td> |
| 244 | <a href="{% url dae_numerisee_supprimer dossier.id %}">Supprimer</a> |
| 245 | </td> |
| 246 | {% endifhasperm %} |
| 247 | {% else %} |
| 248 | <td>Aucune DAE numérisée pour l'instant</td> |
| 249 | {% ifhasperm 'modifier_dae_numerisee' dossier %} |
| 250 | <td> |
| 251 | <a href="{% url dae_numerisee_modifier dossier.id %}">Joindre une DAE numérisée</a> |
| 252 | </td> |
| 253 | {% endifhasperm %} |
| 254 | {% endif %} |
| 255 | </tbody> |
| 256 | </table> |
| 257 | |
| 258 | <h2 class="section">VALIDATIONS</h2> |
| 259 | |
| 260 | <table> |
| 261 | <tr> |
| 262 | <th>Action</th> |
| 263 | <th>Commentaire</th> |
| 264 | </tr> |
| 265 | {% for commentaire in dossier.historique_desc %} |
| 266 | {% include "dae/ligne_validation.html" %} |
| 267 | {% endfor %} |
| 268 | </table> |
| 269 | |
| 270 | <form action="" method="post"> |
| 271 | <h2>Votre validation (ou commentaire)</h2> |
| 272 | <p>Ce dossier est actuellement à l'état <span class="note">{{ dossier.get_etat_display }}</span>.</p> |
| 273 | |
| 274 | <table> |
| 275 | {% if validationForm.get_etats_disponibles %}{{ validationForm.commentaire }}{% endif %} |
| 276 | </table> |
| 277 | {{ validationForm.get_input_etats_as_buttons|safe }} |
| 278 | </form> |
| 279 | |
| 280 | <div class="print-only"> |
| 281 | <h2>Signatures</h2> |
| 282 | <p class="signature"> ____________________________________________________________</p> |
| 283 | <p class="signature"> ____________________________________________________________</p> |
| 284 | <p class="signature"> ____________________________________________________________</p> |
| 285 | </div> |
| 286 | |
| 287 | {% endblock %} |