templates/annuaire/_includes/aide-au-choix-diplomes_college.html.twig line 1

Open in your IDE?
  1. {% set etape0 = not app.request.query.get('lva', null) and not app.request.query.get('lvb', null)  %}
  2. {% set etape1 = app.request.query.get('lva', null) and not app.request.query.get('lvb', null)  %}
  3. {% set etape2 = app.request.query.get('lva', null) and app.request.query.get('lvb', null)  %}
  4. {% set etape = 0*etape0 + 1*etape1 + 2*etape2 %} {# n° étape : 0, 1 ou 2 #}
  5. {% set affichageBas = position == 'footer' and etape == 2 %}
  6. {% if affichageBas %}
  7.     {% set hideMe = "d-none-important" %}
  8. {% else %}
  9.     {% set hideMe = "" %}
  10. {% endif %}
  11. {#
  12. ##ETAPE {{etape}}## position = {{position}} ### niveauOnglet = {{niveauOnglet}} ####
  13. ##{{etape0}}/{{etape1}}/{{etape2}}##
  14. #}
  15. {% if etape == 0 and position != 'footer' %}
  16.     <div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome">Collège : Aide à l'orientation</div>
  17.     <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }}">
  18.         <div class="diplome-aide position-relative">
  19.             <div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row">
  20.                 {#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
  21.                 <div class="steps setup-panel d-flex justify-content-between position-relative">
  22.                     <div class="stepwizard-step step1 text-center">
  23.                         <a href="#step-1" type="button" class="btn clicked position-relative" disabled="disabled">
  24.                             <strong class="btn1 position-relative">1</strong>
  25.                             <small class="d-flex two mt-4">LVA</small>
  26.                         </a>
  27.                     </div>
  28.                     <div class="stepwizard-step step2 text-center">
  29.                         <a href="#step-2" type="button" class="btn position-relative" disabled="disabled">
  30.                             <strong class="btn2 position-relative">2</strong>
  31.                             <small class="d-flex justify-content-center three mt-4">LVB</small>
  32.                         </a>
  33.                     </div>
  34.                 </div>
  35.             </div>
  36.             <form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
  37.                 <div class="setup-content" id="step-1">
  38.                     <div class="">
  39.                         <h2 class="title font-weight-bold text-center">Quelle langue vivante A (LVA) ?</h2>
  40.                         <div class="d-flex justify-content-center ">
  41.                             <div class="list-items">
  42.                                 {# TODO à dynamiser niveau de formation #}
  43.                                 <ul class="card-three-columns">
  44.                                     {% for lang in lva | filter ( lang => "-TXTS" not in lang.id ) %}
  45.                                         <li class="position-relative step-diplome-li"><a href="{{ generate_uri('lva[]', lang.id) }}">{{lang | itemsLibelle}}</a></li>
  46.                                     {% endfor %}
  47.                                 </ul>
  48.                             </div>
  49.                         </div>
  50.                     </div>
  51.                 </div>
  52.             </form>
  53.         </div>
  54.     </div>
  55. {% elseif (etape == 1 and position != 'footer') or affichageBas %}
  56.     <div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome" aria-expanded="true">Collège : Aide à l'orientation</div>
  57.     <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }} show">
  58.         <div class="diplome-aide position-relative">
  59.             <div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row {{hideMe}}">
  60.                 {#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
  61.                 <div class="steps setup-panel d-flex justify-content-between position-relative">
  62.                     <div class="stepwizard-step step1 text-center">
  63.                         <a href="/onglet/college" type="button" class="btn position-relative" disabled="disabled">
  64.                             <strong class="btn1 position-relative">1</strong>
  65.                             <small class="d-flex two mt-4">LVA</small>
  66.                         </a>
  67.                     </div>
  68.                     <div class="stepwizard-step step2 text-center">
  69.                         <a href="#step-2" type="button" class="btn clicked position-relative" disabled="disabled">
  70.                             <strong class="btn2 position-relative">2</strong>
  71.                             <small class="d-flex justify-content-center three mt-4">LVB</small>
  72.                         </a>
  73.                     </div>
  74.                 </div>
  75.             </div>
  76.             <form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
  77.                 <div class="setup-content" id="step-2">
  78.                     <div class="">
  79.                         <h2 class="title font-weight-bold text-center">Quelle langue vivante B (LVB) ?</h2>
  80.                         <div class="d-flex justify-content-center ">
  81.                             <div class="list-items">
  82.                                 {# TODO à dynamiser niveau de formation #}
  83.                                 <ul class="card-three-columns">
  84.                                     {% for lang in lvb | filter ( lang => "-TXTS" not in lang.id ) %}
  85.                                         <li class="position-relative step-diplome-li"><a href="{{ generate_uri('lvb[]', lang.id) }}">{{lang | itemsLibelle}}</a></li>
  86.                                     {% else %}
  87.                                         <style>
  88.                                             .list-description {
  89.                                                 display: none;
  90.                                             }
  91.                                         </style>
  92.                                     {% endfor %}
  93.                                 </ul>
  94.                             </div>
  95.                         </div>
  96.                     </div>
  97.                 </div>
  98.             </form>
  99.         </div>
  100.     </div>
  101. {% endif %}