{% extends 'base.html' %}
-{% load adminmedia %}
+{% load adminmedia dae %}
{% block title %}RH - DAE - Embauche{% endblock %}
{% block titre %}Ressources humaines{% endblock %}
-{% block sous_titre %}Demande d'autorisation d'embauche{% endblock %}
+{% block sous_titre %}Demande d'autorisation d'engagement{% endblock %}
{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/dae.css" />
{% endblock %}
{% block main %}
-<h1 class="gauche">Demandes d'autorisation d'engagement de personnel</h1>
-<a class="droite bouton-modifier" href="{% url embauche dossier.poste.key dossier.id %}">Modifier</a>
+<h1 class="gauche">Demande d'autorisation d'engagement de personnel</h1>
+<a class="droite bouton-action" target="_blank" href="?mode=vpdf">Format impression</a>
+{% if dossier|est_editable %}<a class="droite bouton-action" href="{% url embauche dossier.poste.key dossier.id %}">Modifier</a>{% endif %}
<div class="visualClear"></div>
<h2 class="section">SECTION 1 - POSTE</h2>
<table>
<tbody>
<tr>
+ <th>Implantation</th>
<th>Employé</th>
<th>Poste</th>
- <th>Date fin contrat</th>
<th>Salaire</th>
<th>Salaire EUR</th>
- <th>Implantation</th>
- <th>Famille Emploi</th>
</tr>
- {% for d in comparaison_dossiers %}
+ {% for dc in dossier.comparaisons.all %}
<tr>
- <td>{{ d.employe }}</td>
- <td>{{ d.poste1.type_poste.nom }} {{ d.complement1 }}</td>
- <td>{{ d.contrat_date_fin|default:"en cours" }}</td>
- <td>{{ d.get_salaire_display }}</td>
- <td>{{ d.get_salaire_euro_display }}</td>
- <td>{{ d.poste1.implantation }}</td>
- <td>{{ d.poste1.type_poste.famille_emploi.nom }}</td>
+ <td>{{ dc.implantation }}</td>
+ <td>{{ dc.personne }}</td>
+ <td>{{ dc.poste }}</td>
+ <td>{{ dc.montant }} {{ dc.devise }}</td>
+ <td>{{ dc.montant_euros }} EUR</td>
</tr>
{% endfor %}
</tbody>
<p>{{ poste.justification }}</p>
<h3>B - Justification de l'employé</h3>
- <p class="info">Les questions posées pour la justification apparaîtront après avoir enregistré le dossier.</p>
<table>
<tr>
- <th>NOUVEL EMPLOYÉ</th>
- <th>RENOUVELLEMENT, PROLONGATION, RECLASSEMENT, MOBILITÉ INTERNE</th>
+ <th>Nouvel employé</th>
+ <th>Renouvellement, prolongation, reclassement, mobilité interne</th>
</tr>
<tr>
- <td>
- {% for j in dossier.justificationnouvelemploye_set.all %}
- <h4>{{ j.question }}</h4>
- <p>{{ j.reponse }}</p>
- {% endfor %}
+ <td>
+ <h4>{{ dossier.justif_nouveau_statut_label }}</h4>
+ {{ dossier.justif_nouveau_statut|default:"∅" }}
+ <h4>{{ dossier.justif_nouveau_tmp_remplacement_label }}</h4>
+ {{ dossier.justif_nouveau_tmp_remplacement|default:"∅" }}
+ <h4>{{ dossier.justif_nouveau_salaire_label }}</h4>
+ {{ dossier.justif_nouveau_salaire|default:"∅" }}
+ <h4>{{ dossier.justif_nouveau_commentaire_label }}</h4>
+ {{ dossier.justif_nouveau_commentaire|default:"∅" }}
</td>
<td>
- {% for j in dossier.justificationautreemploye_set.all %}
- <h4>{{ j.question }}</h4>
- <p>{{ j.reponse }}</p>
- {% endfor %}
+ <h4>{{ dossier.justif_rempl_type_contrat_label }}</h4>
+ {{ dossier.justif_rempl_type_contrat|default:"∅"}}
+ <h4>{{ dossier.justif_rempl_statut_employe_label }}</h4>
+ {{ dossier.justif_rempl_statut_employe|default:"∅"}}
+ <h4>{{ dossier.justif_rempl_evaluation_label }}</h4>
+ {{ dossier.justif_rempl_evaluation|default:"∅"}}
+ <h4>{{ dossier.justif_rempl_salaire_label }}</h4>
+ {{ dossier.justif_rempl_salaire|default:"∅" }}
+ <h4>{{ dossier.justif_rempl_commentaire_label }}</h4>
+ {{ dossier.justif_rempl_commentaire|default:"∅" }}
</td>
</tr>
</table>
<fieldset>
- <h2>Validation</h2>
+ <h2>Validations</h2>
- <ul>
+ <table>
+ <tr>
+ <th>Action</th>
+ <th>Destinataire de l'action</th>
+ <th>Commentaire</th>
+ </tr>
{% for commentaire in dossier.historique_desc %}
- <li>{{ commentaire }}</li>
+ {% include "dae/ligne_validation.html" %}
{% endfor %}
- </ul>
+ </table>
+
+ <h2>Votre validation (ou commentaire)</h2>
+ <p>Ce dossier est actuellement à l'état <span class="note">{{ dossier.get_etat_display }}</span>.</p>
<form action="" method="post">
<table>
- {{ validationForm }}
+ {{ validationForm.commentaire }}
</table>
- <input type="submit" value="valider" />
+ {{ validationForm.get_input_etats_as_buttons|safe }}
</form>
</fieldset>