{% load widget_tweaks %}
{% load custom_tag %}
{% load custom_tag_obj %}
<!-- The Modal -->
<div class="modal" id="NoteEdit{{etudiantUe.etudiant.id}}EV{{evaluation.0.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}}
               <h5 style="text-align:center;">
                   {{evaluation.0.libelle}} ({{ etudiantUe.id|get_evalution_note2:evaluation }})
               </h5>

           </h4>
        <hr/>
           <form method="post" action="#">
            {% csrf_token %}
            <div class="form-group">
                <label>Note</label>
                <input class="form-control" name="note" value="{{ etudiantUe.id|get_evalution_note2:evaluation }}" />
            </div>
            <input type="number" name="obj" value="{{ etudiantUe.id|get_evalution_note_obj:evaluation }}" 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="NoteEditBtn"><i class="fa fa-download"></i> &nbsp; Enregistrer</button>
          </div>

        </form>
      </div>

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