<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="stop{{programme.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 arrêter ce Programme?</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>Niveau: {{programme.niveau}}</h4>
              <h4>Ecue: {{programme.ecue}}</h4>

          </div>
        <form method="post" action="#">
            {% csrf_token %}

            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Non</button>
            {% if group_check %}
            {% else %}
                <a class="btn btn-danger" href="{% if programme %}{% url 'EspaceEnseignant:stop' programme.id %}{% endif %}">Oui</a>
            {% endif %}
            </div>

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