<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="doc{{doc.id}}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="background: #3FDB7A;color:#fff;">
        <h5 class="modal-title" id="exampleModalLabel">VALIDER LE DOCUMENT</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 method="post" action="#">
            {% csrf_token %}
            <p style="font-size:20px;text-align:center;"> Voulez-vous valider ce document?
            </p>
            <input type="text" name="doc" value="{{doc.id}}" hidden />

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

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