{% 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" />
+ <script src="{{ STATIC_URL }}js/jquery-1.5.1.min.js"
+ type="text/javascript"></script>
+ <script type="text/javascript">
+ var DEVISES = {};
+ {% for d in devises %}
+ DEVISES['{{d.devise_code}}'] = {{d.taux_euro|stringformat:".10f"}};
+ {% endfor %}
+ </script>
+ <script src="{{ STATIC_URL }}js/dae.js" type="text/javascript"></script>
+ <script src="{{ STATIC_URL }}js/remun.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/dae.css" />
+ <link rel="stylesheet" type="text/css" media="print" href="{{ STATIC_URL }}css/print.css" />
{% endblock %}
{% block main %}
<h1 class="gauche">Demande d'autorisation de création de poste</h1>
-<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 %}
+<a class="droite bouton-action" href="#" onclick="window.print(); return false;">Impression</a>
+{% if poste|est_editable:request.user %}
+<a class="droite bouton-action" href="{% url poste poste.key %}">Modifier</a>
+{% endif %}
+{% if not poste.id_rh and importer %}
+<a class="droite bouton-action" href="{% url poste_importer poste.id %}">Importer</a>
+{% endif %}
<div class="visualClear"></div>
{% include "dae/poste_resume.html" %}
{% endfor %}
</table>
+{% if not poste.dae_dossiers.all %}
+<form action="" method="post">
<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>
+{% endif %}
+
</fieldset>
+<div class="print-only">
+ <h2>Signatures</h2>
+ <p class="signature"> ____________________________________________________________</p>
+ <p class="signature"> ____________________________________________________________</p>
+ <p class="signature"> ____________________________________________________________</p>
+</div>
+
{% endblock %}