<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="inscpost" 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>DEMANDE D'INSCRIPTION</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="row">
                  <div class="col-md-3">
                      <div class="form-group">
                          <label>Année</label>
                          <input type="text" class="form-control" value="{{annee}}" disabled/>
                      </div>
                  </div>
                  <div class="col-md-5">
                      <div class="form-group">
                          <label>Niveau</label>
                          <input type="text" class="form-control" value="{{niv_suivant}}" disabled/>
                      </div>
                 </div>
            </div>
          <div class="row">
                  <div class="col-md-12">
                      <div class="form-group">
                          <label>UFR</label>
                          <input type="text" class="form-control" value="{{etudiant.ufr.code}} | {{etudiant.ufr.libelle}}" disabled/>
                      </div>
                  </div>
            </div>

              <div class="modal-footer">
                <button type="submit" name="demInsc-btn" class="btn btn-success"> <i class="fa fa-paper-plane"></i> &nbsp;Envoyer la demande</button>
                <button class="btn btn-secondary" data-dismiss="modal">Annuler</button>
              </div>
          </form>
      </div>
    </div>
  </div>
</div>