<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="addGroup" 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>Année</label>
                {% render_field form.annee class="form-control" %}
            </div>
            <div class="form-group">
                <label>Libellé</label>
                {% render_field form.libelle class="form-control" %}
            </div>
            <div class="form-group">
                <label>Type</label>
                {% render_field form.type_cours class="form-control" placeholder="Entrez le libellé du groupe" %}
            </div>
            <div class="form-group">
                <label>UFR</label>
                {% render_field form.ufr class="form-control" %}
            </div>
            <div class="form-group">
                <label>Niveau</label>
                {% render_field form.niveau class="form-control" %}
            </div>
            <div class="form-group">
                <label>Limite</label>
                {% render_field form.limite class="form-control" placeholder="Nombre limite de membre" %}
            </div>

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

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