templates/fiche/_includes/diplomes.html.twig line 1

Open in your IDE?
  1. {% set diplome = etablissement.diplomePlus %}
  2. {% if diplome %}
  3.     <div class="fiche-infos diplome-plus">
  4.         <span class="triangle-plus"></span>
  5.         <span class="star-plus"></span>
  6.         {# ----- Diplôme + -------------------------------------------------- #}
  7.         {% if diplome %}
  8.             <div class="left">
  9.                 <a href="#bloc-formations" class="nos-formations">Nos Diplômes :</a>
  10.                 <div class="formations">
  11.                     {% if formations and formations is not empty %}
  12.                         {% set i = 0 %}
  13.                         <ul>
  14.                             {% for itemsInsertion in formations %}
  15.                                 {% if itemsInsertion.diplomePlus is same as true %}
  16.                                     {% if itemsInsertion.pere == 'LYC-FORMA2021' or itemsInsertion.pere == 'LYC' or itemsInsertion.pere == 'LYC-FORMA2021-SPEC' or itemsInsertion.pere == 'LYC-FORMA2021-GFACU' %}
  17.                                         {% if i == 0 %}<li><a href="#{{ itemsInsertion.id }}" class="title">Bac Général</a>{% endif %}
  18.                                         {% set i = i +1 %}
  19.                                     {% else %}
  20.                                         <li><a href="#{{ itemsInsertion.id }}" class="title">{{ itemsInsertion | itemLibelle | raw }} {{ itemsInsertion | itemOptions | raw }}</a></li>
  21.                                     {% endif %}
  22.                                 {% endif %}
  23.                             {% endfor %}
  24.                         </ul>
  25.                     {% endif %}
  26.                 </div>
  27.             </div>
  28.             <div class="right">
  29.                 <a href="#bloc-formations">En savoir plus</a>
  30.             </div>
  31.         {% endif %}
  32.     </div>
  33. {% endif %}