{% if niveauOnglet == 'technologique' %}
{% set filiere = app.request.query.get('filiere') | first %}
{% set diplome = app.request.query.get('diplome') | first %}
{% set etape0 = not app.request.query.get('filiere', null) and not app.request.query.get('diplome', null) %}
{% set etape1 = app.request.query.get('filiere', null) and not app.request.query.get('diplome', null) %}
{% set etape = 0*etape0 + 1*etape1 %} {# n° étape : 0, 1 #}
{% set idFiliere = app.request.query.get('filiere') | first %}
{% set idDiplome = app.request.query.get('diplome') | first %}
{% set affichageBas = position == 'footer' and etape == 2 %}
{% if affichageBas %}
{% set hideMe = "d-none-important" %}
{% else %}
{% set hideMe = "" %}
{% endif %}
{#
##ETAPE {{etape}}## position = {{position}} ### niveauOnglet = {{niveauOnglet}} ####
##{{etape0}}/{{etape1}}/{{etape2}}##
#}
{% if etape == 0 and position != 'footer' %}
<div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome">Diplômes : Aide à l'orientation</div>
<div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }}">
<div class="diplome-aide position-relative">
<div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row">
{#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
<div class="steps setup-panel d-flex justify-content-between position-relative">
<div class="stepwizard-step step1 text-center">
<a href="#step-1" type="button" class="btn clicked position-relative" disabled="disabled">
<strong class="btn1 position-relative">1</strong>
<small class="d-flex two mt-4">Séries</small>
</a>
</div>
<div class="stepwizard-step step2 text-center">
<a href="#step-2" type="button" class="btn position-relative" disabled="disabled">
<strong class="btn2 position-relative">2</strong>
<small class="d-flex justify-content-center three mt-4">Options</small>
</a>
</div>
</div>
</div>
<form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
<div class="setup-content" id="step-1">
<div class="">
<h2 class="title font-weight-bold text-center">Quelle série technologique envisagez-vous ?</h2>
<div class="d-flex justify-content-center ">
<div class="list-items">
<ul class="card-three-columns">
{% for filiere in filieres %}
{% set url = lieu is defined and lieu.slug != 'default' ?
path('annuaire_liste_par_onglet_localisation', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet, "localisation": lieu.slug}) :
path('annuaire_liste_par_onglet', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet}) %}
<li class="position-relative step-diplome-li"><a href="{{url}}?filiere[]={{filiere.id}}">{{filiere | itemsLibelle | raw}}</a></li>
{% else %}
<style>
.list-description {
display: none;
}
</style>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{% elseif (etape == 1 and position != 'footer') or affichageBas %}
<div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome" aria-expanded="true">Diplômes : Aide à l'orientation</div>
<div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }} show">
<div class="diplome-aide position-relative">
<div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row {{hideMe}}">
{#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
<div class="steps setup-panel d-flex justify-content-between position-relative">
<div class="stepwizard-step step1 text-center">
<a href="/onglet/lycee/technologique" type="button" class="btn position-relative" disabled="disabled">
<strong class="btn1 position-relative">1</strong>
<small class="d-flex two mt-4">Séries</small>
</a>
</div>
<div class="stepwizard-step step2 text-center">
<a href="#step-2" type="button" class="btn clicked position-relative" disabled="disabled">
<strong class="btn2 position-relative">2</strong>
<small class="d-flex justify-content-center three mt-4">Options</small>
</a>
</div>
</div>
</div>
<form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
<div class="setup-content" id="step-2">
<div class="">
<h2 class="title font-weight-bold text-center">Quelle option ?</h2>
<div class="d-flex justify-content-center ">
<div class="list-items">
<ul class="card-three-columns">
{# Si on a un seul item on n'affiche plus ce bloc #}
{% if diplomes | length <= 1 %}
<!-- Aide aux choix : il n'y a qu'un seul item ! On n'affiche rien ici... -->
<style>
.list-description {
display: none;
}
</style>
{% else %}
{% for diplome in diplomes %}
{% set url = lieu is defined and lieu.slug != 'default' ?
path('annuaire_liste_par_onglet_localisation', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet, "localisation": lieu.slug}) :
path('annuaire_liste_par_onglet', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet}) %}
<li class="position-relative step-diplome-li">
<a href="{{ url }}?filiere[]={{idFiliere}}&diplome[]={{diplome.id}}">{{diplome | itemsLibelle | raw}} {# if diplome.options is not empty %} - {{ diplome.options }} {% endif #}</a>
</li>
{% else %}
<style>
.list-description {
display: none;
}
</style>
{% endfor %}
{% endif %}
</ul>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{% endif %}
{% endif %} {#-- {% if niveauOnglet == 'technologique' %} --#}
{% if niveauOnglet == 'general' %}
{% set eds = app.request.query.get('eds', null) %}
{% set stepLva = app.request.query.get('lva', null) %}
{% set stepLvb = app.request.query.get('lvb', null) %}
{% if eds is null %}
{% set etape = 0 %}
{% elseif stepLva is null %}
{% set etape = 1 %}
{% elseif stepLvb is null %}
{% set etape = 2 %}
{% else %}
{% set etape = 3 %}
{% endif %}
{% set idEds = app.request.query.get('eds') | first %}
{% set idDiplome = app.request.query.get('diplome') | first %}
{% set affichageBas = position == 'footer' and etape == 3 %}
{% if affichageBas %}
{% set hideMe = "d-none-important" %}
{% else %}
{% set hideMe = "" %}
{% endif %}
{% if etape == 0 %}
<div class="title-aide-dip collapsed" data-bs-toggle="collapse" data-bs-target="#stepDiplome">Lycée général : Aide à l'orientation</div>
<div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }}">
<div class="diplome-aide position-relative">
<div class="stepwizard pt-2 d-flex align-items-center flex-column flex-lg-row">
{#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
<div class="steps setup-panel d-flex justify-content-between position-relative">
<div class="stepwizard-step step1 text-center">
{# TODO ajout classe btn clicked pour le changement d'image hexagonal #}
<a href="/onglet/lycee/general" type="button" class="btn clicked position-relative">
<strong class="btn1 position-relative">1</strong>
<small class="d-flex one mt-4">Spécialité principale</small>
</a>
</div>
<div class="stepwizard-step step2 text-center">
<a href="#step-2" type="button" class="btn position-relative" disabled="disabled">
<strong class="btn2 position-relative">2</strong>
<small class="d-flex two mt-4">LVA</small>
</a>
</div>
<div class="stepwizard-step step3 text-center">
<a href="#step-3" type="button" class="btn position-relative" disabled="disabled">
<strong class="btn3 position-relative">3</strong>
<small class="d-flex justify-content-center three mt-4">LVB</small>
</a>
</div>
</div>
</div>
<!-- Step 1 -->
<form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
<div class="setup-content" id="step-1">
<div class="">
<h2 class="title font-weight-bold text-center pb-2">Quelle spécialité principale recherchez-vous ?</h2>
<div class="d-flex justify-content-center ">
<div class="list-items mb-2">
<ul class="card-three-columns">
{% for eds in enseignementsDeSpecialite %}
{% set url = lieu is defined and lieu.slug != 'default' ?
path('annuaire_liste_par_onglet_localisation', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet, "localisation": lieu.slug}) :
path('annuaire_liste_par_onglet', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet}) %}
<li class="position-relative step-diplome-li"><a href="{{url}}?eds[]={{eds.id}}">{{eds | itemsLibelle}}</a></li>
{% else %}
<style>
.list-description {
display: none;
}
</style>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{% elseif etape == 1 %}
<div class="title-aide-dip collapsed" data-bs-toggle="collapse" data-bs-target="#stepDiplome" aria-expanded="true">Lycée général : Aide à l'orientation</div>
<div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }} show">
<div class="diplome-aide position-relative">
<div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row">
{#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
<div class="steps setup-panel d-flex justify-content-between position-relative">
<div class="stepwizard-step step1 text-center">
<a href="/onglet/lycee/general" type="button" class="btn position-relative">
<strong class="btn1 position-relative">1</strong>
<small class="d-flex one mt-4">Spécialité principale</small>
</a>
</div>
<div class="stepwizard-step step2 text-center">
<a href="#step-2" type="button" class="btn clicked position-relative" disabled="disabled">
<strong class="btn2 position-relative">2</strong>
<small class="d-flex two mt-4">LVA</small>
</a>
</div>
<div class="stepwizard-step step3 text-center">
<a href="#step-3" type="button" class="btn position-relative" disabled="disabled">
<strong class="btn3 position-relative">3</strong>
<small class="d-flex justify-content-center three mt-4">LVB</small>
</a>
</div>
</div>
</div>
<!-- Step 2 -->
<form role="diplome-choice" action="" method="post" class="d-flex pt-2 pl-5 pr-5 all-steps justify-content-center">
<div class="setup-content" id="step-2">
<div class="">
<h2 class="title font-weight-bold text-center">Quelle langue vivante A (LVA) ?</h2>
<div class="d-flex justify-content-center ">
<div class="list-items">
{# TODO à dynamiser niveau de formation #}
<ul class="card-three-columns">
{% for lang in lva | filter ( lang => "-TXTS" not in lang.id ) %}
<li class="position-relative step-diplome-li"><a href="{{ generate_uri('lva[]', lang.id) }}">{{lang | itemsLibelle}}</a></li>
{% else %}
<style>
.list-description {
display: none;
}
</style>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{% elseif etape == 2 or (etape == 3 and position == "header") %}
<div class="title-aide-dip collapsed" data-bs-toggle="collapse" data-bs-target="#stepDiplome" aria-expanded="true" >Lycée général : Aide à l'orientation</div>
<div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }} show">
<div class="diplome-aide position-relative">
<div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row {{hideMe}}">
{#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
<div class="steps setup-panel d-flex justify-content-between position-relative">
<div class="stepwizard-step step1 text-center">
<a href="/onglet/lycee/general" type="button" class="btn position-relative">
<strong class="btn1 position-relative">1</strong>
<small class="d-flex one mt-4">Spécialité principale</small>
</a>
</div>
<div class="stepwizard-step step2 text-center">
<a href="#step-2" type="button" class="btn position-relative" disabled="disabled">
<strong class="btn2 position-relative">2</strong>
<small class="d-flex two mt-4">LVA</small>
</a>
</div>
<div class="stepwizard-step step3 text-center">
<a href="#step-3" type="button" class="btn clicked position-relative" disabled="disabled">
<strong class="btn3 position-relative">3</strong>
<small class="d-flex justify-content-center three mt-4">LVB</small>
</a>
</div>
</div>
</div>
<!-- Step 3 -->
<form role="diplome-choice" action="" method="post" class="d-flex mt-3 pl-5 pr-5 all-steps justify-content-center">
<div class="setup-content" id="step-3">
<div class="">
{# TODO à dynamiser nom du diplôme #}
<h2 class="title font-weight-bold text-center">Quelle langue vivante B (LVB) ?</h2>
<div class="d-flex justify-content-center ">
<div class="list-items mb-2">
{# TODO à dynamiser liste diplômes #}
<ul class="card-three-columns">
{% for lang in lvb | filter ( lang => "-TXTS" not in lang.id ) %}
<li class="position-relative step-diplome-li"><a href="{{ generate_uri('lvb[]', lang.id) }}">{{lang | itemsLibelle}}</a></li>
{% else %}
<style>
.list-description {
display: none;
}
</style>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{% endif %}
{% endif %}
{% if niveauOnglet != 'technologique' and niveauOnglet != 'general' %}
<div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome">Lycée : Aide à l'orientation</div>
<div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }}">
<div class="diplome-aide position-relative">
<form role="diplome-choice" action="" method="post" class="d-flex mt-3 pl-5 pr-5 all-steps justify-content-center">
<div class="setup-content" id="step-1">
<div class="">
<h2 class="title font-weight-bold text-center">Quel type d’enseignement recherchez-vous ?</h2>
<div class="d-flex justify-content-center pt-4">
<div class="btn-group w-100 flex-wrap" role="group" aria-label="checkbox buttons">
<a class="btn col-lg mb-3" href="/onglet/lycee/general">Lycée général</a>
<a class="btn col-lg mb-3" href="/onglet/lycee/technologique">Lycée technologique</a>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{% endif %}