{% extends 'base.html' %}
-{% load adminmedia %}
+{% load adminmedia dae %}
{% block title %}RH - DAE - Poste{% 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">Demande d'autorisation de création de poste</h1>
-<a class="droite bouton-modifier" href="{% url poste poste.key %}">Modifier<a>
+<a class="droite bouton-action" target="_blank" href="?mode=vpdf">Format impression</a>
+{% if poste|est_editable:request.user %}<a class="droite bouton-action" href="{% url poste poste.key %}">Modifier</a>{% endif %}
<div class="visualClear"></div>
{% include "dae/poste_resume.html" %}
+
+<fieldset>
+<h2>Validations</h2>
+
+<table>
+<tr>
+ <th>Action</th>
+ <th>Commentaire</th>
+</tr>
+{% for commentaire in poste.historique_desc %}
+ {% include "dae/ligne_validation.html" %}
+{% endfor %}
+</table>
+
+<h2>Votre validation</h2>
+<p>Le poste est actuellement à l'état : <span class="note">{{ poste.get_etat_display }}</span>.</p>
+
+<form action="" method="post">
+<table>
+ {% if validationForm.get_etats_disponibles %}{{ validationForm.commentaire }}{% endif %}
+</table>
+{{ validationForm.get_input_etats_as_buttons|safe }}
+</form>
+</fieldset>
+
+
{% endblock %}