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

Open in your IDE?
  1. {% if niveauOnglet == 'technologique' %}
  2.     {% set filiere = app.request.query.get('filiere') | first %}
  3.     {% set diplome = app.request.query.get('diplome') | first %}
  4.     {% set etape0 = not app.request.query.get('filiere', null) and not app.request.query.get('diplome', null)  %}
  5.     {% set etape1 = app.request.query.get('filiere', null) and not app.request.query.get('diplome', null)  %}  
  6.     {% set etape = 0*etape0 + 1*etape1 %} {# n° étape : 0, 1 #}
  7.     {% set idFiliere = app.request.query.get('filiere') | first %}
  8.     {% set idDiplome = app.request.query.get('diplome') | first %}
  9.     {% set affichageBas = position == 'footer' and etape == 2 %}
  10.     {% if affichageBas %}
  11.         {% set hideMe = "d-none-important" %}
  12.     {% else %}
  13.         {% set hideMe = "" %}
  14.     {% endif %}
  15.     {#
  16.     ##ETAPE {{etape}}## position = {{position}} ### niveauOnglet = {{niveauOnglet}} ####
  17.     ##{{etape0}}/{{etape1}}/{{etape2}}##
  18.     #}
  19.     {% if etape == 0 and position != 'footer' %}
  20.         <div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome">Diplômes : Aide à l'orientation</div>
  21.         <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }}">
  22.             <div class="diplome-aide position-relative">
  23.                 <div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row">
  24.                     {#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
  25.                     <div class="steps setup-panel d-flex justify-content-between position-relative">
  26.                         <div class="stepwizard-step step1 text-center">
  27.                             <a href="#step-1" type="button" class="btn clicked position-relative" disabled="disabled">
  28.                                 <strong class="btn1 position-relative">1</strong>
  29.                                 <small class="d-flex two mt-4">Séries</small>
  30.                             </a>
  31.                         </div>
  32.                         <div class="stepwizard-step step2 text-center">
  33.                             <a href="#step-2" type="button" class="btn position-relative" disabled="disabled">
  34.                                 <strong class="btn2 position-relative">2</strong>
  35.                                 <small class="d-flex justify-content-center three mt-4">Options</small>
  36.                             </a>
  37.                         </div>
  38.                     </div>
  39.                 </div>
  40.                 <form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
  41.                     <div class="setup-content" id="step-1">
  42.                         <div class="">
  43.                             <h2 class="title font-weight-bold text-center">Quelle série technologique envisagez-vous ?</h2>
  44.                             <div class="d-flex justify-content-center ">
  45.                                 <div class="list-items">
  46.                                     <ul class="card-three-columns">
  47.                                     {% for filiere in filieres %}
  48.                                         {% set url = lieu is defined and lieu.slug != 'default' ? 
  49.                                         path('annuaire_liste_par_onglet_localisation', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet, "localisation": lieu.slug}) :
  50.                                         path('annuaire_liste_par_onglet', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet}) %}
  51.                                         <li class="position-relative step-diplome-li"><a href="{{url}}?filiere[]={{filiere.id}}">{{filiere | itemsLibelle | raw}}</a></li>
  52.                                     {% else %}
  53.                                         <style>
  54.                                             .list-description {
  55.                                                 display: none;
  56.                                             }
  57.                                         </style> 
  58.                                     {% endfor %}
  59.                                 </ul>
  60.                                 </div>
  61.                             </div>
  62.                         </div>
  63.                     </div>
  64.                 </form>
  65.             </div>
  66.         </div>
  67.     {% elseif (etape == 1 and position != 'footer') or affichageBas %}
  68.         <div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome" aria-expanded="true">Diplômes : Aide à l'orientation</div>
  69.         <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }} show">
  70.             <div class="diplome-aide position-relative">
  71.                 <div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row {{hideMe}}">
  72.                     {#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
  73.                     <div class="steps setup-panel d-flex justify-content-between position-relative">
  74.                         <div class="stepwizard-step step1 text-center">
  75.                             <a href="/onglet/lycee/technologique" type="button" class="btn position-relative" disabled="disabled">
  76.                                 <strong class="btn1 position-relative">1</strong>
  77.                                 <small class="d-flex two mt-4">Séries</small>
  78.                             </a>
  79.                         </div>
  80.                         <div class="stepwizard-step step2 text-center">
  81.                             <a href="#step-2" type="button" class="btn clicked position-relative" disabled="disabled">
  82.                                 <strong class="btn2 position-relative">2</strong>
  83.                                 <small class="d-flex justify-content-center three mt-4">Options</small>
  84.                             </a>
  85.                         </div>
  86.                     </div>
  87.                 </div>
  88.                 <form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
  89.                     <div class="setup-content" id="step-2">
  90.                         <div class="">
  91.                             <h2 class="title font-weight-bold text-center">Quelle option ?</h2>
  92.                             <div class="d-flex justify-content-center ">
  93.                                 <div class="list-items">
  94.                                     <ul class="card-three-columns">
  95.                                         {# Si on a un seul item on n'affiche plus ce bloc #}
  96.                                         {% if diplomes | length <= 1 %}
  97.                                             <!-- Aide aux choix : il n'y a qu'un seul item ! On n'affiche rien ici... -->
  98.                                             <style>
  99.                                                 .list-description {
  100.                                                     display: none;
  101.                                                 }
  102.                                             </style>
  103.                                         {% else %}
  104.                                             {% for diplome in diplomes %}
  105.                                                 {% set url = lieu is defined and lieu.slug != 'default' ? 
  106.                                                     path('annuaire_liste_par_onglet_localisation', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet, "localisation": lieu.slug}) :
  107.                                                     path('annuaire_liste_par_onglet', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet}) %}
  108.                                                 <li class="position-relative step-diplome-li">
  109.                                                     <a href="{{ url }}?filiere[]={{idFiliere}}&diplome[]={{diplome.id}}">{{diplome | itemsLibelle | raw}} {# if diplome.options is not empty %} - {{ diplome.options }} {% endif #}</a>
  110.                                                 </li>
  111.                                             {% else %}
  112.                                                 <style>
  113.                                                     .list-description {
  114.                                                         display: none;
  115.                                                     }
  116.                                                 </style> 
  117.                                             {% endfor %}
  118.                                         {% endif %}
  119.                                     </ul>
  120.                                 </div>
  121.                             </div>
  122.                         </div>
  123.                     </div>
  124.                 </form>
  125.             </div>
  126.         </div>
  127.     {% endif %}
  128. {% endif %} {#-- {% if niveauOnglet == 'technologique' %} --#}
  129. {% if niveauOnglet == 'general' %}
  130.     {% set eds = app.request.query.get('eds', null) %}
  131.     {% set stepLva = app.request.query.get('lva', null) %}
  132.     {% set stepLvb = app.request.query.get('lvb', null) %}
  133.     {% if eds is null %}
  134.         {% set etape = 0 %}
  135.     {% elseif stepLva is null %}
  136.         {% set etape = 1 %}
  137.     {% elseif stepLvb is null %}
  138.         {% set etape = 2 %}
  139.     {% else %}
  140.         {% set etape = 3 %}
  141.     {% endif %}
  142.     {% set idEds = app.request.query.get('eds') | first %}
  143.     {% set idDiplome = app.request.query.get('diplome') | first %}
  144.     {% set affichageBas = position == 'footer' and etape == 3 %}
  145.     {% if affichageBas %}
  146.         {% set hideMe = "d-none-important" %}
  147.     {% else %}
  148.         {% set hideMe = "" %}
  149.     {% endif %}
  150.     {% if etape == 0  %}
  151.         <div class="title-aide-dip collapsed" data-bs-toggle="collapse" data-bs-target="#stepDiplome">Lycée général : Aide à l'orientation</div>
  152.         <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }}">
  153.             <div class="diplome-aide position-relative">
  154.                 <div class="stepwizard pt-2 d-flex align-items-center flex-column flex-lg-row">
  155.                     {#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
  156.                     <div class="steps setup-panel d-flex justify-content-between position-relative">
  157.                         <div class="stepwizard-step step1 text-center">
  158.                             {# TODO ajout classe btn clicked pour le changement d'image hexagonal #}
  159.                             <a href="/onglet/lycee/general" type="button" class="btn clicked position-relative">
  160.                                 <strong class="btn1 position-relative">1</strong>
  161.                                 <small class="d-flex one mt-4">Spécialité principale</small>
  162.                             </a>
  163.                         </div>
  164.                         <div class="stepwizard-step step2 text-center">
  165.                             <a href="#step-2" type="button" class="btn position-relative" disabled="disabled">
  166.                                 <strong class="btn2 position-relative">2</strong>
  167.                                 <small class="d-flex two mt-4">LVA</small>
  168.                             </a>
  169.                         </div>
  170.                         <div class="stepwizard-step step3 text-center">
  171.                             <a href="#step-3" type="button" class="btn position-relative" disabled="disabled">
  172.                                 <strong class="btn3 position-relative">3</strong>
  173.                                 <small class="d-flex justify-content-center three mt-4">LVB</small>
  174.                             </a>
  175.                         </div>
  176.                     </div>
  177.                 </div>
  178.                 <!-- Step 1 -->
  179.                 <form role="diplome-choice" action="" method="post" class="d-flex mt-3 pt-4 pl-5 pr-5 all-steps justify-content-center">
  180.                     <div class="setup-content" id="step-1">
  181.                         <div class="">
  182.                             <h2 class="title font-weight-bold text-center pb-2">Quelle spécialité principale recherchez-vous ?</h2>
  183.                             <div class="d-flex justify-content-center ">
  184.                                 <div class="list-items mb-2">
  185.                                     <ul class="card-three-columns">
  186.                                             {% for eds in enseignementsDeSpecialite %}
  187.                                                 {% set url = lieu is defined and lieu.slug != 'default' ? 
  188.                                                         path('annuaire_liste_par_onglet_localisation', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet, "localisation": lieu.slug}) :
  189.                                                         path('annuaire_liste_par_onglet', {"niveauOnglet": niveauOnglet, "typeOnglet": typeOnglet}) %}
  190.                                                 <li class="position-relative step-diplome-li"><a href="{{url}}?eds[]={{eds.id}}">{{eds | itemsLibelle}}</a></li>
  191.                                             {% else %}
  192.                                                 <style>
  193.                                                     .list-description {
  194.                                                         display: none;
  195.                                                     }
  196.                                                 </style>                                                
  197.                                             {% endfor %}
  198.                                     </ul>
  199.                                 </div>
  200.                             </div>
  201.                         </div>
  202.                     </div>
  203.                 </form>
  204.             </div>
  205.         </div>
  206.     {% elseif etape == 1 %}
  207.         <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>
  208.         <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }} show">
  209.             <div class="diplome-aide position-relative">
  210.                 <div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row">
  211.                     {#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
  212.                     <div class="steps setup-panel d-flex justify-content-between position-relative">
  213.                         <div class="stepwizard-step step1 text-center">
  214.                             <a href="/onglet/lycee/general" type="button" class="btn position-relative">
  215.                                 <strong class="btn1 position-relative">1</strong>
  216.                                 <small class="d-flex one mt-4">Spécialité principale</small>
  217.                             </a>
  218.                         </div>
  219.                         <div class="stepwizard-step step2 text-center">
  220.                             <a href="#step-2" type="button" class="btn clicked position-relative" disabled="disabled">
  221.                                 <strong class="btn2 position-relative">2</strong>
  222.                                 <small class="d-flex two mt-4">LVA</small>
  223.                             </a>
  224.                         </div>
  225.                         <div class="stepwizard-step step3 text-center">
  226.                             <a href="#step-3" type="button" class="btn position-relative" disabled="disabled">
  227.                                 <strong class="btn3 position-relative">3</strong>
  228.                                 <small class="d-flex justify-content-center three mt-4">LVB</small>
  229.                             </a>
  230.                         </div>
  231.                     </div>
  232.                 </div>
  233.                 <!-- Step 2 -->
  234.                 <form role="diplome-choice" action="" method="post" class="d-flex pt-2 pl-5 pr-5 all-steps justify-content-center">
  235.                     <div class="setup-content" id="step-2">
  236.                         <div class="">
  237.                             <h2 class="title font-weight-bold text-center">Quelle langue vivante A (LVA) ?</h2>
  238.                             <div class="d-flex justify-content-center ">
  239.                                 <div class="list-items">
  240.                                     {# TODO à dynamiser niveau de formation #}
  241.                                     <ul class="card-three-columns">
  242.                                         {% for lang in lva | filter ( lang => "-TXTS" not in lang.id ) %}
  243.                                             <li class="position-relative step-diplome-li"><a href="{{ generate_uri('lva[]', lang.id) }}">{{lang | itemsLibelle}}</a></li>
  244.                                         {% else %}
  245.                                             <style>
  246.                                                 .list-description {
  247.                                                     display: none;
  248.                                                 }
  249.                                             </style>  
  250.                                         {% endfor %}
  251.                                     </ul>
  252.                                 </div>
  253.                             </div>
  254.                         </div>
  255.                     </div>
  256.                 </form>
  257.             </div>
  258.         </div>
  259.     {% elseif etape == 2 or (etape == 3 and position == "header") %}
  260.         <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>
  261.         <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }} show">
  262.             <div class="diplome-aide position-relative">
  263.                 <div class="stepwizard pt-2 pb-2 d-flex align-items-center flex-column flex-lg-row {{hideMe}}">
  264.                     {#<div class="font-weight-bold color"><span class="title">Diplômes : </span>Aide à l'orientation</div>#}
  265.                     <div class="steps setup-panel d-flex justify-content-between position-relative">
  266.                         <div class="stepwizard-step step1 text-center">
  267.                             <a href="/onglet/lycee/general" type="button" class="btn position-relative">
  268.                                 <strong class="btn1 position-relative">1</strong>
  269.                                 <small class="d-flex one mt-4">Spécialité principale</small>
  270.                             </a>
  271.                         </div>
  272.                         <div class="stepwizard-step step2 text-center">
  273.                             <a href="#step-2" type="button" class="btn position-relative" disabled="disabled">
  274.                                 <strong class="btn2 position-relative">2</strong>
  275.                                 <small class="d-flex two mt-4">LVA</small>
  276.                             </a>
  277.                         </div>
  278.                         <div class="stepwizard-step step3 text-center">
  279.                             <a href="#step-3" type="button" class="btn clicked position-relative" disabled="disabled">
  280.                                 <strong class="btn3 position-relative">3</strong>
  281.                                 <small class="d-flex justify-content-center three mt-4">LVB</small>
  282.                             </a>
  283.                         </div>
  284.                     </div>
  285.                 </div>
  286.                 <!-- Step 3 -->
  287.                 <form role="diplome-choice" action="" method="post" class="d-flex mt-3 pl-5 pr-5 all-steps justify-content-center">
  288.                     <div class="setup-content" id="step-3">
  289.                         <div class="">
  290.                             {# TODO à dynamiser nom du diplôme #}
  291.                             <h2 class="title font-weight-bold text-center">Quelle langue vivante B (LVB) ?</h2>
  292.                             <div class="d-flex justify-content-center ">
  293.                                 <div class="list-items mb-2">
  294.                                     {# TODO à dynamiser liste diplômes #}
  295.                                     <ul class="card-three-columns">
  296.                                         {% for lang in lvb | filter ( lang => "-TXTS" not in lang.id ) %}
  297.                                             <li class="position-relative step-diplome-li"><a href="{{ generate_uri('lvb[]', lang.id) }}">{{lang | itemsLibelle}}</a></li>
  298.                                         {% else %}
  299.                                             <style>
  300.                                                 .list-description {
  301.                                                     display: none;
  302.                                                 }
  303.                                             </style>  
  304.                                         {% endfor %}
  305.                                     </ul>
  306.                                 </div>
  307.                             </div>
  308.                         </div>
  309.                     </div>
  310.                 </form>
  311.             </div>
  312.         </div>
  313.     {% endif %}
  314. {% endif %}
  315. {% if niveauOnglet != 'technologique' and niveauOnglet != 'general' %}
  316.         <div class="title-aide-dip" data-bs-toggle="collapse" data-bs-target="#stepDiplome">Lycée : Aide à l'orientation</div>
  317.         <div id="stepDiplome" class="collapse p-4 mb-3 step-diplome {{ typeOnglet }}">
  318.             <div class="diplome-aide position-relative">
  319.                 <form role="diplome-choice" action="" method="post" class="d-flex mt-3 pl-5 pr-5 all-steps justify-content-center">
  320.                     <div class="setup-content" id="step-1">
  321.                         <div class="">
  322.                             <h2 class="title font-weight-bold text-center">Quel type d’enseignement recherchez-vous ?</h2>
  323.                             <div class="d-flex justify-content-center pt-4">
  324.                                 <div class="btn-group w-100 flex-wrap" role="group" aria-label="checkbox buttons">
  325.                                     <a class="btn col-lg mb-3" href="/onglet/lycee/general">Lycée général</a>
  326.                                     <a class="btn col-lg mb-3" href="/onglet/lycee/technologique">Lycée technologique</a>
  327.                                 </div>
  328.                             </div>
  329.                         </div>
  330.                     </div>
  331.                 </form>
  332.             </div>
  333.         </div>
  334. {% endif %}