<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="confirm{{ue.id}}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="background: red;color:#fff;">
        <h5 class="modal-title" id="exampleModalLabel">
          <span>CONFIRMEZ-VOUS ?</span>
        </h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
          <form action="#" method="post">
               {% csrf_token %}
              <h4 style="text-align:center;">Voulez-vous activer cette ue ?</h4>
              <input type="text" name="libelle" value="{{ue.id}}" hidden />

              <div class="modal-footer">
                <button type="submit" name="deleteForm" class="btn btn-danger">Oui</button>
                <button class="btn btn-secondary" data-dismiss="modal">Non</button>
              </div>
          </form>
      </div>
    </div>
  </div>
</div>