{% set etape0 = not app.request.query.get('lva', null) and not app.request.query.get('lvb', null) %}{% set etape1 = app.request.query.get('lva', null) and not app.request.query.get('lvb', null) %}{% set etape2 = app.request.query.get('lva', null) and app.request.query.get('lvb', null) %}{% set etape = 0*etape0 + 1*etape1 + 2*etape2 %} {# n° étape : 0, 1 ou 2 #}{% 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">Collège : 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">LVA</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">LVB</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 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> {% 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">Collège : 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/college" type="button" class="btn position-relative" disabled="disabled"> <strong class="btn1 position-relative">1</strong> <small class="d-flex two mt-4">LVA</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">LVB</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 langue vivante B (LVB) ?</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 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 %}