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