templates/default/baseOutils.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' %}Base Outils{% else %}Custting Tool Base{% endif %}{% endblock %}
  5. {# CSS #}
  6. {% block stylesheet %}
  7.     <meta property="og:image" content="{{asset('img/industrialisation/expertise.png')}}">
  8.     {# CSS DU CMS #}
  9.     <link rel="stylesheet" href="{{ asset('css/cmsContent.css')}}">
  10.     <link rel="stylesheet" href="{{ asset('css/cms.css')}}">
  11.     {# / #}
  12.     <link rel="stylesheet" href="{{asset('slick/slick.css')}}">
  13.     <link rel="stylesheet" href="{{asset('slick/slick-theme.css')}}">
  14. {% endblock %}
  15. {# BODY HOME PAGE #}
  16. {% block body %}
  17. <main>
  18. {% if ip == '90.63.222.84' or ip =='193.148.82.168' or ip =='5.48.160.74' %}
  19. {# CMS LOAD ADMIN MODE #}
  20. {% if app.user %}
  21.     {% include 'cms.html.twig' %}
  22. {% endif %}
  23. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
  24. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  GESTION DES SECTION ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  25. {% set i = 0 %}
  26. {% for section in sections %}
  27. {% set i = i +1 %}
  28.           
  29. <section id="section{{section.id}}" style="
  30.     {% if section.image %}
  31.         background-image: url(../uploads/sections/{{section.image}});
  32.         background-size: contain;
  33.         background-repeat: repeat-x;
  34.         background-color: #190D6F;
  35.     {% else %}
  36.         background-color:{{section.color}}; 
  37.     {% endif %}
  38.     {% if i > 1 %}
  39.         margin-top:-54px
  40.     {% endif %} 
  41. ">
  42. <style>
  43. main{
  44.     overflow: hidden;
  45. }
  46. .accordion-body li{
  47.     color:white;
  48. }
  49. .accordion-body li p{
  50.     margin-bottom:0
  51. }
  52. .opensans_bold_40{
  53.     margin-bottom:60px!important;
  54. }
  55. .slick-prev {
  56.     color:red!important;
  57.     top:-120px!important;
  58.        color:#30278d!important;
  59. }
  60. .slick-prev:before {
  61.     content: url(../img/flèche_gauche-bo.svg)!important;
  62.     transition:1s all;
  63. }
  64. .slick-next:before {
  65.     content: url(../img/flèche_droite_bo.svg)!important;
  66.         transition:1s all;
  67. }
  68. .slick-next {
  69.     color:red!important;
  70.     top:-120px!important;
  71.         color:#30278d!important;
  72. }
  73. #bloc154 img{
  74.     width:50%;
  75.     border-radius:0px!important;
  76. }
  77. #bloc609{
  78.     display:flex;
  79.     justify-content:center;
  80. }
  81. @media screen and (max-width: 990px){
  82. .tete-carte p:last-child {
  83.     bottom: 29px!important;
  84. }
  85. .slick-prev {
  86.     color:red!important;
  87.     top:-80px!important;
  88. }
  89. .slick-next {
  90.     color:red!important;
  91.     top:-80px!important;
  92. }
  93. .opensans_bold_40{
  94.     margin-bottom:20px!important;
  95. }
  96. }
  97. </style>
  98. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  99. {% set y = 0 %}
  100. {% for res in section.lignes %}
  101. {% set y = y+1 %}
  102.     <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;
  103.     {% else %}
  104.     {% if i > 1 %}
  105.     padding-top:112px; padding-bottom:112px;
  106.     {% endif %}
  107.     {% if y > 1 %}
  108.     padding-top:0; padding-bottom:112px;
  109.     {% endif %}
  110.     
  111.     {% endif %}">
  112.         <div class="container text-light pb-3"> 
  113.             <div class="row pt-5 justify-content-center justify-content-md-start">
  114.               {% if app.user %}
  115.                             <a href="{{path('app_deleteLigne',{'id':res.id,'pages':page.id} )}}" onclick="return confirm('Êtes-vous sûr ?')">
  116.                                 <div class="d-flex justify-content-end">
  117.                                     <div class="d-flex justify-content-center align-items-center cubeIcon2">
  118.                                         <i class="fa-solid fa-trash"></i>
  119.                                     </div>
  120.                                 </div>
  121.                             </a>
  122.                         {% endif %}
  123.                 {% for res2 in res.blocs %}
  124.                     <div id="bloc{{res2.id}}" data-aos="fade-up" data-aos-duration="1000" class="
  125.                         {% if res2.type == 2 %}
  126.                             col-xl-2 col-12
  127.                         {% endif %}
  128.                         {% if res2.type == 3 %}
  129.                             col-xxl-3 col-md-6 col-12
  130.                         {% endif %}
  131.                         {% if res2.type == 4 %}
  132.                             col-xxl-4 col-md-6 col-12
  133.                         {% endif %}
  134.                         {% if res2.type == 6 %}
  135.                             col-lg-6 col-12
  136.                         {% endif %}
  137.                         {% if res2.type == 8 %}
  138.                             col-12
  139.                         {% endif %}
  140.                         {% if res2.type == 12 %}
  141.                             col-12
  142.                         {% endif %}
  143.                         
  144.                     
  145.                     
  146.                     " {% if app.user %} style="border:dashed 1px grey; border-radius:10px; margin-bottom:10px"{% endif %}>
  147.                         
  148.                                     
  149.                         {% if res2.contenuses is not empty %}
  150.                             {% if res2.contenuses.0.typesContenus.id != 8 %}
  151.                             {% endif %}
  152.                         {% endif %}
  153. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->                   
  154. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   AFFCHER CONTENUS   ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  155. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  156.                         {% if res2.contenuses is not empty %}
  157.                             <!-- ///\\\ ///\\\ TEXTE ///\\\ ///\\\  -->
  158.                             {% if res2.contenuses.0.typesContenus.id == 1 %}
  159.                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  160.                                 
  161.                                 {% if res2.contenuses.0.document is not empty %}
  162.                                 <a href="{{res2.contenuses.0.document}}" target="_blank" style="text-decoration:none;">
  163.                                             <button type="button btn-modal" class="justify-content-center align-items-center text-center" 
  164.                                                 style="
  165.                                                   background-color:{{res2.contenuses.0.background}}!important; 
  166.                                                     border:solid 3px {{res2.contenuses.0.couleur1}}!important;
  167.                                                     border-radius: 30px!important;
  168.                                                     color: rgb(0, 206, 255);
  169.                                                     font-weight: bold;
  170.                                                     background-color: #0c24b3;
  171.                                                     cursor: pointer;
  172.                                                     padding-top: 12px;
  173.                                                     padding-left: 50px;
  174.                                                     padding-right: 50px;
  175.                                                     margin-top:20px
  176.                                                  
  177.                                                     
  178.                                             ">
  179.                                             {% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</button>
  180.                                         </a>
  181.                                 {% endif %}
  182.                             {% endif %}
  183.                             {% if i == 1 %}
  184.                                 {% if loop.first %}
  185.                                     <div class="traitBlanc"></div>
  186.                                 {% endif %}
  187.                             {% endif %}
  188.                             <!-- ///\\\ ///\\\ FIN TEXTE ///\\\ ///\\\  -->
  189.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  190.                             <!-- ///\\\ ///\\\ IMAGE ///\\\ ///\\\  -->
  191.                             {% if res2.contenuses is not empty %}
  192.                                 {% if res2.contenuses.0.typesContenus.id == 2 %}
  193.                                     <div  class="col-12 d-flex  mt-lg-0 justify-content-{{res2.contenuses.0.background}}">
  194.                                     {% if res2.contenuses.0.lien %}
  195.                                     <a href="{{res2.contenuses.0.lien}}" target="_blank">
  196.                                     {% endif %}
  197.                                         <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 %}">
  198.                                     
  199.                                     {% if res2.contenuses.0.lien %}
  200.                                     </a>
  201.                                     {% endif %}
  202.                                     </div>
  203.                                 {% endif %}
  204.                             {% endif %}
  205.                             <!-- ///\\\ ///\\\ FIN IMAGE ///\\\ ///\\\  -->
  206.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  207.                             <!-- ///\\\ ///\\\ VIDEOS ///\\\ ///\\\  -->
  208.                             {% if res2.contenuses is not empty %}
  209.                                 {% if res2.contenuses.0.typesContenus.id == 3 %}
  210.                                     <div data-aos="fade-up" data-aos-duration="1000" class="col-12 justify-content-center">
  211.                                         <div class="image">             
  212.                                             <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>
  213.                                         </div>
  214.                                         <div class="texte">
  215.                                             <p style="font-weight:bold">
  216.                                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}
  217.                                             </p>
  218.                                         </div>
  219.                                     </div>            
  220.                                 {% endif %}
  221.                             {% endif %}
  222.                             <!-- ///\\\ ///\\\ FIN VIDEO ///\\\ ///\\\  -->
  223.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  224.                             <!-- ///\\\ ///\\\ BOX PICTO  ///\\\ ///\\\  -->
  225.                             {% if res2.contenuses is not empty %}
  226.                                 {% if res2.contenuses.0.typesContenus.id == 4 %}  
  227.                                 <div class="cartes-2">           
  228.                                     <div data-aos="fade-up" data-aos-duration="1000" class="carte">
  229.                                         <div class="image d-flex justify-content-center">
  230.                                             <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 %}">
  231.                                         </div>
  232.                                         <div class="corps-carte">
  233.                                             <div class="tete-carte" style="background-color:{{res2.contenuses.0.background}};">
  234.                                                 <p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
  235.                                             </div>
  236.                                             <div class="texte-carte" style="min-height: 370px!important; background-color:{{res2.contenuses.0.couleur1}}">
  237.                                                 <div class="texte-1" style="min-height: 161px;">
  238.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  239.                                                 </div>
  240.                                                 {% if res2.contenuses.0.video is not empty %}
  241.                                                     <div class="button-carte">
  242.                                                         <a href="{{res2.contenuses.0.video}}" >
  243.                                                             <button class="buttonMore">En savoir plus</button>
  244.                                                         </a>
  245.                                                     </div>
  246.                                                 {% endif %}
  247.                                             </div>   
  248.                                         </div>
  249.                                     </div>
  250.                                 </div>
  251.                                 {% endif %}
  252.                             {% endif %}
  253.                             
  254.                             <!-- ///\\\ ///\\\ FIN BOX PICTO ///\\\ ///\\\  -->
  255.                                    
  256.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  257.                             <!-- ///\\\ ///\\\ AVANTAGES  ///\\\ ///\\\  -->
  258.                             {% if res2.contenuses is not empty %}
  259.                                 {% if res2.contenuses.0.typesContenus.id == 7 %}
  260.                                     <div data-aos="fade-up" data-aos-duration="1000" class="avantages">
  261.                                         <div class="carteA bg-bleu" style="background-color:{{res2.contenuses.0.background}}">
  262.                                             <div class="tete-carte d-flex ">
  263.                                                 {% if res2.contenuses.0.image != '' %}
  264.                                                     <img class="img-fluid" src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="">
  265.                                                 {% endif %}
  266.                                                 <span style="font-weight:bold">{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</span>
  267.                                             </div>
  268.                                             <div class="texte-carte">
  269.                                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  270.                                             </div>
  271.                                         </div>
  272.                                     </div>
  273.                                 {% endif %}
  274.                             {% endif %}
  275.                             <!-- ///\\\ ///\\\ FIN AVANTAGES ///\\\ ///\\\  -->
  276.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  277.                             <!-- ///\\\ ///\\\ ACCORDEON  ///\\\ ///\\\  -->
  278.                             {% if res2.contenuses.0.typesContenus.id == 8 %}
  279.                                 <div data-aos="fade-up" data-aos-duration="1000" class="texteDeroulant text-light">
  280.                                     <div class="accordion" id="accordionExample">
  281.                                         {% set ac = 0 %}
  282.                                          <div style="margin-bottom:32px;">
  283.                                         {% if app.request.locale == 'fr' %}{{res2.contenuses.0.titreFr|raw}}{% else %}{{res2.contenuses.0.titreEn|raw}}{% endif %}
  284.                                         </div>
  285.                                         {% for res3 in res2.contenuses.0.accordeons %}
  286.                                             {% set ac = ac+1 %}
  287.                                             <div class="accordion-item" style="background-color:{{res3.background}}!important;">
  288.                                                 <h2 class="accordion-header" id="heading{{res3.id}}">
  289.                                                     <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}}">
  290.                                                     <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 %}
  291.                                                     </button>
  292.                                                 </h2>
  293.                                                         
  294.                                                 <div id="collapseOne" class="accordion-collapse collapse {% if ac == 1 %}{% endif %}" aria-labelledby="heading{{res3.id}}" data-bs-parent="#accordionExample">
  295.                                                     <div class="accordion-body">
  296.                                                         <div class="accordion-hr"></div>
  297.                                                         {% if app.request.locale == 'en' %}{{res3.TexteEn|raw}}{% else %}{{res3.TexteFr|raw}}{% endif %}   
  298.                                                     </div>
  299.                                                 </div>
  300.                                             </div>
  301.                                         {% endfor %}
  302.                                     </div>                                                        
  303.                                 </div>
  304.                                 <script>
  305.                                     $(document).ready(function () {
  306.                                         $('.accordion-button').click(function () {
  307.                                             $(this).find('i').toggleClass('fa-plus-circle fa-minus-circle');
  308.                                             $('.accordion-button').not(this).find('i').removeClass('fa-minus-circle').addClass('fa-plus-circle');
  309.                                         });
  310.                                     });
  311.                                </script>
  312.  
  313.                                 {% if app.user %}           
  314.                                     <br>
  315.                                     <div class="d-flex justify-content-center">
  316.                                         <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>
  317.                                     </div>
  318.                                 {% endif %}
  319.               
  320.                             {% endif %}
  321.                             <!-- ///\\\ ///\\\ FIN ACCORDEON  ///\\\ ///\\\  -->
  322.                         {% endif %}
  323.                             
  324.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  325.                         {% if res2.contenuses is not empty %}
  326.                             <!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\  -->
  327.                             {% if res2.contenuses.0.typesContenus.id == 10 %}
  328.                                 <div data-aos="fade-up" data-aos-duration="1000" class="container d-flex paddingPerso2" >
  329.                                     <div class="slider-demo-valeur">
  330.                                         {% for carou in  res2.contenuses.0.carousels|sort((a, b) => a.ordre < b.ordre ? -1 : 1) %}
  331.                                             <div data-aos="fade-up" data-aos-duration="1000" class="carte " style="padding-left: 15px!important;padding-right: 15px;!important">
  332.                                                 <div class="col-12">
  333.                                                     <div class="image d-flex justify-content-center">
  334.                                                         <img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
  335.                                                     </div>
  336.                                                     <div class="corps-carte">
  337.                                                         <div class="tete-carte">
  338.                                                             <p>{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %} </p>
  339.                                                         </div>
  340.                                                         <div class="texte-carte">
  341.                                                             <div class="texte-1">
  342.                                                                 {% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %} 
  343.                                                             </div>
  344.                                                         </div>
  345.                                                     </div>
  346.                                                 </div>
  347.                                             </div>
  348.                                         {% endfor %}
  349.                                     </div>
  350.                                 </div>
  351.                             {% endif %}
  352.                                 
  353.                             {% if app.user %}
  354.                                 {% if res2.contenuses.0.typesContenus.id == 10 %}            
  355.                                     <br>
  356.                                     <div data-aos="fade-up" data-aos-duration="1000" class="d-flex justify-content-center">
  357.                                         <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>
  358.                                     </div>
  359.                                 {% endif %}
  360.                             {% endif %}
  361.                             <!-- ///\\\ ///\\\ FIN BOXPICTO CAROUSEL ///\\\ ///\\\  -->
  362.                         {% endif %}
  363.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  364.                         {% if res2.contenuses is not empty %}
  365.                             <!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\  -->
  366.                             {% if res2.contenuses.0.typesContenus.id == 11  %}
  367.                                 <div  class="row justify-content-center justify-content-md-start" >
  368.                                     <div class="col-12">
  369.                                         <div class="row pb-4">
  370.                                             <div class="titre ">
  371.                                                 <p class="opensans_bold_red_15">TEMOIGNAGES</p>
  372.                                             </div>
  373.                                         </div>  
  374.                                     </div> 
  375.                                 </div>
  376.                                 {% set tem = -1 %}
  377.                                 <div class="row text-light" >
  378.                                     <div class="col-12">
  379.                                         <div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
  380.                                             <div class="carousel-indicators">
  381.                                                 {% for res in temoignages %}
  382.                                                     {% set tem = tem + 1 %}
  383.                                                     <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>
  384.                                                 {% endfor %}
  385.                                             </div>
  386.                                             {% set tem2 = -1 %}
  387.                                             <div class="carousel-inner">
  388.                                                 {% for res in temoignages %}
  389.                                                     {% set tem2 = tem2 + 1 %}
  390.                                                     <div class="carousel-item {% if tem2 == 0 %}active{% endif %}">
  391.                                                         <div class="row text-light">
  392.                                                             <h2 class="">{{res.titre}}</hé>
  393.                                                         </div>
  394.                                                         <br>
  395.                                                         <p class="citation ">{{res.texte}}</p>
  396.                                                         <br>
  397.                                                         <p style="color:red; font-weight: bold; ">{{res.auteur}}</p>  
  398.                                                     </div>
  399.                                                 {% endfor %}
  400.                                             </div>
  401.                                             <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
  402.                                                 <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  403.                                                 <span class="visually-hidden">Previous</span>
  404.                                             </button>
  405.                                             <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
  406.                                                 <span class="carousel-control-next-icon" aria-hidden="true"></span>
  407.                                                 <span class="visually-hidden">Next</span>
  408.                                             </button>
  409.                                         </div>
  410.                                     </div>
  411.                                 </div>
  412.                                 {% if app.user %}
  413.                                     {% if res2.contenuses.0.typesContenus.id == 11 %}        
  414.                                         <br>
  415.                                         <div class="d-flex justify-content-center">
  416.                                             <a href="{{path('app_temoignages_index')}}"><button type="button"  style="margin-bottom:5px" class="btn btn-info"  >Gérer les témoignages</button></a>
  417.                                         </div>
  418.                                     {% endif %}
  419.                                 {% endif %}
  420.                             {% endif %}
  421.                             <!-- ///\\\ ///\\\ FIN BOX PICTO CAROUSEL ///\\\ ///\\\  -->
  422.                         {% endif %}
  423.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  424.                         {% if res2.contenuses is not empty %}
  425.                             <!-- ///\\\ ///\\\ CAROUSEL ///\\\ ///\\\  -->
  426.                               
  427.                              
  428.                                 
  429.                                     {% if res2.contenuses.0.typesContenus.id == 9 %}
  430.                                     <div class="carouselcms">
  431.                                             <div class="slider-cms">
  432.                                                 {% for carou in res2.contenuses.0.carousels|sort((a, b) => a.ordre < b.ordre ? -1 : 1)%}
  433.                                                     <div class="carte-slider-cms d-flex flex-column"  >        
  434.                                                         <div class="container-img-slider-cms">                               
  435.                                                             <img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
  436.                                                         </div>
  437.                                                         {% if carou.titreEn != '' or carou.titreFr != '' %}
  438.                                                         <div class="container-titre-slider-cms"> 
  439.                                                             <h3 class="opensans_bold_32">{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %}</h3>   
  440.                                                         </div>
  441.                                                         {% endif %}
  442.                                                         {% if carou.texteEn != '' or carou.texteFr != '' %}
  443.                                                             <div class="container-text-slider-cms"> 
  444.                                                                 <p>{% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %}</p>
  445.                                                             </div>
  446.                                                         {% endif %}
  447.                                                      
  448.                             
  449.                                                     </div>
  450.                                                 {% endfor %}
  451.                                             </div>
  452.                                     </div>
  453.                                        {% endif %}
  454.                                    
  455.                                     <style>
  456.                                     
  457.                                         .carouselcms{
  458.                                             width:100%;
  459.                                         
  460.                                         }
  461.                                         .slider-cms{
  462.                                             width:100%;
  463.                                            
  464.                                             height: 100%;
  465.                                             
  466.                                         }
  467.                                         .carte-slider-cms{
  468.                                           
  469.                                             padding-left: 5px;
  470.                                             padding-right: 5px;
  471.                                             height:100%;
  472.                                             
  473.                                             
  474.                                         }
  475.                                          .container-img-slider-cms {
  476.                                             width: 100%;
  477.                                             height: 220px;
  478.                                        
  479.                                            
  480.                                             
  481.                                         }
  482.                                         .container-img-slider-cms img{
  483.                                             width: 100%;
  484.                                             height: 100%;
  485.                                             border-radius:30px;
  486.                                             
  487.                                             
  488.                                         }
  489.                                 
  490.                                         .container-titre-slider-cms{
  491.                                   
  492.                                             height:60px;
  493.                                             padding:0;
  494.                                             margin:0;
  495.                                         }
  496.                                             .container-titre-slider-cms h3 p{
  497.                                            color:#30278d!important;
  498.                                            font-size: 26px!important;
  499.                                            margin-top:20px;
  500.                                            margin-left:2px;
  501.                                         }
  502.                                         .container-text-slider-cms{
  503.                                             height:180px;
  504.                                         }
  505.                                          .container-text-slider-cms p{
  506.                                             color: white;
  507.                                             font-weight: 100;
  508.                                             font-size:14px;
  509.                                             margin-left:2px;
  510.                                             padding-right:20px;
  511.                                         }
  512.                                             
  513.                                   
  514.                                         .slick-slide img {
  515.                                          
  516.                                             object-fit: cover!important;
  517.                                         }
  518.                                     </style>
  519.                                
  520.                                   
  521.                                 
  522.                                 
  523.                                 {% if app.user %}
  524.                                     {% if res2.contenuses.0.typesContenus.id == 9 %}              
  525.                                         <br>
  526.                                         <div class="d-flex justify-content-center">
  527.                                             <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>
  528.                                         </div>
  529.                                     {% endif %}
  530.                                 {% endif %}
  531.                                       
  532.                             <!-- ///\\\ ///\\\ FIN CAROUSEL ///\\\ ///\\\  -->
  533.                         {% endif %}
  534.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  535.                         {% if res2.contenuses is not empty %}
  536.                             <!-- ///\\\ ///\\\ CHIFFRES CLES ///\\\ ///\\\  -->
  537.                                  {% if res2.contenuses.0.typesContenus.id == 5  %}
  538.                                     <div class="cartes-3" style="background:{{res2.contenuses.0.background}}; border-radius: 30px;">
  539.                                         <div class="carte">
  540.                                             {% if res2.contenuses.0.image is not empty %}
  541.                                                 <img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="" style="width:100%;height:100%;border-radius:25px;">
  542.                                             {% else %}
  543.                                                 <div class="titre">
  544.                                                     <p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %} </p>
  545.                                                 </div>
  546.                                                 <div class="texte">
  547.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %} 
  548.                                                 </div>
  549.                                             {% endif %}
  550.                                         </div>
  551.                                     </div>
  552.                                 {% endif %}
  553.                             <!-- ///\\\ ///\\\ FIN CHIFFRES CLES ///\\\ ///\\\  -->
  554.                         {% endif %}
  555.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  556.         
  557.                         
  558.                         {% if res2.contenuses is not empty %}
  559.                             <!-- ///\\\ ///\\\ CHIFFRES CLES 2 ///\\\ ///\\\  -->
  560.                                 {% if res2.contenuses.0.typesContenus.id == 6  %}
  561.                                     <div class="accueil4">
  562.                                         <div {% if res2.contenuses.0.titreFr|length > 4 %}id="soixante-dix"{% endif %} class="carte">
  563.                                             <div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
  564.                                                 <div class="chiffre justify-content-center" style="background-color:{{res2.contenuses.0.background}}">
  565.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %} 
  566.                                                 </div>
  567.                                             </div>
  568.                                             <div class="texte">
  569.                                                 {% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %} 
  570.                                             </div>
  571.                                         </div>
  572.                                     </div>
  573.                                 {% endif %}
  574.                             <!-- ///\\\ ///\\\ FIN CHIFFRES CLES 2 ///\\\ ///\\\  -->
  575.                         {% endif %}
  576.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  577.                         {% if res2.contenuses is not empty %}
  578.                             <!-- ///\\\ ///\\\ BOX PICTO + LIEN ///\\\ ///\\\  -->
  579.                                 {% if res2.contenuses.0.typesContenus.id == 13 %}
  580.                                     <div data-aos="fade-up" data-aos-duration="1000" class="carte">
  581.                                         <div class="image d-flex justify-content-center">
  582.                                             <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 %}">
  583.                                         </div>
  584.                                         <div class="corps-carte">
  585.                                             <div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
  586.                                                 <p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
  587.                                             </div>
  588.                                             <div class="texte-carte" style="min-height:204px; background-color:{{res2.contenuses.0.couleur1}}">
  589.                                                 <div class="texte-1">
  590.                                                     {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
  591.                                                 </div>
  592.                                                 
  593.                                             </div>    
  594.                                         </div>
  595.                                     </div>
  596.                                 {% endif %}
  597.                             <!-- ///\\\ ///\\\ FIN BOX PICTO + LIEN ///\\\ ///\\\  -->
  598.        
  599.                         {% endif %}
  600.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  601.                         {% if res2.contenuses is not empty %}
  602.                             <!-- ///\\\ ///\\\ BOUTON ///\\\ ///\\\  -->    
  603.                                 {% if res2.contenuses.0.typesContenus.id == 12 %}   
  604.                                     {% if res2.contenuses.0.modal == "modalConsultation2" %}
  605.                                      <button class="buttonmodal" class="buttonmodal" type="button btn-modal" class="" data-bs-toggle="modal" data-bs-target="#exampleModalConsultationERP" 
  606.                                             style="
  607.                                                 background-color:{{res2.contenuses.0.background}}; 
  608.                                                 border:solid 3px {{res2.contenuses.0.couleur1}};
  609.                                                 border-radius: 50px!important;
  610.                                                 padding-right: 0%!important;
  611.                                                 padding-left: 0%!important;
  612.                                                 padding-top: 14px!important;   
  613.                                                 width: 300px;
  614.                                                 float:right;
  615.                                         ">
  616.                                         {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
  617.                                     {% elseif res2.contenuses.0.modal == "modalConsultation" %}
  618.                                      <button class="buttonmodal" type="button btn-modal" class="" data-bs-toggle="modal" data-bs-target="#exampleModalConsultationBaseOutil" 
  619.                                             style="
  620.                                                 background-color:{{res2.contenuses.0.background}}; 
  621.                                                 border:solid 3px {{res2.contenuses.0.couleur1}};
  622.                                                 border-radius: 50px;
  623.                                                 padding-right: 0!important;
  624.                                                 padding-left: 0!important;
  625.                                                 padding-top: 19px!important;
  626.                                                 padding-bottom: 5px!important;
  627.                                                 text-align: center!important;
  628.                                                 width: 320px!important;
  629.                                                 position:offset;
  630.                                         ">
  631.                                         {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
  632.                                     {% elseif res2.contenuses.0.modal == "modalDocumentation" %}
  633.                                      <button class="buttonmodal" type="button btn-modal" class=""  data-bs-toggle="modal" data-bs-target="#exampleModalDoc" 
  634.                                             style="
  635.                                                 background-color:{{res2.contenuses.0.background}}; 
  636.                                                 border:solid 3px {{res2.contenuses.0.couleur1}};
  637.                                                 border-radius: 30px!important;
  638.                                                 padding-right: 0%!important;
  639.                                                 padding-left: 0%!important;
  640.                                                 padding-top: 14px!important;   
  641.                                                 width: 300px;
  642.                                                 float:right;
  643.                                         ">
  644.                                         {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
  645.                                    
  646.                                     {% else %}
  647.                                         <a href="{{res2.contenuses.0.lien}}" target="_blank" style="text-decoration:none;">
  648.                                             <button class="buttonmodal" type="button btn-modal" class="" 
  649.                                                 style="
  650.                                                     background-color:{{res2.contenuses.0.background}}; 
  651.                                                     border:solid 3px {{res2.contenuses.0.couleur1}};
  652.                                                     border-radius: 30px!important;
  653.                                                     padding-right: 0%!important;
  654.                                                     padding-left: 0%!important;
  655.                                                     padding-top: 14px!important;   
  656.                                                     width: 300px;
  657.                                                     float:right;
  658.                                             ">
  659.                                             {% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
  660.                                         </a> 
  661.                                     {% endif %}
  662.                                 
  663.                                 {% endif %}
  664.                                 <!-- ///\\\ ///\\\ FIN BOUTON ///\\\ ///\\\  --> 
  665.                         {% endif %}
  666.                              <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  667.                         {% if res2.contenuses is not empty %}
  668.                             <!-- ///\\\ ///\\\ DOCUMENT ///\\\ ///\\\  -->    
  669.                                 {% if res2.contenuses.0.typesContenus.id == 14 %}                  
  670.                                      <div data-aos="fade-up" data-aos-duration="1000" class="accueil9">
  671.                                         <div class="carte">
  672.                                             <div class="image">
  673.                                                 <div class="image-container">
  674.                                                     <img src="{{asset('uploads/contenus/'~res2.contenuses.0.Image)}}" alt="Votre image">
  675.                                                     <div class="image-overlay">
  676.                                                         <center>
  677.                                                         
  678.                                                                     <!-- Button trigger modal -->
  679.                                                                 
  680.                                                                 <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModalDoc" onclick="recupDoc({{res2.contenuses.0.id}})">
  681.                                                                 Récupérer le pdf
  682.                                                                 </button>
  683.                                                                 
  684.                                                         </center>
  685.                                                     </div>
  686.                                                 </div>
  687.                                             </div>
  688.                                             <div class="texte">
  689.                                                   <p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
  690.                                             </div>
  691.                                         </div>
  692.                                     </div>
  693.                                     <!-- Modal Doc -->
  694.                                     <div class="modalForm">
  695.                                     <div class="modal fade" id="exampleModalDoc" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  696.                                     <div class="modal-dialog">
  697.                                         <div class="modal-content">
  698.                                         <div class="modal-body">
  699.                                             <div class="formulaireFile">
  700.                                             <p class="pa1">Nous vous remercions de votre intérêt pour la solution DELMIAWorks.</p>
  701.                                             <p class="pa2">Afin de pouvoir obtenir la documentation, nous vous remercions de bien vouloir renseigner vos coordonnées.</p>
  702.                                             <form action="{{path('sendDocument')}}" method="post">
  703.                                                     <input type="hidden" id="idDocumentSend" name="document">
  704.                                                     <div class="row">
  705.                                                         <div class="d-flex">
  706.                                                             <div class="col-6 w100" style="">
  707.                                                                 <p class="pa3"> <b>Nom </b><span style="color:red;">*</span></p>
  708.                                                                 <input type="text" id="Nom" name="nom" required>
  709.                                                             </div>
  710.                                                             <div class="col-6 w100">
  711.                                                                 <p class="pa3"> <b>Prénom </b><span style="color:red;">*</span></p>
  712.                                                                 <input type="text" id="Prenom" name="prenom" required>
  713.                                                             </div>
  714.                                                         </div>
  715.                                                         <div class="d-flex">
  716.                                                             <div class="col-12 w100">
  717.                                                                 <p class="pa3"> <b>Nom de la société </b><span style="color:red;">*</span></p>
  718.                                                                 <input type="text" id="nomSociete" name="societe" required>
  719.                                                             </div>
  720.                                                         </div>
  721.                                                         <div class="d-flex">
  722.                                                             <div class="col-12 w100">
  723.                                                                 <p class="pa3"> <b>Votre adresse mail </b><span style="color:red;">*</span></p>
  724.                                                                 <input type="text" id="mail" name="mail" required>
  725.                                                             </div>
  726.                                                         </div>
  727.                                                         <div class="d-flex flex-md-row flex-column">
  728.                                                         <div class="col-md-7 col-12">
  729.                                                             <div class="form-check d-flex">
  730.                                                                 <input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
  731.                                                                 <label class="form-check-label text-light" for="flexCheckDefault">
  732.                                                                     En cochant cette case, vous acceptez le traitement des données personnelles soumises conformément à la <a href="#">Politique de Confidentialité</a>                                                       </label>
  733.                                                             </div>
  734.                                                         </div>
  735.                                                             <div class="col-md-5 col-12">
  736.                                                                 <div class="d-flex justify-content-center align-items-start">
  737.                                                                     <a href="{{ asset('../public/uploads/contenus/'~res2.contenuses.0.document)}}" target="_blank">      
  738.                                                                         <button type="submit" class="buttonDoc">Obtenir le document</button>
  739.                                                                     </a>
  740.                                                                 </div>
  741.                                                             </div>
  742.                                                         </div>
  743.                                                     </div>
  744.                                             </form>
  745.                                             </div>
  746.                                                 
  747.                                         </div>
  748.                                         </div>
  749.                                     </div>
  750.                                     </div>
  751.                                     </div>
  752.                                 {% endif %}
  753.                             <!-- ///\\\ ///\\\ FIN DOCUMENT ///\\\ ///\\\  -->    
  754.                           
  755.                         {% endif %}
  756.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  757.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  758.                             <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  759.                         <!-- ///\\\ ///\\\ BOUTON MODIFIER CMS ///\\\ ///\\\  --> 
  760.                         {% if res2.contenuses is not empty %}
  761.                             {% if  res2.contenuses.0.typesContenus.id != 10 and res2.contenuses.0.typesContenus.id != 9 %}
  762.                                 {% if app.user %}
  763.                                     <div class="d-flex justify-content-center mb-3">
  764.                                         <a href="{{path('app_editContent',{'id':res2.contenuses.0.id,'type':res2.contenuses.0.typesContenus.libelle})}}">
  765.                                             <div class="d-flex justify-content-center align-items-center cubeIcon">
  766.                                                 <i class="fa-solid fa-pen"></i>
  767.                                             </div>
  768.                                         </a>
  769.                                         <a href="{{path('app_deleteContent',{'id':res2.contenuses.0.id})}}" onclick="return confirm('Êtes-vous sûr ?')">
  770.                                             <div class="d-flex justify-content-center align-items-center cubeIcon2">
  771.                                                 <i class="fa-solid fa-trash"></i>
  772.                                             </div>
  773.                                         </a>
  774.                                     </div>
  775.                                 {% endif %}
  776.                             {% endif %}
  777.                         {% endif %}
  778. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->                   
  779. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    MODAL CONTENUS    ///\\\ ///\\\ ///\\\ ///\\\ ///\\\   -->
  780. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  781. {% if app.user %}
  782.     {% if res2.contenuses is  empty %}
  783.         <button type="button" style="margin-bottom:5px" class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#addContenu{{res2.id}}" >Ajouter un contenu</button>
  784.     {% endif %}
  785. <!-- ///\\\ ///\\\ MODAL CONTENUS ///\\\ ///\\\  --> 
  786.     <div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
  787.         <div class="modal-dialog">
  788.             <div class="modal-content">
  789.                 <div class="modal-body">
  790.                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  791.                     <div class="container-modal d-flex flex-column">
  792.                         <h2>Ajouter un contenu</h2>
  793.                         <p>Les «blocs» peuvent contenir chacun un «Contenu» dédiés à du texte, une image, un lien youtube, …</p>
  794.                     </div>
  795.                     
  796.                     <div class="container-contenu d-flex flex-wrap  justify-content-start">
  797.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
  798.                             <div class="container-picto container-picto-texte">
  799.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  800.                                     <img src="{{asset('img/cms/cpi-textes.svg')}}" alt="">
  801.                                 </div>
  802.                                 <p class="colonneText text-center">Texte</p>
  803.                             </div>
  804.                         </a>
  805.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'image'})}}">
  806.                             <div class="container-picto container-picto-texte">
  807.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  808.                                     <img src="{{asset('img/cms/cpi-images.svg')}}" alt="">
  809.                                 </div>
  810.                                 <p class="colonneText text-center">Image</p>
  811.                             </div>
  812.                         </a>
  813.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'video'})}}">
  814.                             <div class="container-picto container-picto-texte">
  815.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  816.                                     <img src="{{asset('img/cms/cpi-videos.svg')}}" alt="">
  817.                                 </div>
  818.                                 <p class="colonneText text-center">Vidéo</p>
  819.                             </div>
  820.                         </a>
  821.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'boxpicto'})}}">
  822.                             <div class="container-picto container-picto-texte">
  823.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  824.                                     <img src="{{asset('img/cms/cpi-box-picto.svg')}}" alt="">
  825.                                 </div>
  826.                                 <p class="colonneText text-center">Box + picto</p>
  827.                             </div>
  828.                         </a>
  829.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'boxpictocarousel'})}}">
  830.                             <div class="container-picto container-picto-texte">
  831.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  832.                                     <img src="{{asset('img/cms/cpi-box-picto.svg')}}" alt="">
  833.                                 </div>
  834.                                 <p class="colonneText text-center">Box + picto <br> (carousel)</p>
  835.                             </div>
  836.                         </a>
  837.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'chiffrescles'})}}">
  838.                             <div class="container-picto container-picto-texte">
  839.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  840.                                     <img src="{{asset('img/cms/cpi-chiffres-cles.svg')}}" alt="">
  841.                                 </div>
  842.                                 <p class="colonneText text-center">Chiffre clé</p>
  843.                             </div>
  844.                         </a>
  845.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'chiffrescles2'})}}">
  846.                             <div class="container-picto container-picto-texte">
  847.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  848.                                     <img src="{{asset('img/cms/cpi-chiffres-cles-2.svg')}}" alt="">
  849.                                 </div>
  850.                                 <p class="colonneText text-center">Chiffre clé 2</p>
  851.                             </div>
  852.                         </a>
  853.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'accordeon'})}}">
  854.                             <div class="container-picto container-picto-texte">
  855.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  856.                                     <img src="{{asset('img/cms/cpi-accordeons.svg')}}" alt="">
  857.                                 </div>
  858.                                 <p class="colonneText text-center">Accordéon</p>
  859.                             </div>
  860.                         </a>
  861.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'avantage'})}}">
  862.                             <div class="container-picto container-picto-texte">
  863.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  864.                                     <img src="{{asset('img/cms/cpi-avantages.svg')}}" alt="">
  865.                                 </div>
  866.                                 <p class="colonneText text-center">Avantages</p>
  867.                             </div>
  868.                         </a>
  869.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'carousel'})}}">
  870.                             <div class="container-picto container-picto-texte">
  871.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  872.                                     <img src="{{asset('img/cms/cpi-carousel.svg')}}" alt="">
  873.                                 </div>
  874.                                 <p class="colonneText text-center">Carousel</p>
  875.                             </div>
  876.                         </a>
  877.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'temoignage'})}}">
  878.                             <div class="container-picto container-picto-texte">
  879.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  880.                                     <img src="{{asset('img/cms/cpi-temoignage.svg')}}" alt="">
  881.                                 </div>
  882.                                 <p class="colonneText text-center">Témoignage</p>
  883.                             </div>
  884.                         </a>
  885.                    <a href="{{path('app_addContent',{'bloc':res2.id,'type':'button'})}}">
  886.                             <div class="container-picto container-picto-texte">
  887.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  888.                                     <img src="{{asset('img/cms/cpi-btn.svg')}}" alt="" style="width:57px">
  889.                                 </div>
  890.                                 <p class="colonneText text-center">Bouton</p>
  891.                             </div>
  892.                         </a> 
  893.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'document'})}}">
  894.                             <div class="container-picto container-picto-texte">
  895.                                 <div class="simu-grid-picto d-flex justify-content-center align-items-center">
  896.                                     <img src="{{asset('img/cms/cpi-doc.svg')}}" alt="" style="width:57px">
  897.                                 </div>
  898.                                 <p class="colonneText text-center">Document</p>
  899.                             </div>
  900.                         </a>                
  901.                     </div>
  902.                     <div class="modal-submit d-flex justify-content-end align-items-end">
  903.                         <button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
  904.                     </div>
  905.                 </div>
  906.             </div>
  907.         </div> 
  908.     </div>   
  909. <!-- ///\\\ ///\\\ FIN MODAL CONTENUS ///\\\ ///\\\  -->                                                                        
  910. <!-- ///\\\ ///\\\ MODAL CONTENUS 2 ///\\\ ///\\\  -->                             
  911.     <div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
  912.         <div class="modal-dialog">
  913.             <div class="modal-content">
  914.                 <div class="modal-body">
  915.                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  916.                     <div class="container-modal d-flex flex-column">
  917.                         <h2>Ajouter un contenu</h2>
  918.                         <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>
  919.                     </div>
  920.                     
  921.                     <div class="container-grid-choix d-flex flex-wrap justify-content-around ">
  922.                         <a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
  923.                             <div class="container-choix">
  924.                                 <div class="simu-grid d-flex justify-content-center align-items-center">
  925.                                     <div class="simu-col simu-col-12 d-flex justify-content-center align-items-center">
  926.                                         <p>12</p>
  927.                                     </div>
  928.                                 </div>
  929.                                 <p class="colonneText text-center">Texte</p>
  930.                             </div>
  931.                         </a>
  932.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':66})}}">
  933.                         <div class="container-choix">
  934.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  935.                                 <div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
  936.                                     <p>6</p>
  937.                                 </div>
  938.                                 <div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
  939.                                     <p>6</p>
  940.                                 </div>
  941.                             </div>  
  942.                             <p class="colonneText text-center">3 colonne</p>
  943.                         </div>
  944.                     </a>
  945.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':444})}}">
  946.                         <div class="container-choix">
  947.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  948.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  949.                                     <p>4</p>
  950.                                 </div>
  951.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  952.                                     <p>4</p>
  953.                                 </div>
  954.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  955.                                     <p>4</p>
  956.                                 </div>
  957.                             </div>
  958.                             <p class="colonneText text-center">2 colonne</p>
  959.                         </div>
  960.                     </a>
  961.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':84})}}">
  962.                         <div class="container-choix">
  963.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  964.                                 <div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
  965.                                     <p>8</p>
  966.                                 </div>
  967.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  968.                                     <p>4</p>
  969.                                 </div>
  970.                             </div>
  971.                             <p class="colonneText text-center">2 colonne</p>
  972.                         </div>
  973.                     </a>
  974.                     <a href="{{path('app_addBloc',{'ligne':res.id,'type':48})}}">
  975.                         <div class="container-choix">
  976.                             <div class="simu-grid d-flex justify-content-around align-items-center">
  977.                                 <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  978.                                     <p>4</p>
  979.                                 </div>
  980.                                 <div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
  981.                                     <p>8</p>
  982.                                 </div>                    
  983.                             </div>
  984.                             <p class="colonneText text-center">2 colonne</p>
  985.                         </div>
  986.                     </a>
  987.                 </div>
  988.                 <div class="modal-submit d-flex justify-content-end align-items-end">
  989.                     <button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
  990.                 </div>
  991.             </div>
  992.         </div>
  993.     </div> 
  994. </div>
  995. {% endif %}
  996. <!-- ///\\\ ///\\\ FIN MODAL CONTENUS 2 ///\\\ ///\\\  -->  
  997. </div>
  998. {% endfor %}                       
  999. </div>
  1000. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->                   
  1001. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    MODAL BLOCK       ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  1002. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  1003.                       
  1004. {% if app.user %}
  1005.     <div style="d-flex justify-content-center padding-top:20px">
  1006.         <button type="button" class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#addBloc{{res.id}}" >Ajouter un bloc</button>
  1007.             <div class="modal fade" id="addBloc{{res.id}}" tabindex="-1" aria-labelledby="addBloc" aria-hidden="true">
  1008.                 <div class="modal-dialog">
  1009.                     <div class="modal-content">
  1010.                         <div class="modal-body">
  1011.                             <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  1012.                             <div class="container-modal d-flex flex-column">
  1013.                                 <h2>Ajouter un bloc</h2>
  1014.                                 <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>
  1015.                             </div>
  1016.                             
  1017.                             <div class="container-grid-choix d-flex flex-wrap justify-content-around ">
  1018.                                 <a href="{{path('app_addBloc',{'ligne':res.id,'type':12})}}">
  1019.                                     <div class="container-choix">
  1020.                                         <div class="simu-grid d-flex justify-content-center align-items-center">
  1021.                                             <div class="simu-col simu-col-12 d-flex justify-content-center align-items-center">
  1022.                                                 <p>12</p>
  1023.                                             </div>
  1024.                                         </div>
  1025.                                         <p class="colonneText text-center">1 colonne</p>
  1026.                                     </div>
  1027.                                 </a>
  1028.                                 <a href="{{path('app_addBloc',{'ligne':res.id,'type':66})}}">
  1029.                                     <div class="container-choix">
  1030.                                         <div class="simu-grid d-flex justify-content-around align-items-center">
  1031.                                             <div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
  1032.                                                 <p>6</p>
  1033.                                             </div>
  1034.                                             <div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
  1035.                                                 <p>6</p>
  1036.                                             </div>
  1037.                                         </div>
  1038.                                         <p class="colonneText text-center">2 colonnes</p>
  1039.                                     </div>
  1040.                                 </a>
  1041.                                 <a href="{{path('app_addBloc',{'ligne':res.id,'type':444})}}">
  1042.                                     <div class="container-choix">
  1043.                                         <div class="simu-grid d-flex justify-content-around align-items-center">
  1044.                                             <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  1045.                                                 <p>4</p>
  1046.                                             </div>
  1047.                                             <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  1048.                                                 <p>4</p>
  1049.                                             </div>
  1050.                                             <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  1051.                                                 <p>4</p>
  1052.                                             </div>
  1053.                                         </div>
  1054.                                         <p class="colonneText text-center">3 colonnes</p>
  1055.                                     </div>
  1056.                                 </a>
  1057.                                 <a href="{{path('app_addBloc',{'ligne':res.id,'type':84})}}">
  1058.                                 <div class="container-choix">
  1059.                                     <div class="simu-grid d-flex justify-content-around align-items-center">
  1060.                                         <div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
  1061.                                             <p>8</p>
  1062.                                         </div>
  1063.                                         <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  1064.                                             <p>4</p>
  1065.                                         </div>
  1066.                                     </div>
  1067.                                     <p class="colonneText text-center">2 colonnes</p>
  1068.                                 </div>
  1069.                                 </a>
  1070.                                 <a href="{{path('app_addBloc',{'ligne':res.id,'type':48})}}">
  1071.                                     <div class="container-choix">
  1072.                                         <div class="simu-grid d-flex justify-content-around align-items-center">
  1073.                                             <div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
  1074.                                                 <p>4</p>
  1075.                                             </div>
  1076.                                             <div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
  1077.                                                 <p>8</p>
  1078.                                             </div>
  1079.                                     
  1080.                                         </div>
  1081.                                         <p class="colonneText text-center">2 colonnes</p>
  1082.                                     </div>
  1083.                                 </a>
  1084.                                 <a href="{{path('app_addBloc',{'ligne':res.id,'type':3333})}}">
  1085.                                     <div class="container-choix">
  1086.                                         <div class="simu-grid d-flex justify-content-around align-items-center">
  1087.                                             <div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
  1088.                                                 <p>3</p>
  1089.                                             </div>
  1090.                                             <div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
  1091.                                                 <p>3</p>
  1092.                                             </div>
  1093.                                             <div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
  1094.                                                 <p>3</p>
  1095.                                             </div>
  1096.                                             <div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
  1097.                                                 <p>3</p>
  1098.                                             </div>
  1099.                                     
  1100.                                         </div>
  1101.                                         <p class="colonneText text-center">4 colonnes</p>
  1102.                                     </div>
  1103.                                 </a>
  1104.                             </div>
  1105.                             <div class="modal-submit d-flex justify-content-end align-items-end">
  1106.                                 <button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
  1107.                             </div>
  1108.                         </div>
  1109.                     </div>
  1110.                 </div> 
  1111.             </div>
  1112. {% endif %}                 
  1113.     </div>
  1114. </div>
  1115. {% endfor %}
  1116. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->                   
  1117. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    MODAL SECTION     ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  1118. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  1119. <!-- ///\\\ ///\\\  MODAL AJOUT SECTION ///\\\ ///\\\  -->  
  1120. <div class="modal fade" id="addSection" tabindex="-1" aria-labelledby="addSection" aria-hidden="true">
  1121.     <div class="modal-dialog">
  1122.         <div class="modal-content">
  1123.             <div class="modal-body">
  1124.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  1125.                 <div class="container-modal d-flex flex-column">
  1126.                     <h2>Ajouter une section</h2>
  1127.                     <p>Les pages dont composées «Sections» contenant chacune des « Blocs » de « Contenus » répartis en colonnes</p>
  1128.                 </div>
  1129.                 <form action="{{path('app_addSection')}}" method="post" enctype="multipart/form-data">
  1130.                     <input type="hidden" name="page" value="{{page.id}}">
  1131.                     <div class="container-contenus-modal">
  1132.                         <h3>Image de fond</h3>
  1133.                         <input type="file"  name="imageSection" >  
  1134.                     </div>
  1135.                     <div class="container-contenus-modal">
  1136.                         <h3>Image rond</h3>
  1137.                         <input type="file"  name="imageRond" >   
  1138.                     </div>
  1139.                     <div class="container-contenus-modal">
  1140.                         <h3>Ordre affichage</h3>
  1141.                         <input type="number" name="ordreSection" id="ordreSection" value="{{ordreMax}}">
  1142.                     </div>
  1143.                     <div class="container-contenus-modal">
  1144.                         <h3>Couleur de section</h3>
  1145.                         <input type="text" name="couleurSection" id="couleurSection" value="#fff">
  1146.                         <div class="container-all-couleur d-flex flex-wrap">
  1147.                             <div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#ffffff')">
  1148.                                 <div class="seeColor seeColor1"></div>
  1149.                                 <p>Blanc</p>
  1150.                             </div>
  1151.                             <div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#F6F6F6')">
  1152.                                 <div class="seeColor seeColor2"></div>
  1153.                                 <p>Gris</p>
  1154.                             </div>
  1155.                             <div class="button-couleur button-color-active d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#EBE7F7')">
  1156.                                 <div class="seeColor seeColor3"></div>
  1157.                                 <p>Violet 1</p>
  1158.                             </div>
  1159.                             <div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#30278D')">
  1160.                                 <div class="seeColor seeColor4"></div>
  1161.                                 <p>Violet 2</p>
  1162.                             </div>
  1163.                             <div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#180068')">
  1164.                                 <div class="seeColor seeColor5"></div>
  1165.                                 <p>Violet 3</p>
  1166.                             </div>
  1167.                             <div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#00CEFF')">
  1168.                                 <div class="seeColor seeColor6"></div>
  1169.                                 <p>Bleu 1</p>
  1170.                             </div>
  1171.                             <div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#0047FF')">
  1172.                                 <div class="seeColor seeColor7"></div>
  1173.                                 <p>Bleu 2</p>
  1174.                             </div>
  1175.                             <div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#ffda2b')">
  1176.                                 <div class="seeColor seeColor8"></div>
  1177.                                 <p>Jaune</p>
  1178.                             </div>                
  1179.                         </div> 
  1180.                     </div>
  1181.                     <div class="modal-submit d-flex justify-content-center">
  1182.                         <button type="submit" class=" btnAdd">Ajouter</button>
  1183.                     </div>    
  1184.                 </form>
  1185.             </div>
  1186.         </div>
  1187.     </div> 
  1188. </div>
  1189. <!-- ///\\\ ///\\\  UPDATE SECTION ///\\\ ///\\\  -->  
  1190. {% if app.user %}
  1191.     <div class="d-flex justify-content-center mb-3">
  1192.         <a href="{{path('app_updateSection',{'id':section.id,'pages':page.id})}}" style="color:white; text-decoration:none">
  1193.             <div class="d-flex justify-content-center align-items-center cubeIcon" style="width:200px">
  1194.                 <i class="fa-solid fa-pen" style="padding-right:10px"></i> Modifier la section
  1195.             </div>
  1196.         </a>
  1197.         <a href="{{path('app_deleteSection',{'id':section.id,'pages':page.id})}}" onclick="return confirm('Êtes-vous sûr ?')" style="color:white; text-decoration:none">
  1198.             <div class="d-flex justify-content-center align-items-center cubeIcon2" style="width:200px">
  1199.                 <i class="fa-solid fa-trash" style="padding-right:10px"></i> Supprimer la section
  1200.             </div>
  1201.         </a>
  1202.     </div>
  1203. {% endif %}
  1204. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->  
  1205. <!-- ///\\\ ///\\\  FIN SECTION + FORME BLEU SOUS SECTION DANS LE DOM ///\\\ ///\\\  --> 
  1206. </section>
  1207. <div class="container">
  1208.     <div class="formeBleu">
  1209.         <div class="row justify-content-center d-flex">
  1210.             {% if section.rond != '' %}
  1211.                 <img src="{{asset('uploads/sections/'~section.rond)}}" class="img-fluid d-none d-lg-block">                        
  1212.             {% endif %}
  1213.         </div>
  1214.     </div>
  1215. </div>
  1216. {% endfor %}
  1217. <!-- ///\\\ ///\\\  AJOUT SECTION DANS LE DOM ///\\\ ///\\\  --> 
  1218. {% if app.user %}
  1219. <div style="{% if sections|length > 0 %}padding-top:20px{% else %}padding-top:250px{% endif %}" align="center">
  1220. <!-- Button trigger modal -->
  1221. <hr style="border-top:dashed grey;">
  1222. <a data-bs-toggle="modal" data-bs-target="#addSection" style="font-size: 25px;
  1223. font-weight: bold;
  1224. color: #bfbfbf; cursor:pointer" >+ Ajouter une section</a>
  1225. <hr  style="border-top:dashed grey;">
  1226. <script>
  1227.     function saveColor(value) {
  1228.         $('#couleurSection').val(value);
  1229.     }
  1230. </script>
  1231. {% endif %}
  1232. {% endif %}
  1233. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->                   
  1234. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\    SCRIPT PCONTENT   ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  1235. <!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\  -->
  1236. <!-- ///\\\ ///\\\  SCRIPT ACCORDEON ///\\\ ///\\\  -->  
  1237. <script>
  1238.     let accordionHeaders = document.querySelectorAll('.accordion-header');
  1239.     accordionHeaders.forEach(header => {
  1240.         let button = header.querySelector('.texteDeroulant button');
  1241.         button.addEventListener('click', function () {
  1242.             let parentAccordion = header.closest('.accordion');
  1243.             let buttons = parentAccordion.querySelectorAll('.texteDeroulant button');
  1244.             let content = header.nextElementSibling; // The content section to show/hide
  1245.             // Check if the content section is already open
  1246.             if (content.classList.contains('show')) {
  1247.                 // Close the content section
  1248.                 content.classList.remove('show');
  1249.                 content.classList.add('collapse');
  1250.             } else {
  1251.                 // Close all other open sections (if any) and open this content section
  1252.                 buttons.forEach(btn => {
  1253.                     let contentToClose = btn.parentElement.nextElementSibling;
  1254.                     if (contentToClose.classList.contains('show')) {
  1255.                         contentToClose.classList.remove('show');
  1256.                         contentToClose.classList.add('collapse');
  1257.                     }
  1258.                 });
  1259.                 // Open the content section
  1260.                 content.classList.remove('collapse');
  1261.                 content.classList.add('show');
  1262.             }
  1263.             // Toggle the button color
  1264.             if (button.style.color !== 'red') {
  1265.                 buttons.forEach(btn => {
  1266.                     btn.style.color = 'white';
  1267.                 });
  1268.                 button.style.color = 'red';
  1269.             } else {
  1270.                 button.style.color = 'white';
  1271.             }
  1272.         });
  1273.     });
  1274.     let buttonsForIcon = document.querySelectorAll('.texteDeroulant button');
  1275.     let icons = document.querySelectorAll('.jsIcon');
  1276.     let previousIcon = null;
  1277.     buttonsForIcon.forEach((button, index) => {
  1278.         let icon = icons[index];
  1279.         button.addEventListener('click', function () {
  1280.             if (previousIcon !== null && previousIcon !== icon) {
  1281.                 // Restore the previous icon to fa-plus-circle
  1282.                 previousIcon.classList.remove('fa-minus-circle');
  1283.                 previousIcon.classList.add('fa-plus-circle');
  1284.             }
  1285.             if (icon.classList.contains('fa-plus-circle')) {
  1286.                 icon.classList.remove('fa-plus-circle');
  1287.                 icon.classList.add('fa-minus-circle');
  1288.             } else {
  1289.                 icon.classList.remove('fa-minus-circle');
  1290.                 icon.classList.add('fa-plus-circle');
  1291.             }
  1292.             previousIcon = icon;
  1293.         });
  1294.     });
  1295. </script>
  1296. </section>
  1297. </main>
  1298.          
  1299.          
  1300.         
  1301.          
  1302.            <script type="text/javascript">
  1303.             $(document).ready(function(){
  1304.                 $('.slider-demo-valeur').slick({
  1305.                     arrows: true,
  1306.                     infinite:true,
  1307.                     prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  1308.                     nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  1309.                     slidesToShow:4,
  1310.                     slidesToScroll:4,
  1311.                     responsive:[{
  1312.                         breakpoint:1400,
  1313.                         settings:{
  1314.                             slidesToShow:3,  
  1315.                             slidesToScroll:3,            
  1316.                         }
  1317.                     },{
  1318.                         breakpoint:1200,
  1319.                         settings:{
  1320.                             slidesToShow:2,
  1321.                             slidesToScroll:2, 
  1322.                         }
  1323.                     },
  1324.                     {
  1325.                         breakpoint:769,
  1326.                         settings:{
  1327.                             slidesToShow:1,
  1328.                             slidesToScroll:1, 
  1329.                         }
  1330.                     }],
  1331.                 });
  1332.             });
  1333.         </script>
  1334.         <script>
  1335.             function changeLanguage(selectedButton, modalId) {
  1336.                 let modal = document.getElementById(modalId);
  1337.                 let buttons = modal.querySelectorAll(".button-langue");
  1338.                 let inputField = modal.querySelector(".sectionTitle");
  1339.                 
  1340.                 buttons.forEach((button) => {
  1341.                     if (button === selectedButton) {
  1342.                         button.classList.add("button-langue-active");
  1343.                         button.classList.remove("button-langue-noactive");
  1344.         
  1345.                         // Set the input field value based on the active language
  1346.                         switch (button.textContent) {
  1347.                             case "FR":
  1348.                                 inputField.value = "Titre de la section FR";
  1349.                                 break;
  1350.                             case "EN":
  1351.                                 inputField.value = "Section Title EN";
  1352.                                 break;
  1353.                             case "DE":
  1354.                                 inputField.value = "Abschnittstitel DE";
  1355.                                 break;
  1356.                             // Add cases for other languages if needed
  1357.                             default:
  1358.                                 inputField.value = "";
  1359.                         }
  1360.                     } else {
  1361.                         button.classList.remove("button-langue-active");
  1362.                         button.classList.add("button-langue-noactive");
  1363.                     }
  1364.                 });
  1365.             }
  1366.         
  1367.             function changeColor(selectedColorButton, modalId) {
  1368.                 let modal = document.getElementById(modalId);
  1369.                 const colorButtons = modal.querySelectorAll(".button-couleur");
  1370.                 colorButtons.forEach((colorButton) => {
  1371.                     if (colorButton === selectedColorButton) {
  1372.                         colorButton.classList.add("button-color-active");
  1373.                         colorButton.classList.remove("button-color-noactive");
  1374.                     } else {
  1375.                         colorButton.classList.remove("button-color-active");
  1376.                         colorButton.classList.add("button-color-noactive");
  1377.                     }
  1378.                 });
  1379.             }
  1380.         
  1381.             function clearDefaultText(inputField) {
  1382.                 // Clear the default value if it matches the default text
  1383.                 if (inputField.value === inputField.defaultValue) {
  1384.                     inputField.value = '';
  1385.                 }
  1386.             }
  1387.         
  1388.             function restoreDefaultText(inputField) {
  1389.                 // Restore the default value if the input is empty
  1390.                 if (inputField.value === '') {
  1391.                     inputField.value = inputField.defaultValue;
  1392.                 }
  1393.             }
  1394.             function recupDoc(id)
  1395.             {
  1396.                 $('#idDocumentSend').val(id)
  1397.             }
  1398. </script>
  1399.         
  1400.   
  1401.        
  1402. <!-- ///\\\ ///\\\  IMPORT ///\\\ ///\\\  -->  
  1403. <script src="https://code.jquery.com/jquery-3.7.0.js" integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM=" crossorigin="anonymous"></script>
  1404. <script src="{{asset('js/jquery-latest.min.js')}}"></script>
  1405. <script src="{{asset('slick/slick.js')}}"></script>
  1406. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
  1407. <script type="text/javascript">
  1408.     $(document).ready(function() {
  1409.         $('.slider-demo-galerie').slick({
  1410.             arrows: true,
  1411.             infinite:true,
  1412.             autoplay: true, // Ajout de l'option autoplay
  1413.             autoplaySpeed: 4000, // Durée de chaque diapositive en millisecondes
  1414.             slidesToShow:4,
  1415.             slidesToScroll:4,
  1416.             prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  1417.             nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  1418.             responsive:[{
  1419.                 breakpoint:1400,
  1420.                 settings: {
  1421.                     slidesToShow:3,  
  1422.                     slidesToScroll:3,            
  1423.                 }
  1424.                 },{
  1425.                     
  1426.                 breakpoint:1200,
  1427.                 settings:{
  1428.                     slidesToShow:2,
  1429.                     slidesToScroll:2, 
  1430.                 }
  1431.                 },
  1432.                 {
  1433.                 breakpoint:769,
  1434.                 settings:{
  1435.                     slidesToShow:1,
  1436.                     slidesToScroll:1, 
  1437.                 }
  1438.             }],
  1439.         });
  1440.        
  1441.         $('.slider-demo-actu').slick({
  1442.             arrows: true,
  1443.             infinite: true,
  1444.             prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  1445.             nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  1446.             slidesToShow: 4,
  1447.             slidesToScroll: 4,
  1448.                 responsive:[{
  1449.                     breakpoint:1400,
  1450.                     settings:{
  1451.                         slidesToShow:3,  
  1452.                         slidesToScroll:3,            
  1453.                     }
  1454.                 },{
  1455.                     breakpoint:1200,
  1456.                     settings:{
  1457.                         slidesToShow:2,
  1458.                         slidesToScroll:2, 
  1459.                     }
  1460.                 },
  1461.                 {
  1462.                     breakpoint:769,
  1463.                     settings:{
  1464.                         slidesToShow:1,
  1465.                         slidesToScroll:1, 
  1466.                     }
  1467.                 }],
  1468.             });
  1469.         });
  1470.         
  1471.          $(document).ready(function(){
  1472.                 $('.slider-demo-actu').slick({
  1473.                     arrows: true,
  1474.                     infinite:true,
  1475.                     prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  1476.                     nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  1477.                     slidesToShow:4,
  1478.                     slidesToScroll:4,
  1479.                     responsive:[{
  1480.                         breakpoint:1400,
  1481.                         settings:{
  1482.                             slidesToShow:3,  
  1483.                             slidesToScroll:3,            
  1484.                         }
  1485.                     },{
  1486.                         breakpoint:1200,
  1487.                         settings:{
  1488.                             slidesToShow:2,
  1489.                             slidesToScroll:2, 
  1490.                         }
  1491.                     },
  1492.                     {
  1493.                         breakpoint:500,
  1494.                         settings:{
  1495.                             slidesToShow:1,
  1496.                             slidesToScroll:1, 
  1497.                         }
  1498.                     }],
  1499.                 });
  1500.             });
  1501.                $(document).ready(function(){
  1502.                 $('.slider-cms').slick({
  1503.                     arrows: true,
  1504.                     infinite:true,
  1505.                     prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
  1506.                     nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
  1507.                     slidesToShow:4,
  1508.                     slidesToScroll:4,
  1509.                     responsive:[{
  1510.                         breakpoint:1400,
  1511.                         settings:{
  1512.                             slidesToShow:3,  
  1513.                             slidesToScroll:3,            
  1514.                         }
  1515.                     },{
  1516.                         breakpoint:1200,
  1517.                         settings:{
  1518.                             slidesToShow:2,
  1519.                             slidesToScroll:2, 
  1520.                         }
  1521.                     },
  1522.                     {
  1523.                         breakpoint:600,
  1524.                         settings:{
  1525.                             slidesToShow:1,
  1526.                             slidesToScroll:1, 
  1527.                         }
  1528.                     }],
  1529.                 });
  1530.             });
  1531.     </script>
  1532. <!-- ================================================= -->
  1533. <!-- Modal Consultation ERP -->
  1534. <div class="modalForm">
  1535. <div class="modal fade" id="exampleModalConsultationERP" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  1536.   <div class="modal-dialog">
  1537.     <div class="modal-content">
  1538.       <div class="modal-body">
  1539.         <div class="formulaireFile">
  1540.           <p class="pa1">
  1541.             {% if app.request.locale == 'fr' %}
  1542.             Nous vous remercions de votre intérêt pour la solution DELMIAWorks.
  1543.             {% else %}
  1544.             Thank you for your interest in the DELMIAWorks solution.
  1545.             {% endif %}
  1546.           </p>
  1547.           <p class="pa2">
  1548.             {% if app.request.locale == 'fr' %}
  1549.             Pour réserver une consultation gratuite, nous vous remercions de bien vouloir renseigner vos coordonnées.
  1550.             {% else %}
  1551.             To book a free consultation, please enter your contact details.
  1552.             {% endif %}
  1553.           </p>
  1554.           <form action="{{path('sendConsultationERP')}}" method="post">
  1555.             <input type="hidden" id="idDocument" name="document">
  1556.             <div class="row">
  1557.               <div class="d-flex">
  1558.                 <div class="col-6 w100" style="">
  1559.                   <p class="pa3"> <b>{% trans %}form-nom{% endtrans %}</b><span style="color:red;">*</span></p>
  1560.                   <input type="text" id="Nom" name="nom" required>
  1561.                 </div>
  1562.                 <div class="col-6 w100">
  1563.                   <p class="pa3"> <b>{% trans %}form-prenom{% endtrans %}</b><span style="color:red;">*</span></p>
  1564.                   <input type="text" id="Prenom" name="prenom" required>
  1565.                 </div>
  1566.               </div>
  1567.               <div class="d-flex">
  1568.                 <div class="col-12 w100">
  1569.                   <p class="pa3"> <b>{% trans %}form-societe{% endtrans %}</b><span style="color:red;">*</span></p>
  1570.                   <input type="text" id="nomSociete" name="societe" required>
  1571.                 </div>
  1572.               </div>
  1573.               <div class="d-flex">
  1574.                 <div class="col-12 w100">
  1575.                   <p class="pa3"> <b>{% trans %}form-email{% endtrans %}</b><span style="color:red;">*</span></p>
  1576.                   <input type="text" id="mail" name="mail" required>
  1577.                 </div>
  1578.               </div>
  1579.               <div class="d-flex flex-md-row flex-column">
  1580.                 <div class="col-md-7 col-12">
  1581.                   <div class="form-check d-flex">
  1582.                     <input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
  1583.                     <label class="form-check-label text-light" for="flexCheckDefault">
  1584.                       {% trans %}form-condition1{% endtrans %}<a href="{{asset('P-CPI-0032-RevOR-Politique protection des données site internet.pdf')}}" target="_blank"> {% trans %}form-condition2{% endtrans %}</a>
  1585.                     </label>
  1586.                   </div>
  1587.                 </div>
  1588.                 <div class="col-md-5 col-12">
  1589.                   <div class="d-flex justify-content-center align-items-start">
  1590.                     <button type="submit" class="buttonDoc">
  1591.                       {% if app.request.locale == 'fr' %}Envoyer votre demande{% else %}Send your request{% endif %}
  1592.                     </button>
  1593.                   </div>
  1594.                 </div>
  1595.               </div>
  1596.             </div>
  1597.           </form>
  1598.         </div>
  1599.       </div>
  1600.     </div>
  1601.   </div>
  1602. </div>
  1603. </div>
  1604. <!-- Modal Consultation Base Outil -->
  1605. <div class="modalForm">
  1606. <div class="modal fade" id="exampleModalConsultationBaseOutil" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  1607.   <div class="modal-dialog">
  1608.     <div class="modal-content">
  1609.       <div class="modal-body">
  1610.             <a href="{{ path('app_baseOutils',{'locale':app.request.locale}) }}"><i class="fa-regular fa-circle-xmark circlemark" ></i></a>
  1611.         <div class="formulaireFile">
  1612.           <p class="pa1">
  1613.             {% if app.request.locale == 'fr' %}
  1614.             Nous vous remercions de votre intérêt pour la solution Base outils coupants - Wintool.
  1615.             {% else %}
  1616.             Thank you for your interest in the Wintool cutting tool base solution.
  1617.             {% endif %}
  1618.           </p>
  1619.           <p class="pa2">
  1620.             {% if app.request.locale == 'fr' %}
  1621.             Pour réserver une consultation gratuite, nous vous remercions de bien vouloir renseigner vos coordonnées.
  1622.             {% else %}
  1623.             To book a free consultation, please enter your contact details.
  1624.             {% endif %}
  1625.           </p>
  1626.           <form action="{{ path('sendConsultationBaseOutils') }}" method="post">
  1627.             <input type="hidden" id="idDocument" name="document">
  1628.             <div class="row">
  1629.              <div class="row d-flex" style="padding:0;margin:0">
  1630.               <div class="col-6 mb-3">
  1631.                 <div class="pa3"> <b>{% trans %}form-nom{% endtrans %}</b><span style="color:red;">*</span></div>
  1632.                 <input type="text" id="Nom" name="nom" required>
  1633.               </div>
  1634.               <div class="col-6 mb-3">
  1635.                 <div class="pa3"> <b>{% trans %}form-prenom{% endtrans %}</b><span style="color:red;">*</span></div>
  1636.                 <input type="text" id="Prenom" name="prenom" required>
  1637.               </div>
  1638.               
  1639.               <div class="col-12 mb-3">
  1640.                 <div class="pa3"> <b>{% trans %}form-societe{% endtrans %}</b><span style="color:red;">*</span></div>
  1641.                 <input type="text" id="nomSociete" name="societe" required>
  1642.               </div>
  1643.               <div class="col-12 mb-3">
  1644.                 <div class="pa3"> <b>{% trans %}form-email{% endtrans %}</b><span style="color:red;">*</span></div>
  1645.                 <input type="text" id="mail" name="mail" required>
  1646.               </div>
  1647.               <div class="col-md-7 col-12 mb-3">
  1648.                 <div class="form-check d-flex">
  1649.                   <input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
  1650.                   <label class="form-check-label text-light" for="flexCheckDefault">
  1651.                     {% trans %}form-condition1{% endtrans %}<a href="{{ asset('P-CPI-0032-RevOR-Politique protection des données site internet.pdf') }}" target="_blank"> {% trans %}form-condition2{% endtrans %}</a>
  1652.                   </label>
  1653.                 </div>
  1654.               </div>
  1655.               <div class="col-md-5 col-12 mb-3">
  1656.                 <div class="d-flex justify-content-center align-items-start">
  1657.                   <button type="submit" class="buttonDoc">
  1658.                     {% if app.request.locale == 'fr' %}Envoyer votre demande{% else %}Send your request{% endif %}
  1659.                   </button>
  1660.                 </div>
  1661.               </div>
  1662.             </div>
  1663.           </form>
  1664.         </div>
  1665.       </div>
  1666.     </div>
  1667.   </div>
  1668. </div>
  1669. </div>
  1670. <style>
  1671. .modalForm i{
  1672.     color: white;
  1673.     padding-left: 45px;
  1674.     cursor: pointer;
  1675.     font-size: 16px;
  1676.     float: right;
  1677. }
  1678. .modalForm .modal-body{
  1679.     width: 100%;
  1680. }
  1681. .modalForm .modal-content{
  1682.     align-items: start!important;
  1683. }
  1684. .modalForm .modal-body form p{
  1685.     color:white;
  1686.     font-weight: 400;
  1687.     font-size: 18px;
  1688. }
  1689. .modalForm .modal input{
  1690.     width: 100%!important;
  1691.     border-radius: 20px;
  1692.     padding: 7px;
  1693. }
  1694. .modalForm .buttonDoc{
  1695.     background-color: #FFDE2B;
  1696.     border-radius: 50px;
  1697.     color: #30278E;
  1698.     font-family: "Open Sans";
  1699.     font-weight: bold;
  1700.     font-size: 14px;
  1701.     border: none;
  1702.     padding-left: 35px;
  1703.     padding-right: 35px;
  1704.     padding-top: 16px;
  1705.     padding-bottom: 16px;
  1706. }
  1707. .modalForm .formulaire{
  1708.     width: 100%;
  1709.     height: 100%;
  1710. }
  1711. .modalForm .formulaire p{
  1712.     color: white;
  1713.     padding: 0;
  1714.     margin: 0;
  1715.     margin-bottom: 10px;
  1716. }
  1717. .modalForm .formulaireFile input{
  1718.     /* width: 100%; */
  1719.     border-radius: 25px;
  1720.     padding-top: 1%;
  1721.     padding-bottom: 1%;
  1722.     padding-right: 10px;
  1723.     padding-left: 10px;
  1724.     border: solid 1px #ececec;
  1725.     margin-right: 5px;
  1726. }
  1727. .modalForm .formulaireFile .w100 input{
  1728.     width: 100%;
  1729.     margin-bottom: 15px;
  1730. }
  1731. .modalForm .formulaireFile .pa1{
  1732.     font-family: "Open Sans";
  1733.     font-size: 32px;
  1734.     color: #FFDE2B;
  1735.     font-weight: bold;
  1736. }
  1737. .modalForm .formulaireFile .pa2{
  1738.     font-family: "Open Sans";
  1739.     font-size: 18px;
  1740.     color: white;
  1741.     font-weight: 100;
  1742. }
  1743. .modalForm .formulaireFile .pa3{
  1744.     font-family: "Open Sans";
  1745.     font-size: 18px;
  1746.     color: white;
  1747.     font-weight: normal;
  1748. }
  1749. .modalForm .responsive-txt{
  1750.     margin-left: 50px;
  1751. }
  1752. .modalForm .form-check-input[type="checkbox"] {
  1753.     height: 20px !important;
  1754.     width: 20px!important;
  1755. }
  1756. .modalForm .responsive-img{
  1757.     width: 30%;
  1758. }
  1759. .modalForm .modal{
  1760.     --bs-modal-header-border-width: 0px!important;
  1761.     --bs-modal-footer-border-width: 0px!important;
  1762.     --bs-modal-bg: white!important;
  1763.     --bs-modal-bg: transparent!important;
  1764.     --bs-modal-border-color:transparent!important;
  1765.     --bs-modal-width: 828px!important;
  1766. }
  1767. .modalForm .modal-title{
  1768.     color: #FFDE2B;
  1769.     font-size: 32px;
  1770.     font-weight: bold;
  1771. }
  1772. /* RESPONSIVE */
  1773. @media screen and (max-width: 1080px) {
  1774.     .responsive-txt{
  1775.         margin-left: 0px;
  1776.     }
  1777.     .responsive-img{
  1778.         width: 100%;
  1779.         margin-bottom: 25px;
  1780.     }
  1781. }
  1782. </style>
  1783. {% endblock %}