<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="importnote" 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">Importer des notes </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>Choisissez un ficier</label>
                <input class="form-control" type="file" name="file_name" required/>
            </div>
            <div class="form-group">
                <label>Nommez l'évaluation</label>
                <input class="form-control" type="text" name="libelle" placeholder="Nommez cette évaluation" required/>
            </div>
           <div class="form-group">
                <label>Année <Académique></Académique></label>
                <select class="form-control" name="annee">
                    {% if session_ini.id == 1 %}
                    <option value="{{annee_univ.id}}">{{annee_univ}}</option>
                    {% else %}
                    <option value="{{annee.id}}">{{annee}}</option>
                    {% endif %}
                </select>
            </div>
            <div class="form-group">
                <label>Type d'évaluation</label>
                <select class="form-control" name="typeEvaluation">
                    {% for tpev in tpEv %}
                    <option value="{{tpev.id}}">{{tpev}}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="form-group">
                <label>Session</label>
                <select class="form-control" name="session">
                    {% for ses in sess %}
                    <option value="{{ses.id}}">{{ses}}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
            <button type="submit" name="importer" class="btn btn-primary">Importer</button>
          </div>

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