{% load widget_tweaks %}
<!-- The Modal -->
<div class="modal" id="compEdit{{item.id}}">
  <div class="modal-dialog">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header" style="background: #21618C; color:#fff;">
        <h6 class="modal-title">MODIFIER LA NOTE DE COMPENSATION</h6>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <!-- Modal body -->
      <div class="modal-body">
       <div class="modal-body">
           <h6><i class="fa fa-user"></i>&nbsp;{{etudiant.nce}} | {{etudiant}}</h6>
           <h6><i class="fa fa-calendar"></i> &nbsp;{{AnUniv}}</h6>
           <h6><i class="fa fa-book"></i> &nbsp;<span style="color:red;">{{item.code}} | {{item.libelle}}</span></h6>
        <hr/>
           <form method="post" action="#">
            {% csrf_token %}
            <div class="form-group">
                <label>Note</label>
                {% render_field form.note class="form-control" placeholder="Entrez la note" %}
            </div>
            <input type="text" name="ue" value="{{item.id}}" hidden/>
            <div class="modal-footer">
            <button type="submit" class="btn btn-success" name="editCompBtn"><i class="fa fa-download"></i> &nbsp; Enregistrer</button>
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Annuler</button>
            </div>

        </form>
      </div>

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