templates/accounting/accounting_student_registration_fee_shedul/_table.html.twig line 1

Open in your IDE?
  1. <div class="table-responsive">
  2.     <table class="display table table-striped table-bordered">
  3.         <thead>
  4.             <tr>
  5.                 <th class="text-center" width="5%">N°</th>
  6.                 <th>Designation</th>
  7.                 <th>Date d'échéance</th>
  8.                 <th class="text-center">Montant</th>
  9.                 <th class="text-center">Mt payé</th>
  10.                 <th class="text-center">Mt restant</th>
  11.                 <th class="text-center">Mt annulé</th>
  12.                 <th width="10%" class="text-center">Action</th>
  13.             </tr>
  14.         </thead>
  15.         <tbody>
  16.         {% for accounting_student_registration_fee in registration_student_registration.accountingStudentRegistrationFees %}
  17.             {% if not accounting_student_registration_fee.isArchived %}
  18.                 {% for accounting_student_registration_fee_shedul in accounting_student_registration_fee.accountingStudentRegistrationFeeSheduls %}
  19.                     <tr>
  20.                         <td class="text-center">{{ accounting_student_registration_fee_shedul.orderNum }}</td>
  21.                         <td>{{ accounting_student_registration_fee.label }}</td>
  22.                         <td>
  23.                             {% if accounting_student_registration_fee_shedul.amountRest > 0 and is_granted("ROLE_RECOUVREMENT") %}
  24.                                 <input class="form-control" type="date" value="{{ accounting_student_registration_fee_shedul.dateDue ? accounting_student_registration_fee_shedul.dateDue|date('Y-m-d') }}" onchange="fee_shedul_update_date_due($(this), '{{ path('api_accounting_student_registration_fee_shedul_update_date_due', {'id': accounting_student_registration_fee_shedul.id})}}')" />
  25.                                 {% else %}
  26.                                 {{ accounting_student_registration_fee_shedul.dateDue ? accounting_student_registration_fee_shedul.dateDue|date('d/m/Y') }}
  27.                             {% endif %}
  28.                         </td>
  29.                         <td class="text-center">{{ accounting_student_registration_fee_shedul.amount|number_format(0, ',', ' ') }}</td>
  30.                         <td class="text-center">{{ accounting_student_registration_fee_shedul.amountPaid|number_format(0, ',', ' ') }}</td>
  31.                         <td class="text-center">{{ accounting_student_registration_fee_shedul.amountRest|number_format(0, ',', ' ') }}</td>
  32.                         <td class="text-center">{{ accounting_student_registration_fee_shedul.amountCancel|number_format(0, ',', ' ') }}</td>
  33.                         <td class="text-center">
  34.                             {% if is_granted('ROLE_ADMIN') %}
  35.                                 {% if accounting_student_registration_fee_shedul.amountCancel <= 0 %}
  36.                                     {% if accounting_student_registration_fee_shedul.amountRest > 0 %}
  37.                                         <a href="#" data-toggle="modal" data-target="#cancel{{ accounting_student_registration_fee_shedul.id }}Modal" class="btn btn-success btn-sm" title="Remise">Remise</a>
  38.                                     {% endif %}
  39.                                 {% endif %}
  40.                             {% endif %}
  41.                             {# <a href="#" onclick="javascript:actionByPathAndElts('{{path('accounting_student_registration_fee_shedul_cancel', {'id': accounting_student_registration_fee_shedul.id})}}')" class="btn btn-warning btn-sm" title="Remise">Remise</a> #}
  42.                             {# {% if is_granted('ROLE_SUPER_ADMIN') %}
  43.                                 <a href="#" data-toggle="modal" data-target="#addFeeModal" onclick="javascript:actionByPathAndElts('{{path('accounting_student_registration_fee_shedul_delete', {'id': accounting_student_registration_fee_shedul.id})}}')" class="btn btn-danger btn-sm" title="Supprimer"><i class="fa fa-trash"></i></a>
  44.                             {% endif %} #}
  45.                         </td>
  46.                     </tr>
  47.                     <div class="modal fade" id="cancel{{ accounting_student_registration_fee_shedul.id }}Modal" tabindex="-1" role="dialog" aria-labelledby="cancel{{ accounting_student_registration_fee_shedul.id }}Modal" aria-hidden="true">
  48.                         <div class="modal-dialog" role="document">
  49.                             <div class="modal-content">
  50.                                 <div class="modal-header">
  51.                                     <h5 class="modal-title" id="cancel{{ accounting_student_registration_fee_shedul.id }}Modal_title">
  52.                                         Remise ({{ accounting_student_registration_fee.studentRegistration.student.name }}): 
  53.                                         <br>{{ accounting_student_registration_fee.fee }}
  54.                                         <br>Echéance: {{ accounting_student_registration_fee_shedul.amount|number_format(0, ',', ' ') }}
  55.                                         <br>Reste: {{ accounting_student_registration_fee_shedul.amountRest|number_format(0, ',', ' ') }}
  56.                                     </h5>
  57.                                     <button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
  58.                                 </div>
  59.                                 <form action="{{path('accounting_student_registration_fee_shedul_cancel', {'id': accounting_student_registration_fee_shedul.id})}}">
  60.                                     <div class="modal-body">
  61.                                         <div class="form-group">
  62.                                             <label class="col-form-label" for="shedulAmount">Montant:</label>
  63.                                             <input type="number" class="form-control" id="shedulAmount" name="shedulAmount" value="0">
  64.                                             <span class="text-danger">Cette action est irreversible, merci de bien vérifier avant de valider</label>
  65.                                         </div>
  66.                                     </div>
  67.                                     <div class="modal-footer">
  68.                                         <button class="btn btn-secondary" type="button" data-dismiss="modal">Annuler</button>
  69.                                         <button class="btn btn-primary" onclick="$('.loader').addClass('is-active');" type="submit">Valider</button>
  70.                                     </div>
  71.                                 </form>
  72.                             </div>
  73.                         </div>
  74.                     </div>
  75.                 {% endfor %}
  76.             {% endif %}
  77.         {% endfor %}
  78.         </tbody>
  79.     </table>
  80. </div>