templates/treasury/treasury_cash_register/_shedul_table.html.twig line 1

Open in your IDE?
  1. <div class="table-responsive">
  2.     <table id="defaultDataTable" 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 imputation</th>
  11.             </tr>
  12.         </thead>
  13.         <tbody>
  14.             {% for accounting_student_registration_fee in student_registration_fees %}
  15.                 {# {% if accounting_student_registration_fee.fee.establishment == app.user.establishment %} #}
  16.                     {% if not accounting_student_registration_fee.isArchived %}
  17.                         {% set loop_index = 1 %}
  18.                         {% for accounting_student_registration_fee_shedul in accounting_student_registration_fee.accountingStudentRegistrationFeeSheduls %}
  19.                             {% if accounting_student_registration_fee_shedul.amountRest > 0 %}
  20.                                 <tr>
  21.                                     <td class="text-center">{{ accounting_student_registration_fee_shedul.orderNum }}</td>
  22.                                     <td>{{ accounting_student_registration_fee.label }}</td>
  23.                                     <td>{{ accounting_student_registration_fee_shedul.dateDue ? accounting_student_registration_fee_shedul.dateDue|date('d/m/Y') }}</td>
  24.                                     <td class="text-center">{{ accounting_student_registration_fee_shedul.amount|number_format(0, ',', ' ') }}</td>
  25.                                     <td class="text-center">{{ accounting_student_registration_fee_shedul.amountPaid|number_format(0, ',', ' ') }}</td>
  26.                                     <td class="text-center">
  27.                                         {% if loop_index <= 1 %}
  28.                                             <form method="POST" class="form form-inline text-center">
  29.                                                 <input type="number" name="_shedul_payment" class="form-control" min="5" value="{{ accounting_student_registration_fee_shedul.amountRest }}"/>
  30.                                                 <input type="hidden" name="_submitting" value="{{ app.user.username }}" />
  31.                                                 <input type="hidden" name="_feeId" value="{{ accounting_student_registration_fee_shedul.id }}" />
  32.                                                 &nbsp;&nbsp;<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i></button>
  33.                                             </form>
  34.                                         {% endif %}
  35.                                     </td>
  36.                                 </tr>
  37.                                 {% set loop_index = loop_index + 1 %}
  38.                             {% endif %}
  39.                         {% endfor %}
  40.                     {% endif %}
  41.                 {# {% endif %} #}
  42.             {% endfor %}
  43.         </tbody>
  44.     </table>
  45. </div>