templates/registration/registration_student_pre_registration/_searh_table.html.twig line 1

Open in your IDE?
  1. {% for registration_student_pre_registration in registration_student_pre_registrations %}
  2.     <tr>
  3.         <td class="text-center">
  4.             <input type="checkbox" class="check-elt" value="{{ registration_student_pre_registration.id }}" onclick="javascript:checkElt()">
  5.         </td>
  6.         <td>
  7.             {{ registration_student_pre_registration.code }}
  8.             {% if registration_student_pre_registration.isSubjectEntryTest and  registration_student_pre_registration.IsEntryTestPerformed %}
  9.                 <img src="{{ asset('img/flag_red.png') }}" style="width: 25px; height: 25px;">
  10.             {% endif %}
  11.             {% if registration_student_pre_registration.isSubjectToxicologicalTest and  registration_student_pre_registration.isToxicologicalTestPerformed %}
  12.                 <img src="{{ asset('img/flag_red.png') }}" style="width: 25px; height: 25px;">
  13.             {% endif %}
  14.             {% if registration_student_pre_registration.isSubjectPsychologicalTest and  registration_student_pre_registration.isPsychologicalTestPerformed %}
  15.                 <img src="{{ asset('img/flag_red.png') }}" style="width: 25px; height: 25px;">
  16.             {% endif %}
  17.         </td>
  18.         <td>{{ registration_student_pre_registration.registrationNumber }}</td>
  19.         <td>{{ registration_student_pre_registration.lastName ~ ' ' ~ registration_student_pre_registration.firstName }}</td>
  20.         <td>{{ registration_student_pre_registration.birthday ? registration_student_pre_registration.birthday|date('d/m/Y') }}</td>
  21.         <td>{{ registration_student_pre_registration.notificationPhoneNumber ? registration_student_pre_registration.notificationPhoneNumber : '' }}</td>
  22.         <td class="text-center">{{ registration_student_pre_registration.student ? '<span class="text-success">VALIDER</span>'|raw : '<span class="text-warning">EN COURS</span>'|raw }}</td>
  23.         <td class="text-center">
  24.             {% if null != registration_student_pre_registration.student %}
  25.                 {{ registration_student_pre_registration.student.isAffected ? '<span class="text-success">AFFECTE</span>'|raw : '<span class="text-danger">NON AFFECTE</span>'|raw }}
  26.                 {% else %}
  27.                     {{ '<span class="text-danger">NON AFFECTE</span>'|raw }} 
  28.             {% endif %}
  29.         </td>
  30.         <td class="text-center">
  31.             <a href="{{ path('registration_student_pre_registration_edit', {'id': registration_student_pre_registration.id}) }}" class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></a>
  32.             <a href="{{ path('registration_student_pre_registration_print', {'id': registration_student_pre_registration.id}) }}" class="btn btn-dark btn-sm" target="_blank"><i class="fa fa-print"></i></a>
  33.         </td>
  34.     </tr>
  35. {% endfor %}