<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="rec{{reclamation.id}}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="background-color:red;color:#fff;">
        <h5 class="modal-title" id="exampleModalLabel">Voulez-vous archiver cette réclamation?</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
          <div>
              <h4>Date: {{reclamation.created|date:'d-m-Y à H:i'}}</h4>
              <h4>Motif: {{reclamation.motif}}</h4>
              <h4>Etudiant: {{reclamation.etudiant}}</h4>

          </div>
        <form method="post" action="{% url 'EspaceEnseignant:dr_reclamation_list' %}">
            {% csrf_token %}

            <div class="modal-footer">
                <input type="text" name="idr" value="{{reclamation.id}}" hidden>
            <button class="btn btn-secondary" data-dismiss="modal">Non</button>
            <button class="btn btn-danger" type="submit">Oui</button>
          </div>

        </form>
      </div>
    </div>
  </div>
</div>