{% extends 'base.html' %}
-{% load adminmedia dae %}
+{% load adminmedia dae permissions %}
{% block title %}RH - DAE - Embauche{% endblock %}
{% block titre %}Ressources humaines{% endblock %}
</tr>
</table>
-{% if dossier.valide %}
-<h2 class="section">CONTRATS</h2>
+<h2 class="section">PIÈCES JOINTES</h2>
+{% if dossier.valide %}
<a class="droite bouton-action" href="{% url embauche_ajouter_contrat dossier_id=dossier.id %}"
>Ajouter un contrat</a>
+<h3>Contrats</h3>
<table>
<thead>
</table>
{% endif %}
+<h3>DAE numérisée</h3>
+<p>
+{% if dossier.dae_numerisee %}
+<a class="bouton-action" href="{% url dae_numerisee dossier.id %}">Télécharger la DAE numérisée</a>
+{% ifhasperm 'modifier_dae_numerisee' dossier %}
+<a class="bouton-action" href="{% url dae_numerisee_supprimer dossier.id %}">Supprimer la DAE numérisée</a>
+{% endifhasperm %}
+{% else %}
+Aucune DAE numérisée pour l'instant
+{% ifhasperm 'modifier_dae_numerisee' dossier %}
+<a class="bouton-action"
+ href="{% url dae_numerisee_modifier dossier.id %}">Joindre une DAE numérisée</a>
+{% endifhasperm %}
+{% endif %}
+</p>
+
<h2 class="section">VALIDATIONS</h2>
<table>