{# BASE LOAD #}
{% extends 'base.html.twig' %}
{# TITLE TOP PAGE #}
{% block title %}CPI | {% if app.request.locale == 'fr' %}Base Outils{% else %}Custting Tool Base{% endif %}{% endblock %}
{# CSS #}
{% block stylesheet %}
<meta property="og:image" content="{{asset('img/industrialisation/expertise.png')}}">
{# CSS DU CMS #}
<link rel="stylesheet" href="{{ asset('css/cmsContent.css')}}">
<link rel="stylesheet" href="{{ asset('css/cms.css')}}">
{# / #}
<link rel="stylesheet" href="{{asset('slick/slick.css')}}">
<link rel="stylesheet" href="{{asset('slick/slick-theme.css')}}">
{% endblock %}
{# BODY HOME PAGE #}
{% block body %}
<main>
{% if ip == '90.63.222.84' or ip =='193.148.82.168' or ip =='5.48.160.74' %}
{# CMS LOAD ADMIN MODE #}
{% if app.user %}
{% include 'cms.html.twig' %}
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ GESTION DES SECTION ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% set i = 0 %}
{% for section in sections %}
{% set i = i +1 %}
<section id="section{{section.id}}" style="
{% if section.image %}
background-image: url(../uploads/sections/{{section.image}});
background-size: contain;
background-repeat: repeat-x;
background-color: #190D6F;
{% else %}
background-color:{{section.color}};
{% endif %}
{% if i > 1 %}
margin-top:-54px
{% endif %}
">
<style>
main{
overflow: hidden;
}
.accordion-body li{
color:white;
}
.accordion-body li p{
margin-bottom:0
}
.opensans_bold_40{
margin-bottom:60px!important;
}
.slick-prev {
color:red!important;
top:-120px!important;
color:#30278d!important;
}
.slick-prev:before {
content: url(../img/flèche_gauche-bo.svg)!important;
transition:1s all;
}
.slick-next:before {
content: url(../img/flèche_droite_bo.svg)!important;
transition:1s all;
}
.slick-next {
color:red!important;
top:-120px!important;
color:#30278d!important;
}
#bloc154 img{
width:50%;
border-radius:0px!important;
}
#bloc609{
display:flex;
justify-content:center;
}
@media screen and (max-width: 990px){
.tete-carte p:last-child {
bottom: 29px!important;
}
.slick-prev {
color:red!important;
top:-80px!important;
}
.slick-next {
color:red!important;
top:-80px!important;
}
.opensans_bold_40{
margin-bottom:20px!important;
}
}
</style>
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% set y = 0 %}
{% for res in section.lignes %}
{% set y = y+1 %}
<div id="{% if i == 1 %}sectionMain{% else %}sectionReste{% endif %}" data-aos="fade-up" data-aos-duration="1000" style="{% if i == 1 %}padding-top:237px;padding-bottom:237px;
{% else %}
{% if i > 1 %}
padding-top:112px; padding-bottom:112px;
{% endif %}
{% if y > 1 %}
padding-top:0; padding-bottom:112px;
{% endif %}
{% endif %}">
<div class="container text-light pb-3">
<div class="row pt-5 justify-content-center justify-content-md-start">
{% if app.user %}
<a href="{{path('app_deleteLigne',{'id':res.id,'pages':page.id} )}}" onclick="return confirm('Êtes-vous sûr ?')">
<div class="d-flex justify-content-end">
<div class="d-flex justify-content-center align-items-center cubeIcon2">
<i class="fa-solid fa-trash"></i>
</div>
</div>
</a>
{% endif %}
{% for res2 in res.blocs %}
<div id="bloc{{res2.id}}" data-aos="fade-up" data-aos-duration="1000" class="
{% if res2.type == 2 %}
col-xl-2 col-12
{% endif %}
{% if res2.type == 3 %}
col-xxl-3 col-md-6 col-12
{% endif %}
{% if res2.type == 4 %}
col-xxl-4 col-md-6 col-12
{% endif %}
{% if res2.type == 6 %}
col-lg-6 col-12
{% endif %}
{% if res2.type == 8 %}
col-12
{% endif %}
{% if res2.type == 12 %}
col-12
{% endif %}
" {% if app.user %} style="border:dashed 1px grey; border-radius:10px; margin-bottom:10px"{% endif %}>
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id != 8 %}
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ AFFCHER CONTENUS ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ TEXTE ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 1 %}
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
{% if res2.contenuses.0.document is not empty %}
<a href="{{res2.contenuses.0.document}}" target="_blank" style="text-decoration:none;">
<button type="button btn-modal" class="justify-content-center align-items-center text-center"
style="
background-color:{{res2.contenuses.0.background}}!important;
border:solid 3px {{res2.contenuses.0.couleur1}}!important;
border-radius: 30px!important;
color: rgb(0, 206, 255);
font-weight: bold;
background-color: #0c24b3;
cursor: pointer;
padding-top: 12px;
padding-left: 50px;
padding-right: 50px;
margin-top:20px
">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</button>
</a>
{% endif %}
{% endif %}
{% if i == 1 %}
{% if loop.first %}
<div class="traitBlanc"></div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN TEXTE ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ IMAGE ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 2 %}
<div class="col-12 d-flex mt-lg-0 justify-content-{{res2.contenuses.0.background}}">
{% if res2.contenuses.0.lien %}
<a href="{{res2.contenuses.0.lien}}" target="_blank">
{% endif %}
<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 %}">
{% if res2.contenuses.0.lien %}
</a>
{% endif %}
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN IMAGE ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ VIDEOS ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 3 %}
<div data-aos="fade-up" data-aos-duration="1000" class="col-12 justify-content-center">
<div class="image">
<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>
</div>
<div class="texte">
<p style="font-weight:bold">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}
</p>
</div>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN VIDEO ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ BOX PICTO ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 4 %}
<div class="cartes-2">
<div data-aos="fade-up" data-aos-duration="1000" class="carte">
<div class="image d-flex justify-content-center">
<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 %}">
</div>
<div class="corps-carte">
<div class="tete-carte" style="background-color:{{res2.contenuses.0.background}};">
<p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
</div>
<div class="texte-carte" style="min-height: 370px!important; background-color:{{res2.contenuses.0.couleur1}}">
<div class="texte-1" style="min-height: 161px;">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
</div>
{% if res2.contenuses.0.video is not empty %}
<div class="button-carte">
<a href="{{res2.contenuses.0.video}}" >
<button class="buttonMore">En savoir plus</button>
</a>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN BOX PICTO ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ AVANTAGES ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id == 7 %}
<div data-aos="fade-up" data-aos-duration="1000" class="avantages">
<div class="carteA bg-bleu" style="background-color:{{res2.contenuses.0.background}}">
<div class="tete-carte d-flex ">
{% if res2.contenuses.0.image != '' %}
<img class="img-fluid" src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="">
{% endif %}
<span style="font-weight:bold">{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</span>
</div>
<div class="texte-carte">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
</div>
</div>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN AVANTAGES ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ACCORDEON ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 8 %}
<div data-aos="fade-up" data-aos-duration="1000" class="texteDeroulant text-light">
<div class="accordion" id="accordionExample">
{% set ac = 0 %}
<div style="margin-bottom:32px;">
{% if app.request.locale == 'fr' %}{{res2.contenuses.0.titreFr|raw}}{% else %}{{res2.contenuses.0.titreEn|raw}}{% endif %}
</div>
{% for res3 in res2.contenuses.0.accordeons %}
{% set ac = ac+1 %}
<div class="accordion-item" style="background-color:{{res3.background}}!important;">
<h2 class="accordion-header" id="heading{{res3.id}}">
<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}}">
<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 %}
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse {% if ac == 1 %}{% endif %}" aria-labelledby="heading{{res3.id}}" data-bs-parent="#accordionExample">
<div class="accordion-body">
<div class="accordion-hr"></div>
{% if app.request.locale == 'en' %}{{res3.TexteEn|raw}}{% else %}{{res3.TexteFr|raw}}{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
<script>
$(document).ready(function () {
$('.accordion-button').click(function () {
$(this).find('i').toggleClass('fa-plus-circle fa-minus-circle');
$('.accordion-button').not(this).find('i').removeClass('fa-minus-circle').addClass('fa-plus-circle');
});
});
</script>
{% if app.user %}
<br>
<div class="d-flex justify-content-center">
<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>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN ACCORDEON ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 10 %}
<div data-aos="fade-up" data-aos-duration="1000" class="container d-flex paddingPerso2" >
<div class="slider-demo-valeur">
{% for carou in res2.contenuses.0.carousels|sort((a, b) => a.ordre < b.ordre ? -1 : 1) %}
<div data-aos="fade-up" data-aos-duration="1000" class="carte " style="padding-left: 15px!important;padding-right: 15px;!important">
<div class="col-12">
<div class="image d-flex justify-content-center">
<img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
</div>
<div class="corps-carte">
<div class="tete-carte">
<p>{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %} </p>
</div>
<div class="texte-carte">
<div class="texte-1">
{% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% if app.user %}
{% if res2.contenuses.0.typesContenus.id == 10 %}
<br>
<div data-aos="fade-up" data-aos-duration="1000" class="d-flex justify-content-center">
<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>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN BOXPICTO CAROUSEL ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOX PICTO CAROUSEL ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 11 %}
<div class="row justify-content-center justify-content-md-start" >
<div class="col-12">
<div class="row pb-4">
<div class="titre ">
<p class="opensans_bold_red_15">TEMOIGNAGES</p>
</div>
</div>
</div>
</div>
{% set tem = -1 %}
<div class="row text-light" >
<div class="col-12">
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
{% for res in temoignages %}
{% set tem = tem + 1 %}
<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>
{% endfor %}
</div>
{% set tem2 = -1 %}
<div class="carousel-inner">
{% for res in temoignages %}
{% set tem2 = tem2 + 1 %}
<div class="carousel-item {% if tem2 == 0 %}active{% endif %}">
<div class="row text-light">
<h2 class="">{{res.titre}}</hé>
</div>
<br>
<p class="citation ">{{res.texte}}</p>
<br>
<p style="color:red; font-weight: bold; ">{{res.auteur}}</p>
</div>
{% endfor %}
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</div>
{% if app.user %}
{% if res2.contenuses.0.typesContenus.id == 11 %}
<br>
<div class="d-flex justify-content-center">
<a href="{{path('app_temoignages_index')}}"><button type="button" style="margin-bottom:5px" class="btn btn-info" >Gérer les témoignages</button></a>
</div>
{% endif %}
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN BOX PICTO CAROUSEL ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ CAROUSEL ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 9 %}
<div class="carouselcms">
<div class="slider-cms">
{% for carou in res2.contenuses.0.carousels|sort((a, b) => a.ordre < b.ordre ? -1 : 1)%}
<div class="carte-slider-cms d-flex flex-column" >
<div class="container-img-slider-cms">
<img src="{{asset('uploads/carousels/'~carou.image)}}" alt="{% if app.request.locale == 'en' %}{{carou.titreEn}}{% else %}{{carou.titreFr}}{% endif %}">
</div>
{% if carou.titreEn != '' or carou.titreFr != '' %}
<div class="container-titre-slider-cms">
<h3 class="opensans_bold_32">{% if app.request.locale == 'en' %}{{carou.titreEn|raw}}{% else %}{{carou.titreFr|raw}}{% endif %}</h3>
</div>
{% endif %}
{% if carou.texteEn != '' or carou.texteFr != '' %}
<div class="container-text-slider-cms">
<p>{% if app.request.locale == 'en' %}{{carou.texteEn|raw}}{% else %}{{carou.texteFr|raw}}{% endif %}</p>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
<style>
.carouselcms{
width:100%;
}
.slider-cms{
width:100%;
height: 100%;
}
.carte-slider-cms{
padding-left: 5px;
padding-right: 5px;
height:100%;
}
.container-img-slider-cms {
width: 100%;
height: 220px;
}
.container-img-slider-cms img{
width: 100%;
height: 100%;
border-radius:30px;
}
.container-titre-slider-cms{
height:60px;
padding:0;
margin:0;
}
.container-titre-slider-cms h3 p{
color:#30278d!important;
font-size: 26px!important;
margin-top:20px;
margin-left:2px;
}
.container-text-slider-cms{
height:180px;
}
.container-text-slider-cms p{
color: white;
font-weight: 100;
font-size:14px;
margin-left:2px;
padding-right:20px;
}
.slick-slide img {
object-fit: cover!important;
}
</style>
{% if app.user %}
{% if res2.contenuses.0.typesContenus.id == 9 %}
<br>
<div class="d-flex justify-content-center">
<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>
</div>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN CAROUSEL ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ CHIFFRES CLES ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 5 %}
<div class="cartes-3" style="background:{{res2.contenuses.0.background}}; border-radius: 30px;">
<div class="carte">
{% if res2.contenuses.0.image is not empty %}
<img src="{{asset('uploads/contenus/'~res2.contenuses.0.image)}}" alt="" style="width:100%;height:100%;border-radius:25px;">
{% else %}
<div class="titre">
<p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %} </p>
</div>
<div class="texte">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %}
</div>
{% endif %}
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN CHIFFRES CLES ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ CHIFFRES CLES 2 ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 6 %}
<div class="accueil4">
<div {% if res2.contenuses.0.titreFr|length > 4 %}id="soixante-dix"{% endif %} class="carte">
<div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
<div class="chiffre justify-content-center" style="background-color:{{res2.contenuses.0.background}}">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.titreEn|raw}}{% else %}{{res2.contenuses.0.titreFr|raw}}{% endif %}
</div>
</div>
<div class="texte">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.texteEn|raw}}{% else %}{{res2.contenuses.0.texteFr|raw}}{% endif %}
</div>
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN CHIFFRES CLES 2 ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOX PICTO + LIEN ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 13 %}
<div data-aos="fade-up" data-aos-duration="1000" class="carte">
<div class="image d-flex justify-content-center">
<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 %}">
</div>
<div class="corps-carte">
<div class="tete-carte" style="background-color:{{res2.contenuses.0.background}}">
<p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
</div>
<div class="texte-carte" style="min-height:204px; background-color:{{res2.contenuses.0.couleur1}}">
<div class="texte-1">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN BOX PICTO + LIEN ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ BOUTON ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 12 %}
{% if res2.contenuses.0.modal == "modalConsultation2" %}
<button class="buttonmodal" class="buttonmodal" type="button btn-modal" class="" data-bs-toggle="modal" data-bs-target="#exampleModalConsultationERP"
style="
background-color:{{res2.contenuses.0.background}};
border:solid 3px {{res2.contenuses.0.couleur1}};
border-radius: 50px!important;
padding-right: 0%!important;
padding-left: 0%!important;
padding-top: 14px!important;
width: 300px;
float:right;
">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
{% elseif res2.contenuses.0.modal == "modalConsultation" %}
<button class="buttonmodal" type="button btn-modal" class="" data-bs-toggle="modal" data-bs-target="#exampleModalConsultationBaseOutil"
style="
background-color:{{res2.contenuses.0.background}};
border:solid 3px {{res2.contenuses.0.couleur1}};
border-radius: 50px;
padding-right: 0!important;
padding-left: 0!important;
padding-top: 19px!important;
padding-bottom: 5px!important;
text-align: center!important;
width: 320px!important;
position:offset;
">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
{% elseif res2.contenuses.0.modal == "modalDocumentation" %}
<button class="buttonmodal" type="button btn-modal" class="" data-bs-toggle="modal" data-bs-target="#exampleModalDoc"
style="
background-color:{{res2.contenuses.0.background}};
border:solid 3px {{res2.contenuses.0.couleur1}};
border-radius: 30px!important;
padding-right: 0%!important;
padding-left: 0%!important;
padding-top: 14px!important;
width: 300px;
float:right;
">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
{% else %}
<a href="{{res2.contenuses.0.lien}}" target="_blank" style="text-decoration:none;">
<button class="buttonmodal" type="button btn-modal" class=""
style="
background-color:{{res2.contenuses.0.background}};
border:solid 3px {{res2.contenuses.0.couleur1}};
border-radius: 30px!important;
padding-right: 0%!important;
padding-left: 0%!important;
padding-top: 14px!important;
width: 300px;
float:right;
">
{% if app.request.locale == 'en' %}{{res2.contenuses.0.TexteEn|raw}}{% else %}{{res2.contenuses.0.TexteFr|raw}}{% endif %}</button>
</a>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ FIN BOUTON ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
<!-- ///\\\ ///\\\ DOCUMENT ///\\\ ///\\\ -->
{% if res2.contenuses.0.typesContenus.id == 14 %}
<div data-aos="fade-up" data-aos-duration="1000" class="accueil9">
<div class="carte">
<div class="image">
<div class="image-container">
<img src="{{asset('uploads/contenus/'~res2.contenuses.0.Image)}}" alt="Votre image">
<div class="image-overlay">
<center>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModalDoc" onclick="recupDoc({{res2.contenuses.0.id}})">
Récupérer le pdf
</button>
</center>
</div>
</div>
</div>
<div class="texte">
<p>{% if app.request.locale == 'en' %}{{res2.contenuses.0.TitreEn|raw}}{% else %}{{res2.contenuses.0.TitreFr|raw}}{% endif %}</p>
</div>
</div>
</div>
<!-- Modal Doc -->
<div class="modalForm">
<div class="modal fade" id="exampleModalDoc" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="formulaireFile">
<p class="pa1">Nous vous remercions de votre intérêt pour la solution DELMIAWorks.</p>
<p class="pa2">Afin de pouvoir obtenir la documentation, nous vous remercions de bien vouloir renseigner vos coordonnées.</p>
<form action="{{path('sendDocument')}}" method="post">
<input type="hidden" id="idDocumentSend" name="document">
<div class="row">
<div class="d-flex">
<div class="col-6 w100" style="">
<p class="pa3"> <b>Nom </b><span style="color:red;">*</span></p>
<input type="text" id="Nom" name="nom" required>
</div>
<div class="col-6 w100">
<p class="pa3"> <b>Prénom </b><span style="color:red;">*</span></p>
<input type="text" id="Prenom" name="prenom" required>
</div>
</div>
<div class="d-flex">
<div class="col-12 w100">
<p class="pa3"> <b>Nom de la société </b><span style="color:red;">*</span></p>
<input type="text" id="nomSociete" name="societe" required>
</div>
</div>
<div class="d-flex">
<div class="col-12 w100">
<p class="pa3"> <b>Votre adresse mail </b><span style="color:red;">*</span></p>
<input type="text" id="mail" name="mail" required>
</div>
</div>
<div class="d-flex flex-md-row flex-column">
<div class="col-md-7 col-12">
<div class="form-check d-flex">
<input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
<label class="form-check-label text-light" for="flexCheckDefault">
En cochant cette case, vous acceptez le traitement des données personnelles soumises conformément à la <a href="#">Politique de Confidentialité</a> </label>
</div>
</div>
<div class="col-md-5 col-12">
<div class="d-flex justify-content-center align-items-start">
<a href="{{ asset('../public/uploads/contenus/'~res2.contenuses.0.document)}}" target="_blank">
<button type="submit" class="buttonDoc">Obtenir le document</button>
</a>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN DOCUMENT ///\\\ ///\\\ -->
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ BOUTON MODIFIER CMS ///\\\ ///\\\ -->
{% if res2.contenuses is not empty %}
{% if res2.contenuses.0.typesContenus.id != 10 and res2.contenuses.0.typesContenus.id != 9 %}
{% if app.user %}
<div class="d-flex justify-content-center mb-3">
<a href="{{path('app_editContent',{'id':res2.contenuses.0.id,'type':res2.contenuses.0.typesContenus.libelle})}}">
<div class="d-flex justify-content-center align-items-center cubeIcon">
<i class="fa-solid fa-pen"></i>
</div>
</a>
<a href="{{path('app_deleteContent',{'id':res2.contenuses.0.id})}}" onclick="return confirm('Êtes-vous sûr ?')">
<div class="d-flex justify-content-center align-items-center cubeIcon2">
<i class="fa-solid fa-trash"></i>
</div>
</a>
</div>
{% endif %}
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ MODAL CONTENUS ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if app.user %}
{% if res2.contenuses is empty %}
<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>
{% endif %}
<!-- ///\\\ ///\\\ MODAL CONTENUS ///\\\ ///\\\ -->
<div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter un contenu</h2>
<p>Les «blocs» peuvent contenir chacun un «Contenu» dédiés à du texte, une image, un lien youtube, …</p>
</div>
<div class="container-contenu d-flex flex-wrap justify-content-start">
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-textes.svg')}}" alt="">
</div>
<p class="colonneText text-center">Texte</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'image'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-images.svg')}}" alt="">
</div>
<p class="colonneText text-center">Image</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'video'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-videos.svg')}}" alt="">
</div>
<p class="colonneText text-center">Vidéo</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'boxpicto'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-box-picto.svg')}}" alt="">
</div>
<p class="colonneText text-center">Box + picto</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'boxpictocarousel'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-box-picto.svg')}}" alt="">
</div>
<p class="colonneText text-center">Box + picto <br> (carousel)</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'chiffrescles'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-chiffres-cles.svg')}}" alt="">
</div>
<p class="colonneText text-center">Chiffre clé</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'chiffrescles2'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-chiffres-cles-2.svg')}}" alt="">
</div>
<p class="colonneText text-center">Chiffre clé 2</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'accordeon'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-accordeons.svg')}}" alt="">
</div>
<p class="colonneText text-center">Accordéon</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'avantage'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-avantages.svg')}}" alt="">
</div>
<p class="colonneText text-center">Avantages</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'carousel'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-carousel.svg')}}" alt="">
</div>
<p class="colonneText text-center">Carousel</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'temoignage'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-temoignage.svg')}}" alt="">
</div>
<p class="colonneText text-center">Témoignage</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'button'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-btn.svg')}}" alt="" style="width:57px">
</div>
<p class="colonneText text-center">Bouton</p>
</div>
</a>
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'document'})}}">
<div class="container-picto container-picto-texte">
<div class="simu-grid-picto d-flex justify-content-center align-items-center">
<img src="{{asset('img/cms/cpi-doc.svg')}}" alt="" style="width:57px">
</div>
<p class="colonneText text-center">Document</p>
</div>
</a>
</div>
<div class="modal-submit d-flex justify-content-end align-items-end">
<button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
</div>
</div>
</div>
</div>
</div>
<!-- ///\\\ ///\\\ FIN MODAL CONTENUS ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ MODAL CONTENUS 2 ///\\\ ///\\\ -->
<div class="modal fade" id="addContenu{{res2.id}}" tabindex="-1" aria-labelledby="addContenu" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter un contenu</h2>
<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>
</div>
<div class="container-grid-choix d-flex flex-wrap justify-content-around ">
<a href="{{path('app_addContent',{'bloc':res2.id,'type':'texte'})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-center align-items-center">
<div class="simu-col simu-col-12 d-flex justify-content-center align-items-center">
<p>12</p>
</div>
</div>
<p class="colonneText text-center">Texte</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':66})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
</div>
<p class="colonneText text-center">3 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':444})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
</div>
<p class="colonneText text-center">2 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':84})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
<p>8</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
</div>
<p class="colonneText text-center">2 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':48})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
<p>8</p>
</div>
</div>
<p class="colonneText text-center">2 colonne</p>
</div>
</a>
</div>
<div class="modal-submit d-flex justify-content-end align-items-end">
<button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<!-- ///\\\ ///\\\ FIN MODAL CONTENUS 2 ///\\\ ///\\\ -->
</div>
{% endfor %}
</div>
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ MODAL BLOCK ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
{% if app.user %}
<div style="d-flex justify-content-center padding-top:20px">
<button type="button" class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#addBloc{{res.id}}" >Ajouter un bloc</button>
<div class="modal fade" id="addBloc{{res.id}}" tabindex="-1" aria-labelledby="addBloc" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter un bloc</h2>
<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>
</div>
<div class="container-grid-choix d-flex flex-wrap justify-content-around ">
<a href="{{path('app_addBloc',{'ligne':res.id,'type':12})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-center align-items-center">
<div class="simu-col simu-col-12 d-flex justify-content-center align-items-center">
<p>12</p>
</div>
</div>
<p class="colonneText text-center">1 colonne</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':66})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
<div class="simu-col simu-col-6 d-flex justify-content-center align-items-center">
<p>6</p>
</div>
</div>
<p class="colonneText text-center">2 colonnes</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':444})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
</div>
<p class="colonneText text-center">3 colonnes</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':84})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
<p>8</p>
</div>
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
</div>
<p class="colonneText text-center">2 colonnes</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':48})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-4 d-flex justify-content-center align-items-center">
<p>4</p>
</div>
<div class="simu-col simu-col-8 d-flex justify-content-center align-items-center">
<p>8</p>
</div>
</div>
<p class="colonneText text-center">2 colonnes</p>
</div>
</a>
<a href="{{path('app_addBloc',{'ligne':res.id,'type':3333})}}">
<div class="container-choix">
<div class="simu-grid d-flex justify-content-around align-items-center">
<div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
<p>3</p>
</div>
<div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
<p>3</p>
</div>
<div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
<p>3</p>
</div>
<div class="simu-col simu-col-3 d-flex justify-content-center align-items-center">
<p>3</p>
</div>
</div>
<p class="colonneText text-center">4 colonnes</p>
</div>
</a>
</div>
<div class="modal-submit d-flex justify-content-end align-items-end">
<button type="submit" class=" btnAdd btnAdd2">Ajouter</button>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endfor %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ MODAL SECTION ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ MODAL AJOUT SECTION ///\\\ ///\\\ -->
<div class="modal fade" id="addSection" tabindex="-1" aria-labelledby="addSection" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="container-modal d-flex flex-column">
<h2>Ajouter une section</h2>
<p>Les pages dont composées «Sections» contenant chacune des « Blocs » de « Contenus » répartis en colonnes</p>
</div>
<form action="{{path('app_addSection')}}" method="post" enctype="multipart/form-data">
<input type="hidden" name="page" value="{{page.id}}">
<div class="container-contenus-modal">
<h3>Image de fond</h3>
<input type="file" name="imageSection" >
</div>
<div class="container-contenus-modal">
<h3>Image rond</h3>
<input type="file" name="imageRond" >
</div>
<div class="container-contenus-modal">
<h3>Ordre affichage</h3>
<input type="number" name="ordreSection" id="ordreSection" value="{{ordreMax}}">
</div>
<div class="container-contenus-modal">
<h3>Couleur de section</h3>
<input type="text" name="couleurSection" id="couleurSection" value="#fff">
<div class="container-all-couleur d-flex flex-wrap">
<div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#ffffff')">
<div class="seeColor seeColor1"></div>
<p>Blanc</p>
</div>
<div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#F6F6F6')">
<div class="seeColor seeColor2"></div>
<p>Gris</p>
</div>
<div class="button-couleur button-color-active d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#EBE7F7')">
<div class="seeColor seeColor3"></div>
<p>Violet 1</p>
</div>
<div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#30278D')">
<div class="seeColor seeColor4"></div>
<p>Violet 2</p>
</div>
<div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#180068')">
<div class="seeColor seeColor5"></div>
<p>Violet 3</p>
</div>
<div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#00CEFF')">
<div class="seeColor seeColor6"></div>
<p>Bleu 1</p>
</div>
<div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#0047FF')">
<div class="seeColor seeColor7"></div>
<p>Bleu 2</p>
</div>
<div class="button-couleur button-color-noactive d-flex align-items-center justify-content-center text-center" onclick="changeColor(this, 'addSection'); saveColor('#ffda2b')">
<div class="seeColor seeColor8"></div>
<p>Jaune</p>
</div>
</div>
</div>
<div class="modal-submit d-flex justify-content-center">
<button type="submit" class=" btnAdd">Ajouter</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- ///\\\ ///\\\ UPDATE SECTION ///\\\ ///\\\ -->
{% if app.user %}
<div class="d-flex justify-content-center mb-3">
<a href="{{path('app_updateSection',{'id':section.id,'pages':page.id})}}" style="color:white; text-decoration:none">
<div class="d-flex justify-content-center align-items-center cubeIcon" style="width:200px">
<i class="fa-solid fa-pen" style="padding-right:10px"></i> Modifier la section
</div>
</a>
<a href="{{path('app_deleteSection',{'id':section.id,'pages':page.id})}}" onclick="return confirm('Êtes-vous sûr ?')" style="color:white; text-decoration:none">
<div class="d-flex justify-content-center align-items-center cubeIcon2" style="width:200px">
<i class="fa-solid fa-trash" style="padding-right:10px"></i> Supprimer la section
</div>
</a>
</div>
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ FIN SECTION + FORME BLEU SOUS SECTION DANS LE DOM ///\\\ ///\\\ -->
</section>
<div class="container">
<div class="formeBleu">
<div class="row justify-content-center d-flex">
{% if section.rond != '' %}
<img src="{{asset('uploads/sections/'~section.rond)}}" class="img-fluid d-none d-lg-block">
{% endif %}
</div>
</div>
</div>
{% endfor %}
<!-- ///\\\ ///\\\ AJOUT SECTION DANS LE DOM ///\\\ ///\\\ -->
{% if app.user %}
<div style="{% if sections|length > 0 %}padding-top:20px{% else %}padding-top:250px{% endif %}" align="center">
<!-- Button trigger modal -->
<hr style="border-top:dashed grey;">
<a data-bs-toggle="modal" data-bs-target="#addSection" style="font-size: 25px;
font-weight: bold;
color: #bfbfbf; cursor:pointer" >+ Ajouter une section</a>
<hr style="border-top:dashed grey;">
<script>
function saveColor(value) {
$('#couleurSection').val(value);
}
</script>
{% endif %}
{% endif %}
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ SCRIPT PCONTENT ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ ///\\\ -->
<!-- ///\\\ ///\\\ SCRIPT ACCORDEON ///\\\ ///\\\ -->
<script>
let accordionHeaders = document.querySelectorAll('.accordion-header');
accordionHeaders.forEach(header => {
let button = header.querySelector('.texteDeroulant button');
button.addEventListener('click', function () {
let parentAccordion = header.closest('.accordion');
let buttons = parentAccordion.querySelectorAll('.texteDeroulant button');
let content = header.nextElementSibling; // The content section to show/hide
// Check if the content section is already open
if (content.classList.contains('show')) {
// Close the content section
content.classList.remove('show');
content.classList.add('collapse');
} else {
// Close all other open sections (if any) and open this content section
buttons.forEach(btn => {
let contentToClose = btn.parentElement.nextElementSibling;
if (contentToClose.classList.contains('show')) {
contentToClose.classList.remove('show');
contentToClose.classList.add('collapse');
}
});
// Open the content section
content.classList.remove('collapse');
content.classList.add('show');
}
// Toggle the button color
if (button.style.color !== 'red') {
buttons.forEach(btn => {
btn.style.color = 'white';
});
button.style.color = 'red';
} else {
button.style.color = 'white';
}
});
});
let buttonsForIcon = document.querySelectorAll('.texteDeroulant button');
let icons = document.querySelectorAll('.jsIcon');
let previousIcon = null;
buttonsForIcon.forEach((button, index) => {
let icon = icons[index];
button.addEventListener('click', function () {
if (previousIcon !== null && previousIcon !== icon) {
// Restore the previous icon to fa-plus-circle
previousIcon.classList.remove('fa-minus-circle');
previousIcon.classList.add('fa-plus-circle');
}
if (icon.classList.contains('fa-plus-circle')) {
icon.classList.remove('fa-plus-circle');
icon.classList.add('fa-minus-circle');
} else {
icon.classList.remove('fa-minus-circle');
icon.classList.add('fa-plus-circle');
}
previousIcon = icon;
});
});
</script>
</section>
</main>
<script type="text/javascript">
$(document).ready(function(){
$('.slider-demo-valeur').slick({
arrows: true,
infinite:true,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
slidesToShow:4,
slidesToScroll:4,
responsive:[{
breakpoint:1400,
settings:{
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:769,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
});
</script>
<script>
function changeLanguage(selectedButton, modalId) {
let modal = document.getElementById(modalId);
let buttons = modal.querySelectorAll(".button-langue");
let inputField = modal.querySelector(".sectionTitle");
buttons.forEach((button) => {
if (button === selectedButton) {
button.classList.add("button-langue-active");
button.classList.remove("button-langue-noactive");
// Set the input field value based on the active language
switch (button.textContent) {
case "FR":
inputField.value = "Titre de la section FR";
break;
case "EN":
inputField.value = "Section Title EN";
break;
case "DE":
inputField.value = "Abschnittstitel DE";
break;
// Add cases for other languages if needed
default:
inputField.value = "";
}
} else {
button.classList.remove("button-langue-active");
button.classList.add("button-langue-noactive");
}
});
}
function changeColor(selectedColorButton, modalId) {
let modal = document.getElementById(modalId);
const colorButtons = modal.querySelectorAll(".button-couleur");
colorButtons.forEach((colorButton) => {
if (colorButton === selectedColorButton) {
colorButton.classList.add("button-color-active");
colorButton.classList.remove("button-color-noactive");
} else {
colorButton.classList.remove("button-color-active");
colorButton.classList.add("button-color-noactive");
}
});
}
function clearDefaultText(inputField) {
// Clear the default value if it matches the default text
if (inputField.value === inputField.defaultValue) {
inputField.value = '';
}
}
function restoreDefaultText(inputField) {
// Restore the default value if the input is empty
if (inputField.value === '') {
inputField.value = inputField.defaultValue;
}
}
function recupDoc(id)
{
$('#idDocumentSend').val(id)
}
</script>
<!-- ///\\\ ///\\\ IMPORT ///\\\ ///\\\ -->
<script src="https://code.jquery.com/jquery-3.7.0.js" integrity="sha256-JlqSTELeR4TLqP0OG9dxM7yDPqX1ox/HfgiSLBj8+kM=" crossorigin="anonymous"></script>
<script src="{{asset('js/jquery-latest.min.js')}}"></script>
<script src="{{asset('slick/slick.js')}}"></script>
<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>
<script type="text/javascript">
$(document).ready(function() {
$('.slider-demo-galerie').slick({
arrows: true,
infinite:true,
autoplay: true, // Ajout de l'option autoplay
autoplaySpeed: 4000, // Durée de chaque diapositive en millisecondes
slidesToShow:4,
slidesToScroll:4,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
responsive:[{
breakpoint:1400,
settings: {
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:769,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
$('.slider-demo-actu').slick({
arrows: true,
infinite: true,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
slidesToShow: 4,
slidesToScroll: 4,
responsive:[{
breakpoint:1400,
settings:{
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:769,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
});
$(document).ready(function(){
$('.slider-demo-actu').slick({
arrows: true,
infinite:true,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
slidesToShow:4,
slidesToScroll:4,
responsive:[{
breakpoint:1400,
settings:{
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:500,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
});
$(document).ready(function(){
$('.slider-cms').slick({
arrows: true,
infinite:true,
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>',
slidesToShow:4,
slidesToScroll:4,
responsive:[{
breakpoint:1400,
settings:{
slidesToShow:3,
slidesToScroll:3,
}
},{
breakpoint:1200,
settings:{
slidesToShow:2,
slidesToScroll:2,
}
},
{
breakpoint:600,
settings:{
slidesToShow:1,
slidesToScroll:1,
}
}],
});
});
</script>
<!-- ================================================= -->
<!-- Modal Consultation ERP -->
<div class="modalForm">
<div class="modal fade" id="exampleModalConsultationERP" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="formulaireFile">
<p class="pa1">
{% if app.request.locale == 'fr' %}
Nous vous remercions de votre intérêt pour la solution DELMIAWorks.
{% else %}
Thank you for your interest in the DELMIAWorks solution.
{% endif %}
</p>
<p class="pa2">
{% if app.request.locale == 'fr' %}
Pour réserver une consultation gratuite, nous vous remercions de bien vouloir renseigner vos coordonnées.
{% else %}
To book a free consultation, please enter your contact details.
{% endif %}
</p>
<form action="{{path('sendConsultationERP')}}" method="post">
<input type="hidden" id="idDocument" name="document">
<div class="row">
<div class="d-flex">
<div class="col-6 w100" style="">
<p class="pa3"> <b>{% trans %}form-nom{% endtrans %}</b><span style="color:red;">*</span></p>
<input type="text" id="Nom" name="nom" required>
</div>
<div class="col-6 w100">
<p class="pa3"> <b>{% trans %}form-prenom{% endtrans %}</b><span style="color:red;">*</span></p>
<input type="text" id="Prenom" name="prenom" required>
</div>
</div>
<div class="d-flex">
<div class="col-12 w100">
<p class="pa3"> <b>{% trans %}form-societe{% endtrans %}</b><span style="color:red;">*</span></p>
<input type="text" id="nomSociete" name="societe" required>
</div>
</div>
<div class="d-flex">
<div class="col-12 w100">
<p class="pa3"> <b>{% trans %}form-email{% endtrans %}</b><span style="color:red;">*</span></p>
<input type="text" id="mail" name="mail" required>
</div>
</div>
<div class="d-flex flex-md-row flex-column">
<div class="col-md-7 col-12">
<div class="form-check d-flex">
<input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
<label class="form-check-label text-light" for="flexCheckDefault">
{% 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>
</label>
</div>
</div>
<div class="col-md-5 col-12">
<div class="d-flex justify-content-center align-items-start">
<button type="submit" class="buttonDoc">
{% if app.request.locale == 'fr' %}Envoyer votre demande{% else %}Send your request{% endif %}
</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal Consultation Base Outil -->
<div class="modalForm">
<div class="modal fade" id="exampleModalConsultationBaseOutil" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<a href="{{ path('app_baseOutils',{'locale':app.request.locale}) }}"><i class="fa-regular fa-circle-xmark circlemark" ></i></a>
<div class="formulaireFile">
<p class="pa1">
{% if app.request.locale == 'fr' %}
Nous vous remercions de votre intérêt pour la solution Base outils coupants - Wintool.
{% else %}
Thank you for your interest in the Wintool cutting tool base solution.
{% endif %}
</p>
<p class="pa2">
{% if app.request.locale == 'fr' %}
Pour réserver une consultation gratuite, nous vous remercions de bien vouloir renseigner vos coordonnées.
{% else %}
To book a free consultation, please enter your contact details.
{% endif %}
</p>
<form action="{{ path('sendConsultationBaseOutils') }}" method="post">
<input type="hidden" id="idDocument" name="document">
<div class="row">
<div class="row d-flex" style="padding:0;margin:0">
<div class="col-6 mb-3">
<div class="pa3"> <b>{% trans %}form-nom{% endtrans %}</b><span style="color:red;">*</span></div>
<input type="text" id="Nom" name="nom" required>
</div>
<div class="col-6 mb-3">
<div class="pa3"> <b>{% trans %}form-prenom{% endtrans %}</b><span style="color:red;">*</span></div>
<input type="text" id="Prenom" name="prenom" required>
</div>
<div class="col-12 mb-3">
<div class="pa3"> <b>{% trans %}form-societe{% endtrans %}</b><span style="color:red;">*</span></div>
<input type="text" id="nomSociete" name="societe" required>
</div>
<div class="col-12 mb-3">
<div class="pa3"> <b>{% trans %}form-email{% endtrans %}</b><span style="color:red;">*</span></div>
<input type="text" id="mail" name="mail" required>
</div>
<div class="col-md-7 col-12 mb-3">
<div class="form-check d-flex">
<input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
<label class="form-check-label text-light" for="flexCheckDefault">
{% 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>
</label>
</div>
</div>
<div class="col-md-5 col-12 mb-3">
<div class="d-flex justify-content-center align-items-start">
<button type="submit" class="buttonDoc">
{% if app.request.locale == 'fr' %}Envoyer votre demande{% else %}Send your request{% endif %}
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<style>
.modalForm i{
color: white;
padding-left: 45px;
cursor: pointer;
font-size: 16px;
float: right;
}
.modalForm .modal-body{
width: 100%;
}
.modalForm .modal-content{
align-items: start!important;
}
.modalForm .modal-body form p{
color:white;
font-weight: 400;
font-size: 18px;
}
.modalForm .modal input{
width: 100%!important;
border-radius: 20px;
padding: 7px;
}
.modalForm .buttonDoc{
background-color: #FFDE2B;
border-radius: 50px;
color: #30278E;
font-family: "Open Sans";
font-weight: bold;
font-size: 14px;
border: none;
padding-left: 35px;
padding-right: 35px;
padding-top: 16px;
padding-bottom: 16px;
}
.modalForm .formulaire{
width: 100%;
height: 100%;
}
.modalForm .formulaire p{
color: white;
padding: 0;
margin: 0;
margin-bottom: 10px;
}
.modalForm .formulaireFile input{
/* width: 100%; */
border-radius: 25px;
padding-top: 1%;
padding-bottom: 1%;
padding-right: 10px;
padding-left: 10px;
border: solid 1px #ececec;
margin-right: 5px;
}
.modalForm .formulaireFile .w100 input{
width: 100%;
margin-bottom: 15px;
}
.modalForm .formulaireFile .pa1{
font-family: "Open Sans";
font-size: 32px;
color: #FFDE2B;
font-weight: bold;
}
.modalForm .formulaireFile .pa2{
font-family: "Open Sans";
font-size: 18px;
color: white;
font-weight: 100;
}
.modalForm .formulaireFile .pa3{
font-family: "Open Sans";
font-size: 18px;
color: white;
font-weight: normal;
}
.modalForm .responsive-txt{
margin-left: 50px;
}
.modalForm .form-check-input[type="checkbox"] {
height: 20px !important;
width: 20px!important;
}
.modalForm .responsive-img{
width: 30%;
}
.modalForm .modal{
--bs-modal-header-border-width: 0px!important;
--bs-modal-footer-border-width: 0px!important;
--bs-modal-bg: white!important;
--bs-modal-bg: transparent!important;
--bs-modal-border-color:transparent!important;
--bs-modal-width: 828px!important;
}
.modalForm .modal-title{
color: #FFDE2B;
font-size: 32px;
font-weight: bold;
}
/* RESPONSIVE */
@media screen and (max-width: 1080px) {
.responsive-txt{
margin-left: 0px;
}
.responsive-img{
width: 100%;
margin-bottom: 25px;
}
}
</style>
{% endblock %}