{% set active1 = '' %}
{% set active2 = '' %}
{% set active3 = '' %}
{% set active4 = '' %}
{% set active5 = '' %}
{% set active6 = '' %}
{% set active7 = '' %}
{% set active8 = '' %}
{% set active9 = '' %}
{% set active10 = '' %}
{% if nav == 1 %}
{% set active1 = ' bg-light active' %}
{% elseif nav == 2 %}
{% set active2 = ' bg-light active' %}
{% elseif nav == 3 %}
{% set active3 = ' bg-light active' %}
{% elseif nav == 4 %}
{% set active4 = ' bg-light active' %}
{% elseif nav == 5 %}
{% set active5 = ' bg-light active' %}
{% elseif nav == 6 %}
{% set active6 = ' bg-light active' %}
{% elseif nav == 7 %}
{% set active7 = ' bg-light active' %}
{% elseif nav == 8 %}
{% set active8 = ' bg-light active' %}
{% elseif nav == 9 %}
{% set active9 = ' bg-light active' %}
{% elseif nav == 10 %}
{% set active10 = ' bg-light active' %}
{% endif %}
{% if formation.etat != 1 %}
{% set disabled = '' %}
{% else %}
{% set disabled = 'disabled' %}
{% endif %}
<div class="row ms-1 me-1">
<ul class="nav nav-tabs justify-content-end">
<li class="nav-item ">
<a class="nav-link {{ active1 }}" aria-current="page" href="{{ path('formations_show', {'id':formation.id}) }}">Détails</a>
</li>
<li class="nav-item">
<a class="nav-link {{ active2 }}" href="{{ path('formations_show_planning', {'idFormation':formation.id}) }}">Planning</a>
</li>
<li class="nav-item">
<a class="nav-link {{ active3 }}" href="{{ path('formations_show_inscriptions', {'idFormation':formation.id}) }}">Inscriptions</a>
</li>
<li class="nav-item">
<a class="nav-link {{ active4 }}" href="{{ path('formations_show_convocations', {'idFormation':formation.id}) }}">Convocations</a>
</li>
{% if formation.bloc.numBloc == 1 %}
<li class="nav-item">
<a class="nav-link {{ active5 }} {{ disabled }}" href="{{ path('formations_show_psc1', {'idFormation':formation.id}) }}">Groupes PSC1</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link {{ active6 }} {{ disabled }}" href="{{ path('formations_show_presences', {'idFormation':formation.id}) }}">Présences</a>
</li>
{% if formation.bloc.numBloc == 1 %}
<li class="nav-item">
<a class="nav-link {{ active7 }} {{ disabled }}" href="{{ path('formations_show_eval', {'idFormation':formation.id}) }}">Évaluations</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link {{ active8 }} {{ disabled }}" href="{{ path('formations_show_attestations', {'idFormation':formation.id}) }}">Attestations</a>
</li>
{% if formation.bloc.numBloc == 2 %}
<li class="nav-item">
<a class="nav-link {{ active9 }} {{ disabled }}" href="{{ path('formations_show_attestations_fin', {'idFormation':formation.id}) }}">Fin de formation</a>
</li>
{% endif %}
<li class="nav-item">
{% if formation.etat == 3 %}
{% set disabledBilan = '' %}
{% else %}
{% set disabledBilan = 'disabled' %}
{% endif %}
<a class="nav-link {{ active10 }} {{ disabledBilan }}" href="{{ path('formations_show_bilan', {'idFormation':formation.id}) }}">Bilan</a>
</li>
</ul>
</div>