{% 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 %}
- <script src="{{ MEDIA_URL }}js/jquery-1.5.1.min.js"
- type="text/javascript"></script>
- <script src="{{ MEDIA_URL }}js/jquery-ui-1.8.11.custom.min.js"
- type="text/javascript"></script>
-
- <script src="{{ MEDIA_URL }}js/dae.js" /></script>
- <script src="{{ MEDIA_URL }}js/dae-poste.js" /></script>
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/dae.css" />
-
{% endblock %}
{% block main %}
-<h1>Demande d'autorisation de création de poste</h1>
-
- <fieldset>
- <h2>{{ poste.nom }} ({{ poste.implantation.nom }})</h2>
- <table>
- <tbody>
- <tr>
- <th>Implantation</th>
- <td>{{ poste.implantation }}</td>
- </tr>
- <tr>
- <th>Type poste</th>
- <td>{{ poste.type_poste }}</td>
- </tr>
- <tr>
- <th>Service</th>
- <td>{{ poste.service }}</td>
- </tr>
- <tr>
- <th>Responsable</th>
- <td>{{ poste.responsable }}</td>
- </tr>
- </tbody>
- </table>
- </fieldset>
-
- <fieldset>
- <h2>Recrutement</h2>
- <table>
- <tbody>
- <tr>
- <th>Statut</th>
- <th>local</th><td>{% if poste.local %}oui{% else %}non{% endif %}</td>
- <th>expatrié</th><td>{% if poste.expatrie %}oui{% else %}non{% endif %}</td>
- <th>mise à disposition</th><td>{% if poste.mise_a_disposition %}oui{% else %}non{% endif %}</td>
- </tr>
- <tr>
- <th>Appel</th>
- <td colspan="6">{{ poste.appel }}</td>
- </tr>
- </tbody>
- </table>
- </fieldset>
-
- <fieldset>
- <h2>Durée prévue du poste </h2>
- <span class="info">Indépendamment du titulaire du poste</span>
- <table>
- <tbody>
- <tr>
- <th>Durée {% if not poste.date_fin %}indéterminée{% endif %}</th>
- {% if poste.date_fin %}
- <td>du {{ poste.date_debut }}</td>
- <td>au {{ poste.date_fin }}</td>
- {% else %}
- <td>à partir du {{ poste.date_debut }}</td>
- {% endif %}
- </tr>
- <tr>
- <th>Régime travail</th>
- <td colspan="4">{{ poste.regime_travail }}%</td>
- </tr>
- <tr>
- <th>Nombre d'heure par semaine</th>
- <td>{{ poste.regime_travail_nb_heure_semaine }}H</td>
- </tr>
-
- </tbody>
- </table>
- </fieldset>
-
- <fieldset>
- <h2>Classement du poste</h2>
- <table id="classement">
- <tbody>
- <tr>
- <th></th>
- <th>Échelon AUF</th>
- <th>Salaire de base</th>
- <th>Indemnité, responsabilité (le cas échéant)</th>
- <th>Autres</th>
- <th>TOTAL</th>
- <th>Taux > €</th>
- <th>Conversion EUR</th>
- </tr>
- <tr>
- <th>Minimum</th>
- <td>{{ poste.classement_min }}</td>
- <td class="montant">{{ poste.salaire_min|floatformat }} {{ poste.devise_min.code }}</td>
- <td class="montant">{{ poste.indemn_min|floatformat }} {{ poste.devise_min.code }}</td>
- <td class="montant">{{ poste.autre_min|floatformat }} {{ poste.devise_min.code }}</td>
- <td class="montant">{{ poste.get_couts_minimum|floatformat }} {{ poste.devise_min.code }}</td>
- <td>{{ poste.get_taux_minimum }}</td>
- <td class="montant">{{ poste.get_couts_minimum_euros|floatformat }} EUR</td>
- </tr>
- <tr>
- <th>Maximum</th>
- <td>{{ poste.classement_max }}</td>
- <td class="montant">{{ poste.salaire_max|floatformat }} {{ poste.devise_max.code }}</td>
- <td class="montant">{{ poste.indemn_max|floatformat }} {{ poste.devise_max.code }}</td>
- <td class="montant">{{ poste.autre_max|floatformat }} {{ poste.devise_max.code }}</td>
- <td class="montant">{{ poste.get_couts_maximum|floatformat }} {{ poste.devise_max.code }}</td>
- <td>{{ poste.get_taux_maximum }}</td>
- <td class="montant">{{ poste.get_couts_maximum_euros|floatformat }} EUR</td>
- </tr>
- </tbody>
- </table>
-
- <p class="info">N.B Conversion en EUROS au taux de change budgétaire</p>
- </fieldset>
-
- {% comment %}{% if new %}{% endcomment %}
- <fieldset>
- <h2>Éléments de comparaison</h2>
- <span class="info">Compléter uniquement lors de la création d'un poste</span>
- <table>
- <tbody>
- <tr>
- <th>Devise</th>
- <td>{{ poste.devise_comparaison }}</td>
- </tr>
- </tbody>
- </table>
- <table id="elements-comparaison">
- <tbody>
- <tr>
- <th></th>
- <th>Université</th>
- <th>Fonction publique</th>
- <th>Entreprise locale</th>
- <th>ONG</th>
- <th>Autre</th>
- </tr>
- <tr>
- <th>Minimum</th>
- <td>{{ poste.comp_universite_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_universite_min_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_fonctionpub_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_fonctionpub_min_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_locale_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_locale_min_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_ong_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_ong_min_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_autre_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_autre_min_euros|floatformat }} EUR)
- </td>
- </tr>
- <tr>
- <th>Maximum</th>
- <td>{{ poste.comp_universite_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_universite_max_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_fonctionpub_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_fonctionpub_max_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_locale_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_locale_max_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_ong_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_ong_min_euros|floatformat }} EUR)
- </td>
- <td>{{ poste.comp_autre_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_autre_max_euros|floatformat }} EUR)
- </td>
- </tr>
- </tbody>
- </table>
- </fieldset>
-
- <fieldset>
- <h2>Pièces jointes</h2>
- <ul>
- {% for pj in poste.postepiece_set.all %}
- <li><a href="{{ pj.fichier.url }}">{{ pj.nom }}</a></li>
- {% endfor %}
- </ul>
- </fieldset>
- <fieldset>
- <h2>Financement</h2>
- {% for f in poste.financements.all %}
- <li>{{ f }}</li>
- {% endfor %}
- </fieldset>
+<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 %}
+<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>
- <fieldset>
- <h2>Justification de la demande</h2>
- <div>{{ poste.justification|linebreaks }}</div>
- </fieldset>
{% endblock %}