{% for registration_student_pre_registration in registration_student_pre_registrations %}
<tr>
<td class="text-center">
<input type="checkbox" class="check-elt" value="{{ registration_student_pre_registration.id }}" onclick="javascript:checkElt()">
</td>
<td>
{{ registration_student_pre_registration.code }}
{% if registration_student_pre_registration.isSubjectEntryTest and registration_student_pre_registration.IsEntryTestPerformed %}
<img src="{{ asset('img/flag_red.png') }}" style="width: 25px; height: 25px;">
{% endif %}
{% if registration_student_pre_registration.isSubjectToxicologicalTest and registration_student_pre_registration.isToxicologicalTestPerformed %}
<img src="{{ asset('img/flag_red.png') }}" style="width: 25px; height: 25px;">
{% endif %}
{% if registration_student_pre_registration.isSubjectPsychologicalTest and registration_student_pre_registration.isPsychologicalTestPerformed %}
<img src="{{ asset('img/flag_red.png') }}" style="width: 25px; height: 25px;">
{% endif %}
</td>
<td>{{ registration_student_pre_registration.registrationNumber }}</td>
<td>{{ registration_student_pre_registration.lastName ~ ' ' ~ registration_student_pre_registration.firstName }}</td>
<td>{{ registration_student_pre_registration.birthday ? registration_student_pre_registration.birthday|date('d/m/Y') }}</td>
<td>{{ registration_student_pre_registration.notificationPhoneNumber ? registration_student_pre_registration.notificationPhoneNumber : '' }}</td>
<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>
<td class="text-center">
{% if null != registration_student_pre_registration.student %}
{{ registration_student_pre_registration.student.isAffected ? '<span class="text-success">AFFECTE</span>'|raw : '<span class="text-danger">NON AFFECTE</span>'|raw }}
{% else %}
{{ '<span class="text-danger">NON AFFECTE</span>'|raw }}
{% endif %}
</td>
<td class="text-center">
<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>
<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>
</td>
</tr>
{% endfor %}