+{% load dae %}
<fieldset>
<h2><label>Type d'intervention : </label>{{ poste.get_type_intervention_display }}</h2>
</fieldset>
<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>
<th>Charges patronales</th>
<th>Autres</th>
<th>TOTAL</th>
+ <th>TOTAL sans charges patronales</th>
<th>Taux > €</th>
- <th>EUR</th>
+ <th>TOTAL (EUR)</th>
+ <th>TOTAL (EUR) sans charges patronales</th>
</tr>
<tr>
<th>Min.</th>
<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_couts_minimum_euros|floatformat:0 }} €</td>
+ <td class="montant">{{ poste.show_salaire_minimum_euros|floatformat:0 }} €</td>
</tr>
<tr>
<th>Max.</th>
<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_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>
</tbody>
</table>
-{% if poste.est_comparable %}
<table id="elements-comparaison">
<tbody>
<tr>
</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>