e3d8febc83c69e673b588a584e0070eee5993930
[auf_rh_dae.git] / project / dae / templates / dae / poste_consulter.html
1 {% extends 'base.html' %}
2 {% load adminmedia dae %}
3
4 {% block title %}RH - DAE - Poste{% endblock %}
5 {% block titre %}Ressources humaines{% endblock %}
6 {% block sous_titre %}Demande d'autorisation d'engagement{% endblock %}
7
8 {% block extrahead %}
9 <script src="{{ STATIC_URL }}js/jquery-1.5.1.min.js"
10 type="text/javascript"></script>
11 <script type="text/javascript">
12 var DEVISES = {};
13 {% for d in devises %}
14 DEVISES['{{d.devise_code}}'] = {{d.taux_euro|stringformat:".10f"}};
15 {% endfor %}
16 </script>
17 <script src="{{ STATIC_URL }}js/dae.js" type="text/javascript"></script>
18 <script src="{{ STATIC_URL }}js/remun.js" type="text/javascript"></script>
19 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/dae.css" />
20 <link rel="stylesheet" type="text/css" media="print" href="{{ STATIC_URL }}css/print.css" />
21 {% endblock %}
22
23 {% block main %}
24
25 <h1 class="gauche">Demande d'autorisation de création de poste</h1>
26 <a class="droite bouton-action" href="#" onclick="window.print(); return false;">Impression</a>
27 {% if poste|est_editable:request.user %}
28 <a class="droite bouton-action" href="{% url poste poste.key %}">Modifier</a>
29 {% endif %}
30 {% if not poste.id_rh and importer %}
31 <a class="droite bouton-action" href="{% url poste_importer poste.id %}">Importer</a>
32 {% endif %}
33 <div class="visualClear"></div>
34
35 {% include "dae/poste_resume.html" %}
36
37 <fieldset>
38 <h2>Validations</h2>
39
40 <table>
41 <tr>
42 <th>Action</th>
43 <th>Commentaire</th>
44 </tr>
45 {% for commentaire in poste.historique_desc %}
46 {% include "dae/ligne_validation.html" %}
47 {% endfor %}
48 </table>
49
50 {% if not poste.dae_dossiers.all %}
51 <form action="" method="post">
52 <h2>Votre validation</h2>
53 <p>Le poste est actuellement à l'état : <span class="note">{{ poste.get_etat_display }}</span>.</p>
54
55 <table>
56 {% if validationForm.get_etats_disponibles %}{{ validationForm.commentaire }}{% endif %}
57 </table>
58 {{ validationForm.get_input_etats_as_buttons|safe }}
59 </form>
60 {% endif %}
61
62 </fieldset>
63
64
65 <div class="print-only">
66 <h2>Signatures</h2>
67 <p class="signature"> ____________________________________________________________</p>
68 <p class="signature"> ____________________________________________________________</p>
69 <p class="signature"> ____________________________________________________________</p>
70 </div>
71
72 {% endblock %}