templates/default/digitalManufacturingServices.html.twig line 1

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