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