{% endif %}
</table>
+
<h3>Rémunérations</h3>
<table>
<tr>
{% endfor %}
</table>
-{% if piecse|length > 0 %}
-<h3>Pièces</h3>
+{% include "rh/include/pieces.html" %}
+
+<h3>Contrats</h3>
<table>
- <tr>
- <th>Nom</th>
- <th>Lien</th>
- </tr>
- {% for p in pieces %}
- <tr>
- <th>{{ p }}</th>
- <th><a href="{{ media }}{{ p.fichier }}">Télécharger</a></th>
- </tr>
- {% endfor %}
+ <tr>
+ <th>Type</th>
+ <th>Date début</th>
+ <th>Date fin</th>
+ <th>Fichier</th>
+ </tr>
+ {% for c in contrats %}
+ <tr>
+ <td>{{ c.type_contrat }}</td>
+ <td>{{ c.date_debut }}</td>
+ <td>{{ c.date_fin }}</td>
+ <td>{% if c.fichier %}
+ <a href="{{ media }}{{ c.fichier }}">Télécharger</a>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
</table>
-{% endif %}