<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="addIU" 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">
          <span>DESACTIVER UNE UE</span>
        </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 action="#" method="post">
               {% csrf_token %}
              <div class="form-group">
                  <label>ANNEE</label>
                  <select class="form-control" name="annee">
                        {% for an in annees %}
                        <option value="{{an.id}}">{{an}}</option>
                        {% endfor %}
                    </select>
              </div>
              <div class="form-group">
                  <label>UE</label>
                  <select class="form-control" name="ue">
                        {% for ues in UEALL %}
                        <option value="{{ues.id}}">{{ues.code}} - {{ues}}</option>
                        {% endfor %}
                    </select>
              </div>

              <div class="modal-footer">
                <button type="submit" name="addForm" class="btn btn-success">Enregistrer</button>
                <button class="btn btn-secondary" data-dismiss="modal">Quitter</button>
              </div>
          </form>
      </div>
    </div>
  </div>
</div>