<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="addGroupEns" 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">AJOUTER UN GROUPE</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 %}
            <div class="form-group">
                <label>Enseignant</label>
                <select class="form-control" name="enseignant">
                    {% for ens in enseignants %}
                    <option value="{{ens.id}}"> {{ens}}</option>
                    {% endfor %}
                </select>
            </div>

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

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