{% load widget_tweaks %}
<!-- The Modal -->
<div class="modal" id="addEtNote{{etudiantUe.etudiant.id}}">
  <div class="modal-dialog">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">NCE : {{etudiantUe.etudiant.nce}}</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <!-- Modal body -->
      <div class="modal-body">
       <div class="modal-body">
           <h4><i class="fa fa-user"></i> &nbsp;{{etudiantUe.etudiant.nom}} {{etudiantUe.etudiant.prenoms}}</h4>
        <hr/>
           <form method="post" action="#">
            {% csrf_token %}
            <div class="form-group">
                <label>Note</label>
                {% render_field form2.note class="form-control" placeholder="Entrez la note (Ex:10.00)" %}
            </div>
            <input type="text" name="etudiant" value="{{etudiantUe.etudiant.id}}" hidden/>
               <input type="text" name="evaluation" value="{{evaluation.0.id}}" hidden/>
            <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
            <button type="submit" class="btn btn-primary" name="addENBtn"><i class="fa fa-download"></i> &nbsp; Enregistrer</button>
          </div>

        </form>
      </div>

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