{% load static %}
{% load widget_tweaks %}

<!-- Modal -->
<div class="modal fade" id="deletegroupens{{item.id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header bg-danger">
        <h4 class="modal-title" id="exampleModalLabel">Supprimer</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <form method="post" action="#">
          {% csrf_token %}
          <div class="modal-body">
              <h3 style="text-align:center;">Voulez-vous supprimer ce élément?</h3>
              <input type="text" name="objID" value="{{item.id}}" hidden />
          </div>
          <div class="modal-footer">
              <button type="submit" name="delGroupEnsBtn" class='btn btn-danger btn-round mt-2 btn-sm'><i class="fas fa-check"></i>&nbsp; Oui</button>
              <button class="btn btn-secondary btn-round mt-2 btn-border btn-sm" data-dismiss="modal"><i class="fas fa-times"></i>&nbsp; Non</button>
          </div>
      </form>
    </div>
  </div>
</div>