<!-- Button trigger modal -->
<!-- Modal -->
{% load widget_tweaks %}
<div class="modal fade" id="reinscription" 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">INSCRIPTION ETUDIANT</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 %}
            <p style="font-size:18px;text-align:center;"> L'etudiant(e) <span style="color:red;">({{etudiant.nce}}) {{etudiant}}</span>
                 <span style="color:red;">{{etudiant.ufr.code}}</span> sera inscrit(e) pour l'année universitaire
                <span style="color:red;">{{annee}}</span>
            </p><hr/>
            <div class="form-group">
                <label>Niveau</label>
                <input class="form-control" type="text" value="{{niv_suivant}}" name="niveau" disabled />
                <input type="text" value="{{niv_suivant.id}}" name="niveau" hidden />
            </div>

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

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