<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="creval" 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">Créer une évaluation </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>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 Universitaire</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="addevalBtn" class="btn btn-success"><i class="fa fa-dowload"></i>Enregistrer</button>
          </div>

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