<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="deliberation{{item.ue.id}}" 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">Ajoutez une délibération</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>Choisissez l'année</label>
               <!-- <div>{% render_field form2.annee class+="form-control" %}</div> -->
                <select name="annee" class="form-control">
                    <option value="{{get_annee.id}}">{{get_annee}}</option>
                </select>
            </div>
            <div class="form-group">
                <label>Choisissez la Session</label>
                <div>{% render_field form2.session class+="form-control" %}</div>
            </div>
            <div class="form-group">
                <label>Entrez le seuil de délibération</label>
                <div>{% render_field form2.note class+="form-control" placeholder="Entrez le seuil de délibération" %}</div>
            </div>
            <div class="modal-footer">
            <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Annuler</button>
            <button type="submit" name="deliberationue" class="btn btn-primary btn-sm">Délibérer</button>
          </div>

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