<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="importBtn" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="color:#fff;background: #21618C">
        <h5 class="modal-title">IMPORTER</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="#" enctype="multipart/form-data">
            {% csrf_token %}
            <p style="color:red; font-style:italic;text-align:center;">(*) Importer un fichier .cvs contenant à la première colonne, l'ID Permanent de l'étudiant</p>
            <div class="form-group">
                <label>Charger le fichier</label>
                {% render_field form3.file_name class="form-control" %}
            </div>

            <br/>
            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
            <button type="submit" name="importer" class="btn btn-success">Importer</button>
          </div>

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