<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="deliberation{{ecue.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">Délibération matière</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>Matière</label>
                <div><input type="text" value="{{ecue}}" class="form-control" disabled></div>
            </div>
            <div class="form-group">
                <label>Année</label>
               <!-- <div>{% render_field formEc.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 formEc.session class+="form-control" %}</div>
            </div>
            <div class="form-group">
                <label>Entrez le seuil de délibération</label>
                <div>{% render_field formEc.note class+="form-control" placeholder="Entrez le seuil de délibération" %}</div>
            </div>
            <input type="text" name="ecue" value="{{ecue.id}}" hidden>

            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
            <button type="submit" name="deliberationecue" class="btn btn-primary">Délibérer</button>
          </div>

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