+{% load dae %}
+<fieldset>
+ <h2><label>Type d'intervention : </label>{{ poste.get_type_intervention_display }}</h2>
+</fieldset>
+
<fieldset>
<h2>{{ poste.nom }} ({{ poste.implantation.nom }})</h2>
<table>
<td>{{ poste.implantation }}</td>
</tr>
<tr>
+ <th>Lieu</th>
+ <td>{{ poste.implantation.adresse_physique_ville }}, {{ poste.implantation.adresse_physique_pays }}</td>
+ </tr>
+ <tr>
<th>Type poste</th>
<td>{{ poste.type_poste }}</td>
</tr>
<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>
+ <td>Local : {% if poste.local %}oui{% else %}non{% endif %}</td>
+ <td>Expatrié : {% if poste.expatrie %}oui{% else %}non{% endif %}
+ <td>Mise à disposition : {% if poste.mise_a_disposition %}oui{% else %}non{% endif %}</td>
</tr>
<tr>
<th>Appel</th>
- <td colspan="6">{{ poste.appel }}</td>
+ <td colspan="3">{{ poste.appel }}</td>
</tr>
</tbody>
</table>
<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>
+ <td>du {{ poste.date_debut }} 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>
+ <td>{{ poste.regime_travail }}%</td>
</tr>
<tr>
<th>Nombre d'heure par semaine</th>
<th></th>
<th>Échelon AUF</th>
<th>Salaire de base</th>
- <th>Indemnité, responsabilité (le cas échéant)</th>
+ <th>Indem. d'expatriation</th>
+ <th>Indem. de fonction</th>
+ <th>Charges patronales</th>
<th>Autres</th>
<th>TOTAL</th>
+ <th>TOTAL sans charges patronales</th>
<th>Taux > €</th>
- <th>Conversion EUR</th>
+ <th>TOTAL (EUR)</th>
+ <th>TOTAL (EUR) sans charges patronales</th>
</tr>
<tr>
- <th>Minimum</th>
+ <th>Min.</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>
+ <td class="montant">{{ poste.salaire_min|floatformat:0 }} {{ poste.devise_min.code }}</td>
+ <td class="montant">{{ poste.indemn_expat_min|floatformat:0 }} {{ poste.devise_min.code }}</td>
+ <td class="montant">{{ poste.indemn_fct_min|floatformat:0 }} {{ poste.devise_min.code }}</td>
+ <td class="montant">{{ poste.charges_patronales_min|floatformat:0 }} {{ poste.devise_min.code }}</td>
+ <td class="montant">{{ poste.autre_min|floatformat:0 }} {{ poste.devise_min.code }}</td>
+ <td class="montant">{{ poste.get_couts_minimum|floatformat:0 }} {{ poste.devise_min.code }}</td>
+ <td class="montant">{{ poste.get_salaire_minimum|floatformat:0 }} {{ poste.devise_min.code }}</td>
+ <td>{{ poste.show_taux_minimum }}</td>
+ <td class="montant">{{ poste.show_couts_minimum_euros|floatformat:0 }} €</td>
+ <td class="montant">{{ poste.show_salaire_minimum_euros|floatformat:0 }} €</td>
</tr>
<tr>
- <th>Maximum</th>
+ <th>Max.</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>
+ <td class="montant">{{ poste.salaire_max|floatformat:0 }} {{ poste.devise_max.code }}</td>
+ <td class="montant">{{ poste.indemn_expat_max|floatformat:0 }} {{ poste.devise_max.code }}</td>
+ <td class="montant">{{ poste.indemn_fct_max|floatformat:0 }} {{ poste.devise_max.code }}</td>
+ <td class="montant">{{ poste.charges_patronales_max|floatformat:0 }} {{ poste.devise_max.code }}</td>
+ <td class="montant">{{ poste.autre_max|floatformat:0 }} {{ poste.devise_max.code }}</td>
+ <td class="montant">{{ poste.get_couts_maximum|floatformat:0 }} {{ poste.devise_max.code }}</td>
+ <td class="montant">{{ poste.get_salaire_maximum|floatformat:0 }} {{ poste.devise_max.code }}</td>
+ <td>{{ poste.show_taux_maximum }}</td>
+ <td class="montant">{{ poste.show_couts_maximum_euros|floatformat:0 }} €</td>
+ <td class="montant">{{ poste.show_salaire_maximum_euros|floatformat:0 }} €</td>
</tr>
</tbody>
</table>
{% 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>
+<h2>Éléments de comparaison (externe)</h2>
+{% if poste.est_comparable %}
<table>
<tbody>
<tr>
</tr>
<tr>
<th>Minimum</th>
- <td>{{ poste.comp_universite_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_universite_min_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_universite_min %}
+ {{ poste.comp_universite_min|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_universite_min_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_fonctionpub_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_fonctionpub_min_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_fonctionpub_min %}
+ {{ poste.comp_fonctionpub_min|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_fonctionpub_min_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_locale_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_locale_min_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_locale_min %}
+ {{ poste.comp_locale_min|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_locale_min_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_ong_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_ong_min_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_ong_min %}
+ {{ poste.comp_ong_min|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_ong_min_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_autre_min|floatformat }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_autre_min_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_autre_min %}
+ {{ poste.comp_autre_min|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_autre_min_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
</tr>
<tr>
<th>Maximum</th>
- <td>{{ poste.comp_universite_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_universite_max_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_universite_max %}
+ {{ poste.comp_universite_max|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_universite_max_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_fonctionpub_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_fonctionpub_max_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_fonctionpub_max %}
+ {{ poste.comp_fonctionpub_max|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_fonctionpub_max_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_locale_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_locale_max_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_locale_max %}
+ {{ poste.comp_locale_max|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_locale_max_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_ong_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_ong_min_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_ong_max %}
+ {{ poste.comp_ong_max|floatformat:0 }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_ong_min_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
- <td>{{ poste.comp_autre_max }} {{ poste.devise_comparaison.code }}
- ({{ poste.get_comp_autre_max_euros|floatformat }} EUR)
+ <td>
+ {% if poste.comp_autre_max %}
+ {{ poste.comp_autre_max }} {{ poste.devise_comparaison.code }}
+ ({{ poste.get_comp_autre_max_euros|floatformat:0 }} EUR)
+ {% endif %}
</td>
</tr>
</tbody>
</table>
+{% else %}
+ <p>Il n'y a pas de comparaisons disponibles</p>
+{% endif %}
+</fieldset>
+
+<fieldset>
+<h2>Éléments de comparaison (interne)</h2>
+{% if poste.comparaisons_internes.count > 0 %}
+<table>
+ <tbody>
+ <tr>
+ <th>Classement</th>
+ <th>Statut</th>
+ <th>Poste</th>
+ <th>Implantation</th>
+ <th>Montant</th>
+ <th>EUR</th>
+ </tr>
+ {% for poste_connexe in poste.comparaisons_internes.all %}
+ <tr>
+ <td>{{ poste_connexe.classement }}</td>
+ <td>{{ poste_connexe.statut }}</td>
+ <td>{{ poste_connexe.nom }}</td>
+ <td>{{ poste_connexe.implantation }}</td>
+ <td>{{ poste_connexe.montant|floatformat:0 }} {{ poste_connexe.devise.code }}</td>
+ <td>{{ poste_connexe.montant_euros|floatformat:0 }} €</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+{% else %}
+ <p>Il n'y a pas de comparaisons disponibles</p>
+{% endif %}
</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>
+ <li><a href="{% url poste_piece pj.id pj.fichier.name|basename %}">{{ pj.nom }}</a></li>
{% endfor %}
</ul>
</fieldset>