templates/default/formations.html.twig line 1

Open in your IDE?
  1. {# BASE LOAD #}
  2. {% extends 'base.html.twig' %}
  3. {# TITLE TOP PAGE #}
  4. {% block title %}CPI | {% if app.request.locale == 'fr' %}Formation{% else %}Training{% endif %}{% endblock %}
  5. {# CSS #}
  6. {% block stylesheet %}
  7.     <link rel="stylesheet" href="{{ asset('css/formation.css')}}">
  8.     
  9. {% endblock %}
  10. {# BODY HOME PAGE #}
  11. {% block body %}
  12.  <main>
  13.  
  14.                                  <!-- AJOUT DU CMS -->
  15.                                     <main>
  16. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
  17. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  GESTION DES SECTION ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  18. {% set i = 0 %}
  19. {% for section in sections %}
  20. {% set i = i +1 %}
  21.           
  22. <section id="section" style="
  23.     {% if section.image %}
  24.         background-image: url(../uploads/sections/{{section.image}});
  25.         background-size: contain;
  26.         background-repeat: no-repeat;
  27.         background-color: #1D016F!important;
  28.     {% else %}
  29.         background-color:#1D016F; 
  30.     {% endif %}
  31.     {% if i > 1 %}
  32.  
  33.         margin-top:54px
  34.     {% endif %} 
  35. ">
  36. <style>
  37. .accordion-body li{
  38.     color:white;
  39. }
  40. .accordion-body li p{
  41.     margin-bottom:0
  42. }
  43. </style>
  44. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  45. {% for res in section.lignes %}
  46.     <div  id="{% if i == 1 %}sectionMain{% else %}sectionReste{% endif %}" data-aos="fade-up" data-aos-duration="1000" style="{% if i == 1 %}padding-top:237px;padding-bottom:237px;{% else %}padding-top:112px; padding-bottom:112px;{% endif %}">
  47.         <div class="container text-light pb-3"> 
  48.             <div class="row pt-5 justify-content-center justify-content-md-start">
  49.                 {% for res2 in res.blocs %}
  50.                     <div id="bloc{{res2.id}}" data-aos="fade-up" data-aos-duration="1000" class="
  51.                         {% if res2.type == 2 %}
  52.                             col-xl-2 col-12
  53.                         {% endif %}
  54.                         {% if res2.type == 3 %}
  55.                             col-xxl-3 col-md-6 col-12
  56.                         {% endif %}
  57.                         {% if res2.type == 4 %}
  58.                             col-xxl-4 col-md-6 col-12
  59.                         {% endif %}
  60.                         {% if res2.type == 6 %}
  61.                             col-lg-6 col-12
  62.                         {% endif %}
  63.                         {% if res2.type == 8 %}
  64.                             col-12
  65.                         {% endif %}
  66.                         {% if res2.type == 12 %}
  67.                             col-12
  68.                         {% endif %}
  69.                         
  70.                     
  71.                     
  72.                     " {% if app.user %} style="border:dashed 1px grey; border-radius:10px; margin-bottom:10px"{% endif %}>
  73.                         
  74.                                     
  75.                         {% if res2.contenuses is not empty %}
  76.                             {% if res2.contenuses.0.typesContenus.id != 8 %}
  77.                             {% endif %}
  78.                         {% endif %}
  79. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->                   
  80. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   AFFCHER CONTENUS   ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  81. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  82.                         {% if res2.contenuses is not empty %}
  83.                              <!-- ///\\\ ///\\\ TEXTE ///\\\ ///\\\  -->
  84.                             {% if res2.contenuses.0.typesContenus.id == 1 %}
  85.                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  86.                                 
  87.                                 {% if res2.contenuses.0.document is not empty %}
  88.                                 <a href="{{res2.contenuses.0.document}}" target="_blank" style="text-decoration:none;">
  89.                                             <button type="button btn-modal" class="justify-content-center align-items-center text-center" 
  90.                                                 style="
  91.                                                   background-color:{{res2.contenuses.0.background}}!important; 
  92.                                                     border:solid 3px {{res2.contenuses.0.couleur1}}!important;
  93.                                                     border-radius: 30px!important;
  94.                                                     color: rgb(0, 206, 255);
  95.                                                     font-weight: bold;
  96.                                                     background-color: #0c24b3;
  97.                                                     cursor: pointer;
  98.                                                     padding-top: 12px;
  99.                                                     padding-left: 50px;
  100.                                                     padding-right: 50px;
  101.                                                     margin-top:20px
  102.                                                  
  103.                                                     
  104.                                             ">
  105.                                             {% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</button>
  106.                                         </a>
  107.                                 {% endif %}
  108.                             {% endif %}
  109.                             {% if i == 1 %}
  110.                                 {% if loop.first %}
  111.                                     <div class="traitBlanc"></div>
  112.                                 {% endif %}
  113.                             {% endif %}
  114.                             <!-- ///\\\ ///\\\ FIN TEXTE ///\\\ ///\\\  -->
  115.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  116.                             <!-- ///\\\ ///\\\ IMAGE ///\\\ ///\\\  -->
  117.                             {% if res2.contenuses is not empty %}
  118.                                 {% if res2.contenuses.0.typesContenus.id == 2 %}
  119.                                     <div  class="col-12 d-flex d-lg-block justify-content-center mt-5 mt-lg-0">
  120.                                         <img data-aos="fade-up" data-aos-duration="1000" class="img-fluid imgRadius" src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}">
  121.                                     </div>
  122.                                 {% endif %}
  123.                             {% endif %}
  124.                             <!-- ///\\\ ///\\\ FIN IMAGE ///\\\ ///\\\  -->
  125.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  126.                             <!-- ///\\\ ///\\\ VIDEOS ///\\\ ///\\\  -->
  127.                             {% if res2.contenuses is not empty %}
  128.                                 {% if res2.contenuses.0.typesContenus.id == 3 %}
  129.                                     <div data-aos="fade-up" data-aos-duration="1000" class="col-12 justify-content-center">
  130.                                         <div class="image">             
  131.                                             <iframe class="img-fluid" style="height: 165px !important; width: 100% !important; border-radius: 15px!important;" src="{{res2.contenuses.0.video}}" title="YouTube video {% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
  132.                                         </div>
  133.                                         <div class="texte">
  134.                                             <p style="font-weight:bold">
  135.                                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}
  136.                                             </p>
  137.                                         </div>
  138.                                     </div>            
  139.                                 {% endif %}
  140.                             {% endif %}
  141.                             <!-- ///\\\ ///\\\ FIN VIDEO ///\\\ ///\\\  -->
  142.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  143.                             <!-- ///\\\ ///\\\ BOX PICTO  ///\\\ ///\\\  -->
  144.                             {% if res2.contenuses is not empty %}
  145.                                 {% if res2.contenuses.0.typesContenus.id == 4 %}             
  146.                                     <div data-aos="fade-up" data-aos-duration="1000" class="carte">
  147.                                         <div class="image d-flex justify-content-center">
  148.                                             <img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}">
  149.                                         </div>
  150.                                         <div class="corps-carte">
  151.                                             <div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
  152.                                                 <p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
  153.                                             </div>
  154.                                             <div class="texte-carte" style="min-height:204px; background-color:{{res2.contenuses.0.couleur1}}">
  155.                                                 <div class="texte-1">
  156.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  157.                                                 </div>
  158.                                             </div>   
  159.                                         </div>
  160.                                     </div>
  161.                                 {% endif %}
  162.                             {% endif %}
  163.                             
  164.                             <!-- ///\\\ ///\\\ FIN BOX PICTO ///\\\ ///\\\  -->
  165.                                    
  166.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  167.                             <!-- ///\\\ ///\\\ AVANTAGES  ///\\\ ///\\\  -->
  168.                             {% if res2.contenuses is not empty %}
  169.                                 {% if res2.contenuses.0.typesContenus.id == 7 %}
  170.                                     <div data-aos="fade-up" data-aos-duration="1000" class="avantages">
  171.                                         <div class="carteA bg-bleu" style="background-color:{{res2.contenuses.0.background}}">
  172.                                             <div class="tete-carte d-flex flex-column flex-md-row">
  173.                                                 {% if res2.contenuses.0.image != '' %}
  174.                                                     <img class="img-fluid" src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="">
  175.                                                 {% endif %}
  176.                                                 <span style="font-weight:bold">{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</span>
  177.                                             </div>
  178.                                             <div class="texte-carte">
  179.                                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  180.                                             </div>
  181.                                         </div>
  182.                                     </div>
  183.                                 {% endif %}
  184.                             {% endif %}
  185.                             <!-- ///\\\ ///\\\ FIN AVANTAGES ///\\\ ///\\\  -->
  186.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  187.                             <!-- ///\\\ ///\\\ ACCORDEON  ///\\\ ///\\\  -->
  188.                             {% if res2.contenuses.0.typesContenus.id == 8 %}
  189.                                 <div data-aos="fade-up" data-aos-duration="1000" class="texteDeroulant text-light">
  190.                                     <div class="accordion" id="accordionExample">
  191.                                         {% set ac = 0 %}
  192.                                          <div style="margin-bottom:32px;">
  193.                                         {% if app.request.locale == 'fr' %}{{res2.contenuses.0.titreFr|raw}}{% else %}{{res2.contenuses.0.titreEn|raw}}{% endif %}
  194.                                         </div>
  195.                                         {% for res3 in res2.contenuses.0.accordeons %}
  196.                                             {% set ac = ac+1 %}
  197.                                             <div class="accordion-item" style="background-color:{{res3.background}}!important;">
  198.                                                 <h2 class="accordion-header" id="heading{{res3.id}}">
  199.                                                     <button class="button1-accordion accordion-button" style="background-color:{{res3.background}}!important;" type="button" data-bs-toggle="collapse" data-bs-target="#collapse{{res3.id}}" aria-expanded="true" aria-controls="collapse{{res3.id}}">
  200.                                                     <i class="fa {{ ac == 1 ? 'fa-plus-circle' : 'fa-plus-circle' }}" style="margin-right:10px;font: normal!important;" aria-hidden="true"></i>{% if app.request.locale == 'en' %}{{res3.TitreEn|raw}}{% else %}{{res3.TitreFr|raw}}{% endif %}
  201.                                                     </button>
  202.                                                 </h2>
  203.                                                         
  204.                                                 <div id="collapseOne" class="accordion-collapse collapse {% if ac == 1 %}{% endif %}" aria-labelledby="heading{{res3.id}}" data-bs-parent="#accordionExample">
  205.                                                     <div class="accordion-body">
  206.                                                         <div class="accordion-hr"></div>
  207.                                                         {% if app.request.locale == 'en' %}{{res3.TexteEn|raw}}{% else %}{{res3.TexteFr|raw}}{% endif %}   
  208.                                                     </div>
  209.                                                 </div>
  210.                                             </div>
  211.                                         {% endfor %}
  212.                                     </div>                                                        
  213.                                 </div>
  214.                                 <script>
  215.                                     $(document).ready(function () {
  216.                                         $('.accordion-button').click(function () {
  217.                                             $(this).find('i').toggleClass('fa-plus-circle fa-minus-circle');
  218.                                             $('.accordion-button').not(this).find('i').removeClass('fa-minus-circle').addClass('fa-plus-circle');
  219.                                         });
  220.                                     });
  221.                                </script>
  222.  
  223.                                 {% if app.user %}           
  224.                                     <br>
  225.                                     <div class="d-flex justify-content-center">
  226.                                         <a href="{{path('app_accordeons_index',{'contenu':res2.contenuses.0.id})}}"><button type="button"  style="margin-bottom:5px" class="btn btn-info"  >Gérer les accordéons</button></a>
  227.                                     </div>
  228.                                 {% endif %}
  229.               
  230.                             {% endif %}
  231.                             <!-- ///\\\ ///\\\ FIN ACCORDEON  ///\\\ ///\\\  -->
  232.                         {% endif %}
  233.                             
  234.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  235.                         {% if res2.contenuses is not empty %}
  236.                             <!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\  -->
  237.                             {% if res2.contenuses.0.typesContenus.id == 10 %}
  238.                                 <div data-aos="fade-up" data-aos-duration="1000" class="container d-flex paddingPerso2" >
  239.                                     <div class="slider-demo-valeur">
  240.                                         {% for carou in  res2.contenuses.0.carousels %}
  241.                                             <div data-aos="fade-up" data-aos-duration="1000" class="carte ">
  242.                                                 <div class="col-12">
  243.                                                     <div class="image d-flex justify-content-center">
  244.                                                         <img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
  245.                                                     </div>
  246.                                                     <div class="corps-carte">
  247.                                                         <div class="tete-carte">
  248.                                                             <p>{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %} </p>
  249.                                                         </div>
  250.                                                         <div class="texte-carte">
  251.                                                             <div class="texte-1">
  252.                                                                 {% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %} 
  253.                                                             </div>
  254.                                                         </div>
  255.                                                     </div>
  256.                                                 </div>
  257.                                             </div>
  258.                                         {% endfor %}
  259.                                     </div>
  260.                                 </div>
  261.                             {% endif %}
  262.                                 
  263.                             {% if app.user %}
  264.                                 {% if res2.contenuses.0.typesContenus.id == 10 %}            
  265.                                     <br>
  266.                                     <div data-aos="fade-up" data-aos-duration="1000" class="d-flex justify-content-center">
  267.                                         <a href="{{path('app_carousels_index',{'contenu':res2.contenuses.0.id})}}"><button type="button"  style="margin-bottom:5px" class="btn btn-info"  >Gérer les carousels</button></a>
  268.                                     </div>
  269.                                 {% endif %}
  270.                             {% endif %}
  271.                             <!-- ///\\\ ///\\\ FIN BOXPICTO CAROUSEL ///\\\ ///\\\  -->
  272.                         {% endif %}
  273.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  274.                         {% if res2.contenuses is not empty %}
  275.                             <!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\  -->
  276.                             {% if res2.contenuses.0.typesContenus.id == 11  %}
  277.                                 <div  class="row justify-content-center justify-content-md-start" >
  278.                                     <div class="col-12">
  279.                                         <div class="row pb-4">
  280.                                             <div class="titre ">
  281.                                                 <p class="opensans_bold_red_15">TEMOIGNAGES</p>
  282.                                             </div>
  283.                                         </div>  
  284.                                     </div> 
  285.                                 </div>
  286.                                 {% set tem = -1 %}
  287.                                 <div class="row text-light" >
  288.                                     <div class="col-12">
  289.                                         <div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
  290.                                             <div class="carousel-indicators">
  291.                                                 {% for res in temoignages %}
  292.                                                     {% set tem = tem + 1 %}
  293.                                                     <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="{{tem}}" {% if tem == 0 %}class="active" aria-current="true"{% endif %} aria-label="Slide {{tem}}"></button>
  294.                                                 {% endfor %}
  295.                                             </div>
  296.                                             {% set tem2 = -1 %}
  297.                                             <div class="carousel-inner">
  298.                                                 {% for res in temoignages %}
  299.                                                     {% set tem2 = tem2 + 1 %}
  300.                                                     <div class="carousel-item {% if tem2 == 0 %}active{% endif %}">
  301.                                                         <div class="row text-light">
  302.                                                             <h2 class="">{{res.titre}}</hé>
  303.                                                         </div>
  304.                                                         <br>
  305.                                                         <p class="citation ">{{res.texte}}</p>
  306.                                                         <br>
  307.                                                         <p style="color:red; font-weight: bold; ">{{res.auteur}}</p>  
  308.                                                     </div>
  309.                                                 {% endfor %}
  310.                                             </div>
  311.                                             <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
  312.                                                 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  313.                                                 <span class="visually-hidden">Previous</span>
  314.                                             </button>
  315.                                             <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
  316.                                                 <span class="carousel-control-next-icon" aria-hidden="true"></span>
  317.                                                 <span class="visually-hidden">Next</span>
  318.                                             </button>
  319.                                         </div>
  320.                                     </div>
  321.                                 </div>
  322.                                 {% if app.user %}
  323.                                     {% if res2.contenuses.0.typesContenus.id == 11 %}        
  324.                                         <br>
  325.                                         <div class="d-flex justify-content-center">
  326.                                             <a href="{{path('app_temoignages_index')}}"><button type="button"  style="margin-bottom:5px" class="btn btn-info"  >Gérer les témoignages</button></a>
  327.                                         </div>
  328.                                     {% endif %}
  329.                                 {% endif %}
  330.                             {% endif %}
  331.                             <!-- ///\\\ ///\\\ FIN BOX PICTO CAROUSEL ///\\\ ///\\\  -->
  332.                         {% endif %}
  333.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  334.                         {% if res2.contenuses is not empty %}
  335.                             <!-- ///\\\ ///\\\ CAROUSEL ///\\\ ///\\\  -->
  336.                                 {% if res2.contenuses.0.typesContenus.id == 9 %}
  337.                                     <div class="formation">
  338.                                         <div class="container-carousel-true">
  339.                                             <div class="slider-demo-galerie " style="padding-bottom:120px;">
  340.                                                 {% for carou in  res2.contenuses.0.carousels %}
  341.                                                     <div class="carteFormation" style="">                                       
  342.                                                         <img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
  343.                                                         {% if carou.titreEn != '' or carou.titreFr != '' %}
  344.                                                             <div class="image-overlay1">
  345.                                                                 <p class="sous-title-manufa">{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %}</p>
  346.                                                             </div>
  347.                                                         {% endif %}
  348.                                                         {% if carou.texteEn != '' or carou.texteFr != '' %}
  349.                                                             {% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %}
  350.                                                         {% endif %}
  351.                                                     </div>
  352.                                                 {% endfor %}
  353.                                             </div>
  354.                                         </div>
  355.                                     </div>
  356.                                 {% endif %}
  357.                                 
  358.                                 {% if app.user %}
  359.                                     {% if res2.contenuses.0.typesContenus.id == 9 %}              
  360.                                         <br>
  361.                                         <div class="d-flex justify-content-center">
  362.                                             <a href="{{path('app_carousels_index',{'contenu':res2.contenuses.0.id})}}"><button type="button"  style="margin-bottom:5px" class="btn btn-info"  >Gérer les carousels</button></a>
  363.                                         </div>
  364.                                     {% endif %}
  365.                                 {% endif %}
  366.                                       
  367.                             <!-- ///\\\ ///\\\ FIN CAROUSEL ///\\\ ///\\\  -->
  368.                         {% endif %}
  369.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  370.                         {% if res2.contenuses is not empty %}
  371.                             <!-- ///\\\ ///\\\ CHIFFRES CLES ///\\\ ///\\\  -->
  372.                                  {% if res2.contenuses.0.typesContenus.id == 5  %}
  373.                                     <div class="cartes-3" style="background:{{res2.contenuses.0.background}}; border-radius: 30px;">
  374.                                         <div class="carte">
  375.                                             {% if res2.contenuses.0.image is not empty %}
  376.                                                 <img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="" style="width:100%;height:100%;border-radius:25px;">
  377.                                             {% else %}
  378.                                                 <div class="titre">
  379.                                                     <p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %} </p>
  380.                                                 </div>
  381.                                                 <div class="texte">
  382.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %} 
  383.                                                 </div>
  384.                                             {% endif %}
  385.                                         </div>
  386.                                     </div>
  387.                                 {% endif %}
  388.                             <!-- ///\\\ ///\\\ FIN CHIFFRES CLES ///\\\ ///\\\  -->
  389.                         {% endif %}
  390.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  391.         
  392.                         
  393.                         {% if res2.contenuses is not empty %}
  394.                             <!-- ///\\\ ///\\\ CHIFFRES CLES 2 ///\\\ ///\\\  -->
  395.                                 {% if res2.contenuses.0.typesContenus.id == 6  %}
  396.                                     <div class="accueil4">
  397.                                         <div {% if res2.contenuses.0.titreFr|length > 4 %}id="soixante-dix"{% endif %} class="carte">
  398.                                             <div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
  399.                                                 <div class="chiffre justify-content-center" style="background-color:{{res2.contenuses.0.background}}">
  400.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %} 
  401.                                                 </div>
  402.                                             </div>
  403.                                             <div class="texte">
  404.                                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %} 
  405.                                             </div>
  406.                                         </div>
  407.                                     </div>
  408.                                 {% endif %}
  409.                             <!-- ///\\\ ///\\\ FIN CHIFFRES CLES 2 ///\\\ ///\\\  -->
  410.                         {% endif %}
  411.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  412.                         {% if res2.contenuses is not empty %}
  413.                             <!-- ///\\\ ///\\\ BOX PICTO + LIEN ///\\\ ///\\\  -->
  414.                                 {% if res2.contenuses.0.typesContenus.id == 13 %}
  415.                                     <div data-aos="fade-up" data-aos-duration="1000" class="carte">
  416.                                         <div class="image d-flex justify-content-center">
  417.                                             <img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}">
  418.                                         </div>
  419.                                         <div class="corps-carte">
  420.                                             <div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
  421.                                                 <p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
  422.                                             </div>
  423.                                             <div class="texte-carte" style="min-height:204px; background-color:{{res2.contenuses.0.couleur1}}">
  424.                                                 <div class="texte-1">
  425.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  426.                                                 </div>
  427.                                             </div>    
  428.                                         /div>
  429.                                     </div>
  430.                                 {% endif %}
  431.                             <!-- ///\\\ ///\\\ FIN BOX PICTO + LIEN ///\\\ ///\\\  -->
  432.        
  433.                         {% endif %}
  434.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  435.                         {% if res2.contenuses is not empty %}
  436.                             <!-- ///\\\ ///\\\ BOUTTON ///\\\ ///\\\  -->    
  437.                                 {% if res2.contenuses.0.typesContenus.id == 12 %}                  
  438.                                     <a href="{{res2.contenuses.0.document}}" target="_blank" style="text-decoration:none;">
  439.                                         <button type="button btn-modal" class="" 
  440.                                             style="
  441.                                                 background-color:{{res2.contenuses.0.background}}; 
  442.                                                 border:solid 3px {{res2.contenuses.0.couleur1}};
  443.                                                 border-radius: 30px!important;
  444.                                                 padding-right: 2%!important;
  445.                                                 padding-left: 2%!important;
  446.                                                 padding-top: 3%!important;   
  447.                                                 width: 400px;
  448.                                                 float:right;
  449.                                         ">
  450.                                         {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
  451.                                     </a>
  452.                                 {% endif %}
  453.                                 <!-- ///\\\ ///\\\ FIN BOUTTON ///\\\ ///\\\  --> 
  454.                         {% endif %}
  455.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  456.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  457.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  458.                         <!-- ///\\\ ///\\\ BOUTON MODIFIER CMS ///\\\ ///\\\  --> 
  459.                         {% if res2.contenuses is not empty %}
  460.                             {% if res2.contenuses.0.typesContenus.id != 10 and res2.contenuses.0.typesContenus.id != 9 %}
  461.                                 {% if app.user %}
  462.                                     <div class="d-flex justify-content-center mb-3">
  463.                                         <a href="{{path('app_editContent',{'id':res2.contenuses.0.id,'type':res2.contenuses.0.typesContenus.libelle})}}">
  464.                                             <div class="d-flex justify-content-center align-items-center cubeIcon">
  465.                                                 <i class="fa-solid fa-pen"></i>
  466.                                             </div>
  467.                                         </a>
  468.                                         
  469.                                     </div>
  470.                                 {% endif %}
  471.                             {% endif %}
  472.                         {% endif %}
  473. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->                   
  474. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    MODAL CONTENUS    ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  475. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  476. {% if app.user %}
  477.    
  478. <!-- ///\\\ ///\\\ MODAL CONTENUS ///\\\ ///\\\  --> 
  479.     <div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
  480.         <div class="modal-dialog">
  481.             <div class="modal-content">
  482.                 <div class="modal-body">
  483.                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  484.                     <div class="container-modal d-flex flex-column">
  485.                         <h2>Ajouter un contenu</h2>
  486.                         <p>Les «blocs» peuvent contenir chacun un «Contenu» dédiés à du texte, une image, un lien youtube, …</p>
  487.                     </div>
  488.                     
  489.                     <div class="container-contenu d-flex flex-wrap  justify-content-start">
  490.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
  491.                             <div class="container-picto container-picto-texte">
  492.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  493.                                     <img src="{{asset('img/cms/cpi-textes.svg')}}" alt="">
  494.                                 </div>
  495.                                 <p class="colonneText text-center">Texte</p>
  496.                             </div>
  497.                         </a>
  498.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'image'})}}">
  499.                             <div class="container-picto container-picto-texte">
  500.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  501.                                     <img src="{{asset('img/cms/cpi-images.svg')}}" alt="">
  502.                                 </div>
  503.                                 <p class="colonneText text-center">Image</p>
  504.                             </div>
  505.                         </a>
  506.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'video'})}}">
  507.                             <div class="container-picto container-picto-texte">
  508.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  509.                                     <img src="{{asset('img/cms/cpi-videos.svg')}}" alt="">
  510.                                 </div>
  511.                                 <p class="colonneText text-center">Vidéo</p>
  512.                             </div>
  513.                         </a>
  514.                        
  515.                        
  516.                       
  517.                        
  518.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'temoignage'})}}">
  519.                             <div class="container-picto container-picto-texte">
  520.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  521.                                     <img src="{{asset('img/cms/cpi-temoignage.svg')}}" alt="">
  522.                                 </div>
  523.                                 <p class="colonneText text-center">{% if app.request.locale == 'fr' %}Témoignage{% else %}Testimonial{% endif %}</p>
  524.                             </div>
  525.                         </a>
  526.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'button'})}}">
  527.                             <div class="container-picto container-picto-texte">
  528.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  529.                                     <img src="{{asset('img/cms/cpi-temoignage.svg')}}" alt="">
  530.                                 </div>
  531.                                 <p class="colonneText text-center">Bouton</p>
  532.                             </div>
  533.                         </a>     
  534.                     </div>
  535.                     <div class="modal-submit d-flex justify-content-end align-items-end">
  536.                         <button type="submit" class=" btnAdd btnAdd2">{% if app.request.locale == 'fr' %}Ajouter{% else %}Add{% endif %}</button>
  537.                     </div>
  538.                 </div>
  539.             </div>
  540.         </div> 
  541.     </div>   
  542. <!-- ///\\\ ///\\\ FIN MODAL CONTENUS ///\\\ ///\\\  -->                                                                        
  543. <!-- ///\\\ ///\\\ MODAL CONTENUS 2 ///\\\ ///\\\  -->                             
  544.     <div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
  545.         <div class="modal-dialog">
  546.             <div class="modal-content">
  547.                 <div class="modal-body">
  548.                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  549.                     <div class="container-modal d-flex flex-column">
  550.                         <h2>Ajouter un contenu</h2>
  551.                         <p>Les «blocs» sont des éléments de « Section » répartis en colonnes contenant chacun un «Contenu» dédiés à du texte, une image ou un lien youtube.</p>
  552.                     </div>
  553.                     
  554.                     <div class="container-grid-choix d-flex flex-wrap justify-content-around ">
  555.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
  556.                             <div class="container-choix">
  557.                                 <div class="simu-grid d-flex justify-content-center align-items-center">
  558.                                     <div class="simu-col simu-col-12 d-flex justify-content-center align-items-center">
  559.                                         <p>12</p>
  560.                                     </div>
  561.                                 </div>
  562.                                 <p class="colonneText text-center">Texte</p>
  563.                             </div>
  564.                         </a>
  565.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':66})}}">
  566.                         <div class="container-choix">
  567.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  568.                                 <div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
  569.                                     <p>6</p>
  570.                                 </div>
  571.                                 <div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
  572.                                     <p>6</p>
  573.                                 </div>
  574.                             </div>  
  575.                             <p class="colonneText text-center">3 colonne</p>
  576.                         </div>
  577.                     </a>
  578.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':444})}}">
  579.                         <div class="container-choix">
  580.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  581.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  582.                                     <p>4</p>
  583.                                 </div>
  584.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  585.                                     <p>4</p>
  586.                                 </div>
  587.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  588.                                     <p>4</p>
  589.                                 </div>
  590.                             </div>
  591.                             <p class="colonneText text-center">2 colonne</p>
  592.                         </div>
  593.                     </a>
  594.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':84})}}">
  595.                         <div class="container-choix">
  596.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  597.                                 <div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
  598.                                     <p>8</p>
  599.                                 </div>
  600.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  601.                                     <p>4</p>
  602.                                 </div>
  603.                             </div>
  604.                             <p class="colonneText text-center">2 colonne</p>
  605.                         </div>
  606.                     </a>
  607.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':48})}}">
  608.                         <div class="container-choix">
  609.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  610.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  611.                                     <p>4</p>
  612.                                 </div>
  613.                                 <div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
  614.                                     <p>8</p>
  615.                                 </div>                    
  616.                             </div>
  617.                             <p class="colonneText text-center">2 colonne</p>
  618.                         </div>
  619.                     </a>
  620.                 </div>
  621.                 <div class="modal-submit d-flex justify-content-end align-items-end">
  622.                     <button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
  623.                 </div>
  624.             </div>
  625.         </div>
  626.     </div> 
  627. </div>
  628. {% endif %}
  629. <!-- ///\\\ ///\\\ FIN MODAL CONTENUS 2 ///\\\ ///\\\  -->  
  630. </div>
  631. {% endfor %}                       
  632. </div>
  633. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->                   
  634. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    MODAL BLOCK       ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  635. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  636.                       
  637.                
  638.     </div>
  639. </div>
  640. {% endfor %}
  641. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->                   
  642. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    MODAL SECTION     ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  643. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  644. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->  
  645. <!-- ///\\\ ///\\\  FIN SECTION + FORME BLEU SOUS SECTION DANS LE DOM ///\\\ ///\\\  --> 
  646. </section>
  647. <div class="container">
  648.     <div class="formeBleu">
  649.         <div class="row justify-content-center d-flex">
  650.             {% if section.rond != '' %}
  651.                 <img src="{{asset('uploads/sections/'~section.rond)}}" class="img-fluid d-none d-lg-block">                        
  652.             {% endif %}
  653.         </div>
  654.     </div>
  655. </div>
  656. {% endfor %}
  657. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->                   
  658. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    SCRIPT PCONTENT   ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  659. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  660. <!-- ///\\\ ///\\\  SCRIPT ACCORDEON ///\\\ ///\\\  -->  
  661. <script>
  662.     let accordionHeaders = document.querySelectorAll('.accordion-header');
  663.     accordionHeaders.forEach(header => {
  664.         let button = header.querySelector('.texteDeroulant button');
  665.         button.addEventListener('click', function () {
  666.             let parentAccordion = header.closest('.accordion');
  667.             let buttons = parentAccordion.querySelectorAll('.texteDeroulant button');
  668.             let content = header.nextElementSibling; // The content section to show/hide
  669.             // Check if the content section is already open
  670.             if (content.classList.contains('show')) {
  671.                 // Close the content section
  672.                 content.classList.remove('show');
  673.                 content.classList.add('collapse');
  674.             } else {
  675.                 // Close all other open sections (if any) and open this content section
  676.                 buttons.forEach(btn => {
  677.                     let contentToClose = btn.parentElement.nextElementSibling;
  678.                     if (contentToClose.classList.contains('show')) {
  679.                         contentToClose.classList.remove('show');
  680.                         contentToClose.classList.add('collapse');
  681.                     }
  682.                 });
  683.                 // Open the content section
  684.                 content.classList.remove('collapse');
  685.                 content.classList.add('show');
  686.             }
  687.             // Toggle the button color
  688.             if (button.style.color !== 'red') {
  689.                 buttons.forEach(btn => {
  690.                     btn.style.color = 'white';
  691.                 });
  692.                 button.style.color = 'red';
  693.             } else {
  694.                 button.style.color = 'white';
  695.             }
  696.         });
  697.     });
  698.     let buttonsForIcon = document.querySelectorAll('.texteDeroulant button');
  699.     let icons = document.querySelectorAll('.jsIcon');
  700.     let previousIcon = null;
  701.     buttonsForIcon.forEach((button, index) => {
  702.         let icon = icons[index];
  703.         button.addEventListener('click', function () {
  704.             if (previousIcon !== null && previousIcon !== icon) {
  705.                 // Restore the previous icon to fa-plus-circle
  706.                 previousIcon.classList.remove('fa-minus-circle');
  707.                 previousIcon.classList.add('fa-plus-circle');
  708.             }
  709.             if (icon.classList.contains('fa-plus-circle')) {
  710.                 icon.classList.remove('fa-plus-circle');
  711.                 icon.classList.add('fa-minus-circle');
  712.             } else {
  713.                 icon.classList.remove('fa-minus-circle');
  714.                 icon.classList.add('fa-plus-circle');
  715.             }
  716.             previousIcon = icon;
  717.         });
  718.     });
  719. </script>
  720. </section>
  721. </main>
  722.          
  723.          
  724.         
  725.          
  726.            <script type="text/javascript">
  727.             $(document).ready(function(){
  728.                 $('.slider-demo-valeur').slick({
  729.                     arrows: true,
  730.                     infinite:true,
  731.                     prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  732.                     nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  733.                     slidesToShow:4,
  734.                     slidesToScroll:4,
  735.                     responsive:[{
  736.                         breakpoint:1400,
  737.                         settings:{
  738.                             slidesToShow:3,  
  739.                             slidesToScroll:3,            
  740.                         }
  741.                     },{
  742.                         breakpoint:1200,
  743.                         settings:{
  744.                             slidesToShow:2,
  745.                             slidesToScroll:2, 
  746.                         }
  747.                     },
  748.                     {
  749.                         breakpoint:769,
  750.                         settings:{
  751.                             slidesToShow:1,
  752.                             slidesToScroll:1, 
  753.                         }
  754.                     }],
  755.                 });
  756.             });
  757.         </script>
  758.         <script>
  759.             function changeLanguage(selectedButton, modalId) {
  760.                 let modal = document.getElementById(modalId);
  761.                 let buttons = modal.querySelectorAll(".button-langue");
  762.                 let inputField = modal.querySelector(".sectionTitle");
  763.                 
  764.                 buttons.forEach((button) => {
  765.                     if (button === selectedButton) {
  766.                         button.classList.add("button-langue-active");
  767.                         button.classList.remove("button-langue-noactive");
  768.         
  769.                         // Set the input field value based on the active language
  770.                         switch (button.textContent) {
  771.                             case "FR":
  772.                                 inputField.value = "Titre de la section FR";
  773.                                 break;
  774.                             case "EN":
  775.                                 inputField.value = "Section Title EN";
  776.                                 break;
  777.                             case "DE":
  778.                                 inputField.value = "Abschnittstitel DE";
  779.                                 break;
  780.                             // Add cases for other languages if needed
  781.                             default:
  782.                                 inputField.value = "";
  783.                         }
  784.                     } else {
  785.                         button.classList.remove("button-langue-active");
  786.                         button.classList.add("button-langue-noactive");
  787.                     }
  788.                 });
  789.             }
  790.         
  791.             function changeColor(selectedColorButton, modalId) {
  792.                 let modal = document.getElementById(modalId);
  793.                 const colorButtons = modal.querySelectorAll(".button-couleur");
  794.                 colorButtons.forEach((colorButton) => {
  795.                     if (colorButton === selectedColorButton) {
  796.                         colorButton.classList.add("button-color-active");
  797.                         colorButton.classList.remove("button-color-noactive");
  798.                     } else {
  799.                         colorButton.classList.remove("button-color-active");
  800.                         colorButton.classList.add("button-color-noactive");
  801.                     }
  802.                 });
  803.             }
  804.         
  805.             function clearDefaultText(inputField) {
  806.                 // Clear the default value if it matches the default text
  807.                 if (inputField.value === inputField.defaultValue) {
  808.                     inputField.value = '';
  809.                 }
  810.             }
  811.         
  812.             function restoreDefaultText(inputField) {
  813.                 // Restore the default value if the input is empty
  814.                 if (inputField.value === '') {
  815.                     inputField.value = inputField.defaultValue;
  816.                 }
  817.             }
  818. </script>
  819.         
  820.   
  821.        
  822. <!-- ///\\\ ///\\\  IMPORT ///\\\ ///\\\  -->  
  823. <script type="text/javascript">
  824.     $(document).ready(function() {
  825.         $('.slider-demo-galerie').slick({
  826.             arrows: true,
  827.             infinite:true,
  828.             autoplay: true, // Ajout de l'option autoplay
  829.             autoplaySpeed: 4000, // Durée de chaque diapositive en millisecondes
  830.             slidesToShow:4,
  831.             slidesToScroll:4,
  832.             prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  833.             nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  834.             responsive:[{
  835.                 breakpoint:1400,
  836.                 settings: {
  837.                     slidesToShow:3,  
  838.                     slidesToScroll:3,            
  839.                 }
  840.                 },{
  841.                     
  842.                 breakpoint:1200,
  843.                 settings:{
  844.                     slidesToShow:2,
  845.                     slidesToScroll:2, 
  846.                 }
  847.                 },
  848.                 {
  849.                 breakpoint:769,
  850.                 settings:{
  851.                     slidesToShow:1,
  852.                     slidesToScroll:1, 
  853.                 }
  854.             }],
  855.         });
  856.        
  857.         $('.slider-demo-actu').slick({
  858.             arrows: true,
  859.             infinite: true,
  860.             prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  861.             nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  862.             slidesToShow: 4,
  863.             slidesToScroll: 4,
  864.                 responsive:[{
  865.                     breakpoint:1400,
  866.                     settings:{
  867.                         slidesToShow:3,  
  868.                         slidesToScroll:3,            
  869.                     }
  870.                 },{
  871.                     breakpoint:1200,
  872.                     settings:{
  873.                         slidesToShow:2,
  874.                         slidesToScroll:2, 
  875.                     }
  876.                 },
  877.                 {
  878.                     breakpoint:769,
  879.                     settings:{
  880.                         slidesToShow:1,
  881.                         slidesToScroll:1, 
  882.                     }
  883.                 }],
  884.             });
  885.         });
  886.     </script>
  887.                                     <!-- FIN CMS -->
  888.     
  889.     <style>
  890.     .dropdown-menu{
  891.         z-index:9999!important;
  892.     }
  893.     </style>
  894.         {% set typeSelected = app.request.query.get('type') %}
  895.         {% set sujetSelected = app.request.query.get('sujet') %}
  896.         {% set logicielSelected = app.request.query.get('logiciel') %}
  897.         {% set versionSelected = app.request.query.get('version') %}
  898.         {% set formationSelected = app.request.query.get('formation') %}
  899.         <style>
  900.             .btn-dangerr{
  901.                 background-color:#30278E!important;
  902.                 font-weight:bold!important;
  903.                 color:white!important;
  904.             }
  905.         </style>
  906.         <div class="accueil2" id="formaList">
  907.             <div class="container">
  908.                 
  909.                 <div class="row change" style="padding-top: 112px;">
  910.          
  911.                        
  912.                     <div class="col-12">
  913.                         <p data-aos="fade-right" data-aos-duration="1000" class="sous-titre">{% trans %}formation-soustitre{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':84})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
  914.                         <h1 data-aos="fade-right" data-aos-duration="1000" class="primaire-blue">{% trans %}notre-catalogue-titre{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':85})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
  915.                     </div>
  916.                     <div class="tri_formations my-4" >
  917.                         <div class="col-12">
  918.                             <div class="row d-flex justify-contenttbetween">
  919.                                 
  920.                                 <div class="col-6 col-md-4 col-lg-2 d-flex justify-content-start align-items-center" style="z-index:3">
  921.                                     <div data-aos="fade-up" data-aos-duration="1000" class="dropdown my-3" >
  922.                <button class="btn {{ (typeSelected == 'all' or typeSelected is null) ? 'btn-secondary' : 'btn-dangerr' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false" style="">
  923.     {% if typeSelected and typeSelected != 'all' %}
  924.         {% for res in types %}
  925.             {% if res.id == typeSelected %}
  926.                 {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  927.                 {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  928.             {% endif %}
  929.         {% endfor %}
  930.     {% else %}
  931.         {{ app.request.locale == 'fr' ? 'Type' : 'Type' }}
  932.     {% endif %}
  933. </button>
  934.                                         <ul class="dropdown-menu" >
  935.                                             <li>
  936.     <a style="font-weight:600;" class="dropdown-item text-light font-weight-bold" href="{{ path('formations', {'type': 'all', 'sujet': sujetSelected, 'formation': formationSelected, 'logiciel': logicielSelected, 'version': versionSelected, 'locale': app.request.locale}) }}#formaList">
  937.         {% if app.request.locale == 'fr' %}Tous les Types{% else %}All Types{% endif %}
  938.     </a>
  939. </li>
  940.                                             {% for res in types %}
  941.                                                 <li><a class="dropdown-item text-light" href="{{ path('formations', {'type': res.id, 'sujet': sujetSelected, 'logiciel': logicielSelected,'formation': formationSelected, 'version': versionSelected, 'locale': app.request.locale}) }}#formaList">
  942.                                                     {% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}
  943.                                                 </a></li>
  944.                                             {% endfor %}
  945.                                         </ul>
  946.                                     </div>
  947.                                 </div>
  948.                                 <div class="col-6 col-md-4 col-lg-2 d-flex justify-content-start  align-items-center" style="z-index:4">
  949.                                     <div data-aos="fade-up" data-aos-duration="1000" class="dropdown my-3" style="">
  950.                                        <button class="btn {{ sujetSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
  951.                                             {% if sujetSelected %}
  952.                                                 {% for res in sujets %}
  953.                                                     {% if res.id == sujetSelected %}
  954.                                                         {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  955.                                                         {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  956.                                                     {% endif %}
  957.                                                 {% endfor %}
  958.                                             {% else %}
  959.                                                 {% set defaultTitle = app.request.locale == 'fr' ? 'Sujet' : 'Subject' %}
  960.                                                 {{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
  961.                                             {% endif %}
  962.                                         </button>
  963.                                         <ul class="dropdown-menu"  >
  964.                                             <li>
  965.                                                 <a style="font-weight:600;" class="dropdown-item text-light font-weight-bold" href="{{ path('formations', {'sujet': '', 'type': typeSelected,'formation': formationSelected, 'logiciel': logicielSelected, 'version': versionSelected, 'locale': app.request.locale}) }}#formaList">
  966.                                                     {% if app.request.locale == 'fr' %}Tous les Sujets{% else %}All Subjects{% endif %}
  967.                                                 </a>
  968.                                             </li>
  969.                                             {% for res in sujets %}
  970.                                                 <li><a class="dropdown-item text-light" href="{{ path('formations', {'sujet': res.id, 'type': typeSelected, 'logiciel': logicielSelected, 'formation': formationSelected,'version': versionSelected, 'locale': app.request.locale}) }}#formaList">
  971.                                                 {% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}
  972.                                                 </a></li>
  973.                                             {% endfor %}
  974.                                         </ul>
  975.                                     </div>
  976.                                 </div>
  977.                                  <div class="col-6 col-md-4 col-lg-2 d-flex justify-content-start  align-items-center" style="z-index:2">
  978.                                     <div data-aos="fade-up" data-aos-duration="1000" class="dropdown my-3" style="">
  979.                                        <button class="btn {{ logicielSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
  980.                                             {% if logicielSelected %}
  981.                                                 {% for res in logiciels %}
  982.                                                     {% if res.id == logicielSelected %}
  983.                                                         {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  984.                                                         {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  985.                                                     {% endif %}
  986.                                                 {% endfor %}
  987.                                             {% else %}
  988.                                                 {% set defaultTitle = app.request.locale == 'fr' ? 'Logiciel' : 'Software' %}
  989.                                                 {{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
  990.                                             {% endif %}
  991.                                         </button>
  992.                                         <ul class="dropdown-menu"  >
  993.                                             <li>
  994.                                                 <a style="font-weight:600;" class="dropdown-item text-light font-weight-bold" href="{{ path('formations', {'logiciel': '', 'type': typeSelected, 'sujet': sujetSelected, 'formation': formationSelected,'version': versionSelected, 'locale': app.request.locale}) }}#formaList">
  995.                                                     {% if app.request.locale == 'fr' %}Tous les Logiciels{% else %}All Software{% endif %}
  996.                                                 </a>
  997.                                             </li>
  998.                                             {% for res in logiciels %}
  999.                                                 <li>
  1000.                                                     <a class="dropdown-item text-light" href="{{ path('formations', {'logiciel': res.id, 'type': typeSelected, 'sujet': sujetSelected, 'version': versionSelected,'formation': formationSelected, 'locale': app.request.locale}) }}#formaList">
  1001.                                                     {% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}
  1002.                                                     </a>
  1003.                                                 </li>
  1004.                                             {% endfor %}
  1005.                                         </ul>
  1006.                                     </div>
  1007.                                 </div>
  1008.                                  <div class="col-6 col-md-4 col-lg-2 d-flex justify-content-start  align-items-center" style="z-index:2">
  1009.                                     <div data-aos="fade-up" data-aos-duration="1000" class="dropdown my-3" >
  1010.                                        <button class="btn {{ versionSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
  1011.                                             {% if versionSelected %}
  1012.                                                 {% for res in versions %}
  1013.                                                     {% if res.id == versionSelected %}
  1014.                                                         {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  1015.                                                         {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  1016.                                                     {% endif %}
  1017.                                                 {% endfor %}
  1018.                                             {% else %}
  1019.                                                 {% set defaultTitle = app.request.locale == 'fr' ? 'Version' : 'Version' %}
  1020.                                                 {{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
  1021.                                             {% endif %}
  1022.                                         </button>
  1023.                                         <ul class="dropdown-menu" >
  1024.                                                 <li>
  1025.                                                     <a style="font-weight:600;" class="dropdown-item text-light font-weight-bold" href="{{ path('formations', {'version': '', 'type': typeSelected, 'sujet': sujetSelected, 'logiciel': logicielSelected, 'formation': formationSelected,'locale': app.request.locale}) }}#formaList">
  1026.                                                         {% if app.request.locale == 'fr' %}Toutes les Versions{% else %}All Versions{% endif %}
  1027.                                                     </a>
  1028.                                                 </li>
  1029.                                             {% for res in versions %}
  1030.                                                 <li>
  1031.                                                     <a class="dropdown-item text-light" href="{{ path('formations', {'version': res.id, 'type': typeSelected, 'sujet': sujetSelected, 'logiciel': logicielSelected, 'formation': formationSelected,'locale': app.request.locale}) }}#formaList">
  1032.                                                     {% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}
  1033.                                                     </a>
  1034.                                                 </li>
  1035.                                             {% endfor %}
  1036.                                         </ul>
  1037.                                     </div>
  1038.                                 </div>
  1039.                                <div class="col-6 col-md-4 col-lg-2 d-flex justify-content-start align-items-center zIndexControl" style="z-index:1">
  1040.     <div data-aos="fade-up" data-aos-duration="1000" class="dropdown my-3" style="position:relative">
  1041.         <button id="dropdownButton" class="btn {{ formationSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
  1042.                                             {% if formationSelected %}
  1043.                                                 {% for res in formation %}
  1044.                                                     {% if res.titreFr == formationSelected  %}
  1045.                                                         {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  1046.                                                         {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  1047.                                                     {% endif %}
  1048.                                                 {% endfor %}
  1049.                                             {% else %}
  1050.                                                 {% set defaultTitle = app.request.locale == 'fr' ? 'Formation' : 'Training' %}
  1051.                                                 {{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
  1052.                                             {% endif %}
  1053.                                         </button>
  1054.                                         <ul class="dropdown-menu" >
  1055.                                             <li>
  1056.                                                 <a style="font-weight:600;" class="dropdown-item text-light font-weight-bold" href="{{ path('formations', {'formation': '', 'type': typeSelected, 'sujet': sujetSelected, 'logiciel': logicielSelected, 'version': versionSelected,  'locale': app.request.locale}) }}#formaList">
  1057.                                                     {% if app.request.locale == 'fr' %}Toutes les Formations{% else %}All training {% endif %}
  1058.                                                 </a>
  1059.                                             </li>
  1060.                                             {% for res in formation %}
  1061.                                                 <li>
  1062.                                                     <a class="dropdown-item text-light" href="{{ path('formations', {'formation': res.titreFr, 'type': typeSelected, 'sujet': sujetSelected, 'logiciel': logicielSelected, 'version': versionSelected, 'locale': app.request.locale}) }}#formaList">
  1063.                                                     {% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}
  1064.                                                     </a>
  1065.                                                 </li>                  
  1066.                                             {% endfor %}
  1067.                                         </ul>
  1068.                                     </div>
  1069.                                 </div>   
  1070.                                 <script>
  1071.                                 document.addEventListener('DOMContentLoaded', function () {
  1072.                                     let dropdownButton = document.getElementById('dropdownButton');
  1073.                                     let zIndexDiv = document.querySelector('.zIndexControl');
  1074.                                     dropdownButton.addEventListener('click', function () {
  1075.                                         if (dropdownButton.classList.contains('show')) {
  1076.                                             zIndexDiv.style.zIndex = '90';
  1077.                                         } else {
  1078.                                             zIndexDiv.style.zIndex = '1';
  1079.                                         }
  1080.                                     });
  1081.                                 });
  1082.                                 </script>                    
  1083.                                
  1084.                                 <div class="col-6 col-md-4 col-lg-2 d-flex justify-content-start  align-items-center" style="z-index:1" >
  1085.                                     <div data-aos="fade-up" data-aos-duration="2000" class="dropdown my-3 col-12 d-flex justify-content-start align-items-center">
  1086.                                         <a href="{{path('formations',{'locale':app.request.locale})}}#formaList"><button  class="btn btn-secondary btn-res " type="button">
  1087.                                            <i style="margin-right: 6px;" class="fas fa-arrows-rotate"></i>
  1088.                                            <p style="margin-bottom: 0;">{% if app.request.locale == 'fr' %}Réinitialiser{% else %}Reset{% endif %}</p>
  1089.                                         </button></A>
  1090.                                     </div>
  1091.                                    
  1092.                                 </div>
  1093.                                 
  1094.                             </div>
  1095.                         </div>
  1096.                     </div>
  1097.                 </div>
  1098.             </div>
  1099.             <div class="cards">
  1100.                 <div class="container">
  1101.                     <div class="row">
  1102.                         <div class="col-12">
  1103.                             <div class="row">
  1104.                                 <div class="col-12 col-lg-9">
  1105.                                     <div class="row">
  1106. {% set formationsWithDates = [] %}
  1107. {% set formationsWithoutDates = [] %}
  1108. {% set currentDate = "now"|date("Y-m-d") %}
  1109. {% set currentDateTimestamp = "now"|date("U") %}
  1110. {% for res in formations %}
  1111.     {% if res.afficher == 1 %}
  1112.         {% set closestFutureDate = null %}
  1113.         {% set mostRecentPastDate = null %}
  1114.         {% set correspondingLocation = null %}
  1115.         {# Iterate through each session to find the most relevant date #}
  1116.         {% for session in res.sessionsFormations %}
  1117.             {% if session.date is not null %}
  1118.                 {% set sessionDate = session.date|date("Y-m-d") %}
  1119.                 {# Check for closest future date or most recent past date #}
  1120.                 {% if sessionDate >= currentDate %}
  1121.                     {# Update the closest future date if this session date is closer #}
  1122.                     {% if closestFutureDate is null or sessionDate < closestFutureDate %}
  1123.                         {% set closestFutureDate = sessionDate %}
  1124.                         {% set correspondingLocation = session.lieu %} {# Assuming session.lieu is the location #}
  1125.                     {% endif %}
  1126.                 {% elseif mostRecentPastDate is null or sessionDate > mostRecentPastDate %}
  1127.                     {# Update the most recent past date if this session date is more recent #}
  1128.                     {% set mostRecentPastDate = sessionDate %}
  1129.                     {% set correspondingLocation = session.lieu %}
  1130.                 {% endif %}
  1131.             {% endif %}
  1132.         {% endfor %}
  1133.         {# Determine which date to use for the formation #}
  1134.         {% set chosenDate = closestFutureDate is not null ? closestFutureDate : mostRecentPastDate %}
  1135.         {# Add formation to the appropriate list #}
  1136.         {% if chosenDate is not null %}
  1137.             {% set formationsWithDates = formationsWithDates|merge([{ 'formation': res, 'date': chosenDate, 'location': correspondingLocation }]) %}
  1138.         {% else %}
  1139.             {% set formationsWithoutDates = formationsWithoutDates|merge([res]) %}
  1140.         {% endif %}
  1141.     {% endif %}
  1142. {% endfor %}
  1143. {# Sort formations by the closest date to the current date #}
  1144. {% set sortedFormationsWithDates = formationsWithDates|sort((a, b) => 
  1145.     (a.date|date("U") >= currentDateTimestamp ? a.date|date("U") - currentDateTimestamp : currentDateTimestamp - a.date|date("U")) 
  1146.     -
  1147.     (b.date|date("U") >= currentDateTimestamp ? b.date|date("U") - currentDateTimestamp : currentDateTimestamp - b.date|date("U"))
  1148. ) %}
  1149. {% for item in sortedFormationsWithDates %}
  1150.     <div data-aos="fade-up" data-aos-duration="1000" class="col-12 col-md-6 col-lg-4">
  1151.         <div class="card">
  1152.             <a href="{{ path('detailsFormation', {'ref': item.formation.Reference, 'locale': app.request.locale}) }}">
  1153.                 <div class="imgAnimee" style="height:260px; width:310px; border-radius:10px; display: table-cell; vertical-align: middle;">
  1154.                     <div class="hover-effect  d-flex justify-content-center align-items-center" style="margin-top: 0;">
  1155.                         <button type="button" class="btn btn-outline-light hover-btn buttonMore">{% trans %}accueil-carousel-bouton{% endtrans %}</button>
  1156.                         
  1157. <p class="hover-effcet-txt"><i class="far fa-calendar"></i> {{ item.date|date('d/m/Y') }}</p>
  1158. {# Other elements of the card... #}
  1159.                         
  1160.                         <p class="hover-effcet-txt"><i class="fas fa-user-plus"></i>{% if app.request.locale == 'fr' %}{{ item.formation.nbParticipants }} {% else %}{{ item.formation.nbParticipantsEn }} {% endif %}</p>
  1161.     <p class="hover-effcet-txt"><i class="fas fa-location-dot"></i>{{ item.location}}</p>
  1162.                     </div>
  1163.                     <div class="card-image">
  1164.                         <img src="{{ asset('uploads/formations/'~item.formation.image) }}" class="card-img-top" alt="formation" style="border-radius:0px">
  1165.                     </div>
  1166.                 </div>
  1167.                 <div class="card-body">
  1168.                     <p class="card-text" style="font-size: 28px; font-weight: 700;">{% if app.request.locale == 'fr' %}{{ item.formation.titreFr }}{% else %}{{ item.formation.titreEn }}{% endif %}</p>
  1169.                 </div>
  1170.             </a>
  1171.         </div>
  1172.     </div>
  1173. {% endfor %}
  1174. {# Display formations without dates #}
  1175. {% for res in formationsWithoutDates %}
  1176.     <div data-aos="fade-up" data-aos-duration="1000" class="col-12 col-md-6 col-lg-4">
  1177.         <div class="card">
  1178.             <a href="{{ path('detailsFormation', {'ref': res.Reference, 'locale': app.request.locale}) }}">
  1179.                 <div class="imgAnimee" style="height:260px; width:310px; border-radius:10px; display: table-cell; vertical-align: middle;">
  1180.                     <div class="hover-effect  d-flex justify-content-center align-items-center" style="margin-top: 0;">
  1181.                         <button type="button" class="btn btn-outline-light hover-btn buttonMore">{% trans %}accueil-carousel-bouton{% endtrans %}</button>
  1182.                         
  1183.                         <p class="hover-effcet-txt"><i class="far fa-calendar"></i> Nous consulter</p>
  1184.                         
  1185.                         <p class="hover-effcet-txt"><i class="fas fa-user-plus"></i> {% if app.request.locale == 'fr' %}{{ res.nbParticipants }}{% else %}{{ res.nbParticipantsEn }}{% endif %}</p>
  1186.                         <p class="hover-effcet-txt"><i class="fas fa-location-dot"></i>{% if app.request.locale == 'fr' %}A convenir{% else %}To be agreed{% endif %}</p>
  1187.                     </div>
  1188.                     <div class="card-image">
  1189.                         <img src="{{ asset('uploads/formations/'~res.image) }}" class="card-img-top" alt="formation" style="border-radius:0px">
  1190.                     </div>
  1191.                 </div>
  1192.                 <div class="card-body">
  1193.                     <p class="card-text" style="font-size: 28px; font-weight: 700;">{% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}</p>
  1194.                 </div>
  1195.             </a>
  1196.         </div>
  1197.     </div>
  1198. {% endfor %}
  1199.     <div class="btn-plannig d-flex justify-content-center" >
  1200.                                             <a href="{{path('app_planningFormation',{'locale':app.request.locale})}}" style="padding: 10px; background-color: #0048FF ; border-radius:30px ; color: white; text-decoration: none;    margin-bottom: 40px;">{% trans %}voir-planning-formation{% endtrans %}</a>{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':96})}}"><button type="button"  style="margin-left:5px" class="btn btn-warning"  ><i class="fa-solid fa-pen"></i></button></a>{% endif %}
  1201.                                         </div>
  1202.                                     </div>
  1203.                                 </div>
  1204.                                 <div data-aos="fade-up" data-aos-duration="1000" class="col-12 col-lg-3">
  1205.                                     <div class="infos">
  1206.                                         <div class="certificats pt-3">
  1207.                                             <div class="titre_traitBleu">
  1208.                                                 {% if app.user %}
  1209.                                                     <a href="{{path('app_certificats_formations_index')}}"><button type="button" class="btn btn-warning">Gestion Certificats</button></a>
  1210.                                                 {% endif %}
  1211.                                                 <div class="titre" style="margin-top: 15px;">
  1212.                                                     <img class="img-fluid" src="{{asset('img/formations/awards.svg')}}" alt="">
  1213.                                                     <p>{% trans %}certificats-titre{% endtrans %}
  1214.                                                     {% if app.user %}
  1215.                                                  
  1216.                                                         <a href="{{path('app_dictionnaire_edit',{'id':86})}}"><button type="button"  style="margin-left:5px" class="btn btn-warning"  ><i class="fa-solid fa-pen"></i></button></a>                        
  1217.                                                     
  1218.                                                     {% endif %}</p>                         
  1219.                                                 </div>
  1220.                                                 <div class="trait-bleu">
  1221.                                                     <img class="img-fluid" src="{{asset('img/recrutement/Ligne 80.svg')}}" alt="">
  1222.                                                 </div>
  1223.                                             </div>
  1224.                                             <div class="d-flex flex-lg-column flex-md-row flex-column">
  1225.                                                  {% for res in certificats %}
  1226.                                                     <div class="col-12 col-md-6 col-lg-12">
  1227.                                                         <div class="carte carte1">
  1228.                                                             <div class="titre">
  1229.                                                                 <p>{% if app.request.locale == 'fr' %}{{res.TitreFr|raw}}{% else %}{{res.TitreEn|raw}}{% endif %}</p>
  1230.                                                             </div>
  1231.                                                             <div class="logo">
  1232.                                                                 {% if res.Image != 'ok' %}
  1233.                                                                     <img class="img-fluid" src="{{ asset('uploads/certi/' ~ res.Image) }}" alt="qualiopi">
  1234.                                                                 {% endif %}
  1235.                                                             </div>
  1236.                                                             <div class="texte">
  1237.                                                                 <p>{% if app.request.locale == 'fr' %}{{res.TexteFr|raw}}{% else %}{{res.TexteEn|raw}}{% endif %}</p>
  1238.                                                                
  1239.                                                             </div>
  1240.                                                             {% if res.document != 'ok' %}
  1241.                                                              <div class="document">
  1242.                                                                 <div class="btn-plannig d-flex justify-content-center" >
  1243.                                                                     <a href="{{ asset('uploads/certi/' ~ res.document) }}" target="_blank" style="padding: 10px; background-color: #0048FF ; border-radius:30px ; color: white; text-decoration: none;   ">{% if app.request.locale == 'fr' %}Télécharger le certificat{% else %}Download certificate{% endif %} </a>
  1244.                                                                 </div>
  1245.                                                             {% endif %}
  1246.                                                                 
  1247.                                                             </div>
  1248.                                                             <hr>
  1249.                                                         </div>
  1250.                                                 {% endfor %}
  1251.                                                     
  1252.                                                 </div>
  1253.                                                 
  1254.                                                 
  1255.                                                   
  1256.                                             </div>
  1257.                                             
  1258.                                                 
  1259.                                                     <div class="col-12 col-md-6 col-lg-12 respT respMargeee">
  1260.                                                         <div class="titre_traitBleu titre_traitBleu2" style="margin-top:30px;">
  1261.                                                             {% if app.user %}
  1262.                                                                                     <a href="{{path('app_criteres_formations_index')}}"><button style="margin-bottom: 15px;" type="button" class="btn btn-warning">Gestion Critères</button></a>
  1263.                                                             {% endif %}
  1264.                                                             <div class="titre">
  1265.                                                                 <img class="img-fluid" src="{{asset('img/formations/qualiopi.png')}}" alt="">
  1266.                                                                 <p>{% trans %}critere-qualiopi-titre{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':92})}}"><button type="button"  style="margin-left:5px;z-index:99;position:relative" class="btn btn-warning"  ><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
  1267.                                                             </div>
  1268.                                                             <div class="trait-bleu">
  1269.                                                                 <img class="img-fluid" src="{{asset('img/recrutement/Ligne 80.svg')}}" alt="">
  1270.                                                             </div>
  1271.                                                         </div>
  1272.                                                     {% for res in criteres %}
  1273.                                                         <div class="carte-pourcentage">
  1274.                                                             <div class="image">
  1275.                                                                 <img src="{{asset('img/formations/Ellipse_blanche.png')}}" alt="">
  1276.                                                             </div>
  1277.                                                             <div class="chiffre">
  1278.                                                                 {{res.Nombre}}
  1279.                                                             </div>
  1280.                                                             <div class="texte">
  1281.                                                                 <p>{% if app.request.locale == 'fr' %}{{res.TexteFr|raw}}{% else %}{{res.TexteEn|raw}}{% endif %}</p>
  1282.                                                             </div>
  1283.                                                         </div>
  1284.                                                     {% endfor %}
  1285.                                                     </div>
  1286.                                                
  1287.                                                
  1288.                                             </div>
  1289.                                            
  1290.                                             
  1291.                                                 
  1292.                                                     <div class="col-12 col-md-6 col-lg-12 respT respMargeee">
  1293.                                                         <div class="titre_traitBleu titre_traitBleu2 mb-5 pb-3" style="margin-top:30px;">
  1294.                                                             {% if app.user %}
  1295.                                                                 <a href="{{path('app_catalogue_index')}}"><button style="margin-bottom: 15px;" type="button" class="btn btn-warning">Gestion Catalogue</button></a>
  1296.                                                             {% endif %}
  1297.                                                             <div class="titre">
  1298.                                                                 <img class="img-fluid" src="{{asset('img/formations/qualiopi.png')}}" alt="">
  1299.                                                                 <p>{% if app.request.locale == 'fr' %}CATALOGUE CPI{% else %}CPI CATALOG{% endif %}</p>
  1300.                                                             </div>
  1301.                                                             <div class="trait-bleu">
  1302.                                                                 <img class="img-fluid" src="{{asset('img/recrutement/Ligne 80.svg')}}" alt="">
  1303.                                                             </div>
  1304.                                                         </div>
  1305.                                                   {% for res in cataloguesFormations %}
  1306.                                                         <div class="carte-pourcentage">
  1307.                                                             {% if res.document != 'ok' %}
  1308.                                                              <div class="document">
  1309.                                                                 <div class="btn-plannig d-flex justify-content-center" >
  1310.                                                                     <a href="{{ asset('uploads/catalogueFormation/' ~ res.document) }}" target="_blank" style="padding: 10px; background-color: #0048FF ; border-radius:30px ; color: white; text-decoration: none; font-weight:500; ">{% if app.request.locale == 'fr' %}Télécharger le catalogue{% else %}Download catalog{% endif %} </a>
  1311.                                                                 </div>
  1312.                                                             {% endif %}
  1313.                                                             
  1314.                                                         </div>
  1315.                                                         <hr>
  1316.                                                     {% endfor %}
  1317.                                                     
  1318.                                                     </div>
  1319.                                            
  1320.                                                
  1321.                                             </div>
  1322.                                         
  1323.                                         <div class="agenda" style="display:none !important;">
  1324.                                             <div class="titre_traitBleu">
  1325.                                                 <div class="titre">
  1326.                                                     <img class="img-fluid" src="{{asset('img/formations/session.png')}}" alt="">
  1327.                                                     <p>PROCHAINES SESSIONS</p>
  1328.                                                 </div>
  1329.                                                 <div class="trait-bleu">
  1330.                                                     <img class="img-fluid" src="{{asset('img/recrutement/Ligne 80.svg')}}" alt="">
  1331.                                                 </div>
  1332.                                             </div>
  1333.                                             <a href="#">
  1334.                                                 <div class="carte">
  1335.                                                     <div class="date">
  1336.                                                         27 MARS 2023
  1337.                                                     </div>
  1338.                                                     <div class="texte">
  1339.                                                         <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, ratione.</p>
  1340.                                                         <hr>
  1341.                                                     </div>
  1342.                                                 </div>
  1343.                                             </a>
  1344.                                             <a href="#">
  1345.                                                 <div class="carte">
  1346.                                                     <div class="date">
  1347.                                                         27 MARS 2023
  1348.                                                     </div>
  1349.                                                     <div class="texte">
  1350.                                                         <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, ratione.</p>
  1351.                                                         <hr>
  1352.                                                     </div>
  1353.                                                 </div>
  1354.                                             </a>
  1355.                                             <a href="#">
  1356.                                                 <div class="carte">
  1357.                                                     <div class="date">
  1358.                                                         27 MARS 2023
  1359.                                                     </div>
  1360.                                                     <div class="texte">
  1361.                                                         <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, ratione.</p>
  1362.                                                         <hr>
  1363.                                                     </div>
  1364.                                                 </div>
  1365.                                             </a>
  1366.                                             <a href="#">
  1367.                                                 <div class="carte">
  1368.                                                     <div class="date">
  1369.                                                         27 MARS 2023
  1370.                                                     </div>
  1371.                                                     <div class="texte">
  1372.                                                         <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium, ratione.</p>
  1373.                                                         <hr>
  1374.                                                     </div>
  1375.                                                 </div>
  1376.                                             </a>
  1377.                                             <div class="bouton-bleu-clair my-3">
  1378.                                                 <button>Voir le planing complet</button>
  1379.                                             </div>
  1380.                                         </div>
  1381.                                     </div>
  1382.                                 </div>
  1383.                             </div>
  1384.                         </div>
  1385.                     </div>
  1386.                 </div>
  1387.             </div>
  1388.         </div>
  1389.         <div class="temoignage" style="display:none">
  1390.             <div class="container">
  1391.                 <div class="row">
  1392.                     <div class="formeBleu">
  1393.                         <div class="row justify-content-center d-flex">
  1394.                             <img src="img/formations/Groupe 197_blanc.svg" class="img-fluid">
  1395.                         </div>
  1396.                     </div>
  1397.                 </div>
  1398.                 <div style="padding-top:112px;" class="row justify-content-center justify-content-md-start">
  1399.                     <div class="col-12 col-md-6">
  1400.                         <div class="row mt-2">
  1401.                             <div class="titre">
  1402.                                 <p class="opensans_bold_red_15">TÉMOIGNAGES</p>
  1403.                             </div>
  1404.                         </div>
  1405.                     </div>
  1406.                 </div>
  1407.                 <div class="row " style="padding-bottom: 112px;">
  1408.                     <div class="col">
  1409.                         <div id="carouselExampleIndicators" class="carousel slide py-3" data-bs-ride="carousel">
  1410.                             <div class="carousel-indicators">
  1411.                                 <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
  1412.                                 <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
  1413.                                 <button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button>
  1414.                             </div>
  1415.                             <div class="carousel-inner">
  1416.                                 <div class="carousel-item active">
  1417.                                     <div class="col-12">
  1418.                                         <div class="row">
  1419.                                             <h1 class="title-citation">Aenean sed nunc imperdiet.</h1>
  1420.                                         </div>
  1421.                                         <hr>
  1422.                                         <p class="citation">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nisi mollitia illo necessitatibus vero, aspernatur nulla consequatur, dolorum reprehenderit ratione alias amet porro commodi laudantium? Quaerat quisquam tempore qui sapiente perspiciatis.</p>
  1423.                                         <p style="color:red; font-weight: bold;">JUSTO TURPIS</p>
  1424.                                         <hr>
  1425.                                     </div>
  1426.                                 </div>
  1427.                                 <div class="carousel-item">
  1428.                                     <div class="col-12">
  1429.                                         <div class="row">
  1430.                                             <h1 class="title-citation">Aenean sed nunc imperdiet.</h1>
  1431.                                         </div>
  1432.                                         <hr>
  1433.                                         <p class="citation">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nisi mollitia illo necessitatibus vero, aspernatur nulla consequatur, dolorum reprehenderit ratione alias amet porro commodi laudantium? Quaerat quisquam tempore qui sapiente perspiciatis.</p>
  1434.                                         <p style="color:red; font-weight: bold;">JUSTO TURPIS</p>
  1435.                                         <hr>
  1436.                                     </div>
  1437.                                 </div>
  1438.                                 <div class="carousel-item">
  1439.                                     <div class="col-12">
  1440.                                         <div class="row">
  1441.                                             <h1 class="title-citation">Aenean sed nunc imperdiet.</h1>
  1442.                                         </div>
  1443.                                         <hr>
  1444.                                         <p class="citation">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nisi mollitia illo necessitatibus vero, aspernatur nulla consequatur, dolorum reprehenderit ratione alias amet porro commodi laudantium? Quaerat quisquam tempore qui sapiente perspiciatis.</p>
  1445.                                         <p class="opensans_bold_red_15">JUSTO TURPIS</p>
  1446.                                         <hr>
  1447.                                     </div>
  1448.                                 </div>
  1449.                             </div>
  1450.                             <!-- Flèche précédente -->
  1451.                             <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
  1452.                                 <i class="fas fa-chevron-left"></i> <!-- Utilisation d'une icône de chevron vers la gauche -->
  1453.                                 <span class="visually-hidden">Previous</span>
  1454.                             </button>
  1455.                             <!-- Flèche suivante -->
  1456.                             <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
  1457.                                 <i class="fas fa-chevron-right"></i> <!-- Utilisation d'une icône de chevron vers la droite -->
  1458.                                 <span class="visually-hidden">Next</span>
  1459.                             </button>
  1460.                         </div>
  1461.                     </div>
  1462.                 </div>
  1463.             </div>
  1464.         </div>
  1465.     </main>
  1466. <script>
  1467.     $(document).ready(function () {
  1468.         $('.dropdown-toggle').dropdown();
  1469.     });
  1470. </script>
  1471. {% endblock %}