{% comment %}{% if new %}{% endcomment %}
<fieldset>
- <h2>Éléments de comparaison</h2>
+ <h2>Éléments de comparaison (externe)</h2>
<span class="info">Compléter uniquement lors de la création d'un poste</span>
<table>
<tbody>
</tbody>
</table>
</fieldset>
+
+ <fieldset>
+ <h2>Éléments de comparaison (interne)</h2>
+ {% for f in postesComparaisonsForm.management_form %}
+ {{ f }}
+ {% endfor %}
+
+ {% for f in postesComparaisonsForm.forms %}
+ <table>
+ {% for field in f %}
+ {% if field.is_hidden %}{{ field }}{% endif %}
+ {% endfor %}
+
+ <tr><td colspan=2>Rechercher un poste : {{ f.recherche }}</td></tr>
+ <tr><th>{{ f.implantation.label }}</th><td>{{ f.implantation.errors }} {{ f.implantation }}</td></tr>
+ <tr><th>{{ f.nom.label }}</th><td>{{ f.nom.errors }} {{ f.nom }}</td></tr>
+ <tr><th>{{ f.montant.label }} ({{f.devise.label }})</th><td>{{ f.montant.errors }} {{ f.montant }} {{ f.devise.errors }} {{f.devise }} ({{ f.montant_euros.errors }} {{ f.montant_euros }} EUR)</td></tr>
+ </table>
+ {% endfor %}
+ </fieldset>
{% comment %}{% endif %}{% endcomment %}
<fieldset>