{% extends 'base.html.twig' %}
{% block title %}Editer | {{ parent() }}{% endblock %}
{% block body %}
<div class="breadcrumb">
<h1 class="mr-2">Pré-inscrits</h1>
<ul>
<li><a href="{{ path('default') }}" onclick="$('.loader').addClass('is-active');">Accueil</a></li>
<li><a href="{{ path('registration_student_pre_registration_index') }}" onclick="$('.loader').addClass('is-active');">Retour</a></li>
<li>Editer</li>
</ul>
</div>
<div class="separator-breadcrumb border-top"></div>
<div class="row mb-4">
<div class="col-md-12 mb-4">
{% if registration_student_pre_registration.entryLevel.isStudentCbeAffected %}
{% if null != registration_student_pre_registration.student %}
{% if registration_student_pre_registration.student.isAffected %}
<a href="#" class="btn btn-danger" onclick="javascript:actionByPathAndElts('{{path('registration_student_set_to_nonaffected', {'id': registration_student_pre_registration.student.id})}}')">Metter Non Affecté</a>
{% else %}
{% if is_granted('ROLE_CORRESPONDANT_FICHIER') %}
<a href="#" class="btn btn-success" onclick="javascript:actionByPathAndElts('{{path('registration_student_set_to_affected', {'id': registration_student_pre_registration.student.id})}}')">Mettre Affecté</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
<br><br>
<div class="card text-left">
<div class="card-header">Resultat des tests</div>
<div class="card-body text-center">
{% if registration_student_pre_registration.isSubjectToxicologicalTest and registration_student_pre_registration.entryLevel.isStudentToxicologicalTestDo %}
<strong class="text-danger">{{ "Test Toxicologique"|upper }}: {{ registration_student_pre_registration.isToxicologicalTestPerformed ? 'validé'|upper : 'EN COURS' }}</strong>
{% endif %}
{% if registration_student_pre_registration.isSubjectPsychologicalTest and registration_student_pre_registration.entryLevel.isStudentPsychologicalTestDo %}
<strong class="text-danger">{{ "Test Psychologique"|upper }}: {{ registration_student_pre_registration.isPsychologicalTestPerformed ? 'validé'|upper : 'EN COURS' }}</strong>
{% endif %}
{% if registration_student_pre_registration.isSubjectEntryTest and registration_student_pre_registration.entryLevel.isStudentEntryTestDo %}
<strong class="text-danger">{{ "Test d'entré"|upper }}: {{ registration_student_pre_registration.IsEntryTestPerformed ? 'validé'|upper : 'EN COURS' }}</strong>
{% endif %}
</div>
</div>
</div>
</div>
<div class="row mb-4">
<div class="col-md-12 mb-4">
<div class="card text-left">
<div class="card-header">Edition</div>
<div class="card-body">
{{ include('registration/registration_student_pre_registration/_secondaireForm.html.twig') }}
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ include('registration/registration_student/_js.html.twig') }}
{% endblock %}