<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="import_note" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header" style="background: #21618C;color:#fff;">
        <h5 class="modal-title" id="exampleModalLabel">AJOUTER DES ETUDIANTS</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 %}

            <div class="form-group">
                <label>CHARGEZ LE FICHIER</label>
                <input type="file" class="form-control" name="file_name" />
            </div>
            <div class="form-group">
                <label>ETABLISSEMENT</label>
                <select class="form-control" name="ufr">
                    {% for uf in ufrs %}
                        <option value="{{uf.id}}">{{uf.libelle}}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="form-group">
                <label>CLASSE</label>
                <select class="form-control" name="niveau">
                    {% for niv in niveaux %}
                        <option value="{{niv.id}}">{{niv.libelle}}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="form-group">
                <label>ANNEE</label>
                <select class="form-control" name="annee">
                    {% for an in annees %}
                        <option value="{{an.id}}">{{an.libelle}}</option>
                    {% endfor %}
                </select>
            </div>

            <div class="modal-footer">
            <button type="submit" class="btn btn-primary">Importer</button>
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
          </div>

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