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

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Imputations | {{ parent() }}{% endblock %}
  3. {% block body %}
  4.     <div class="breadcrumb">
  5.         <h1 class="mr-2">Imputations</h1>
  6.         <ul>
  7.             <li><a href="{{ path('default') }}" onclick="$('.loader').addClass('is-active');">Accueil</a></li>
  8.             {# <li><a href="{{ path('treasury_cash_register_show', {'id': treasury_cash_register.id}) }}" onclick="$('.loader').addClass('is-active');">Retour</a></li> #}
  9.             <li>Détails</li>
  10.         </ul>
  11.     </div>
  12.     <div class="separator-breadcrumb border-top"></div>
  13.     {% if accounting_student_registration_payment.isCanBePrint %}
  14.         <div class="row">
  15.             <div class="col-md-12 text-center mt-24">
  16.                 <a href="{{ path('treasury_cash_register_shedul_payment_print', {'id': accounting_student_registration_payment.id}) }}" target="_blank" class="btn btn-dark"><i class="fa fa-print"></i> IMPRIMER</a>
  17.                 <a href="{{ path('treasury_cash_register_show', {'id': treasury_cash_register.id}) }}" onclick="$('.loader').addClass('is-active');" class="btn btn-primary"><i class="fa fa-plus"></i> Nouveau Paiement</a>
  18.             </div>
  19.         </div>
  20.         {% else %}
  21.             <div class="card">
  22.                 <div class="card-header text-center">
  23.                     {{ accounting_student_registration_payment.code }} | 
  24.                     <b>{{ accounting_student_registration_payment.shedulAmount|number_format(0, ',', ' ') }} imputé sur {{ accounting_student_registration_payment.amount|number_format(0, ',', ' ') }} Reste à imputer : {{ (accounting_student_registration_payment.amount - accounting_student_registration_payment.shedulAmount)|number_format(0, ',', ' ') }}</b> | 
  25.                     {{ student_registration.name }} | {{ student_registration.classroom.label }} | Mle: {{ student_registration.student.code }}
  26.                 </div>
  27.                 <div class="card-body">
  28.                     <div class="tab-pane fade active show" id="shedul" role="tabpanel" aria-labelledby="shedul-tab">
  29.                         {{ include('treasury/treasury_cash_register/_shedul_table.html.twig') }}
  30.                     </div>
  31.                 </div>
  32.                 <div class="card-footer">
  33.                     <a href="{{ path('treasury_cash_register_show', {'id': treasury_cash_register.id}) }}" onclick="$('.loader').addClass('is-active');" class="btn btn-primary pull-right"><i class="fa fa-chevron-left"></i> Quitter</a>
  34.                 </div>
  35.             </div>
  36.     {% endif %}
  37. {% endblock %}
  38. {% block javascripts %}
  39.     {{ parent() }}
  40.     <script>
  41.         {# $(document).ready(function () {
  42.             $('#accounting_student_registration_payment_studentRegistration').change(function(){
  43.                 id = $('#accounting_student_registration_payment_studentRegistration').val();
  44.                 getStudentInfo(id);
  45.             }).trigger("change");
  46.         }) #}
  47.         
  48.     </script>
  49. {% endblock %}