templates/default/contact.html.twig line 1

Open in your IDE?
  1. {# BASE LOAD #}
  2. {% extends 'base.html.twig' %}
  3. {# TITLE TOP PAGE #}
  4. {% block title %}CPI | Contact{% endblock %}
  5. {# CSS #}
  6. {% block stylesheet %}
  7.     <meta property="og:image" content="{{asset('img/industrialisation/expertise.png')}}">
  8.     <link rel="stylesheet" href="{{ asset('css/contact.css')}}">
  9. {% endblock %}
  10. {# BODY HOME PAGE #}
  11. {% block body %}
  12. <main>
  13.             <div class="accueil">
  14.                 <div class="container text-light">
  15.                     <div class="row pt-5" >
  16.                         <div class="col-12">
  17.                             <div class="row">
  18.                                 <h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_50">Contact</h1>
  19.                                 <div class="col-6">
  20.                                     <div class="traitBlanc"></div>
  21.                                 </div>
  22.                             </div>
  23.                             
  24.                             
  25.                         </div>
  26.                     </div>
  27.                 </div>
  28.             </div>
  29.             <div class="accueil2" style="padding-bottom:40px;">
  30.                 <div class="container">
  31.                     <div class="row">
  32.                         <div class="col-12">
  33.                             <div class="row py-5" >
  34.                                 <h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_40" style="color:#0048FF;">{% trans %}contact-sous-titre{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':119})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
  35.                                 <br>
  36.                                 {% if app.request.get('send') == 'success' %}
  37.                                 <h4 style="color:green">{% if app.request.locale == 'fr' %}Votre message a bien été envoyé{% else %}Your message has been sent{% endif %}</h4>
  38.                                 {% endif %}
  39.                                 <form class="py-5" action="{{path('sendFormContact')}}" method="POST">
  40.                                     <div class="formulaire">
  41.                                         <div class="row my-4">
  42.                                             <div data-aos="fade-up" data-aos-duration="1000" class="col">
  43.                                                 <p><b>{% trans %}form-nom{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':97})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
  44.                                                 <input type="text" id="nom" name="nom" required>
  45.                                             </div>
  46.                                             <div data-aos="fade-up" data-aos-duration="1500" class="col">
  47.                                                 <p><b>{% trans %}form-prenom{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':98})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
  48.                                                 <input type="text" id="prenom" name="prenom" required>
  49.                                             </div>
  50.                                         </div>
  51.                                         <div class="row my-4">
  52.                                             <div data-aos="fade-up" data-aos-duration="1000" class=" col-12">
  53.                                                 <p><b>{% trans %}form-societe{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':99})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
  54.                                                 <input type="text" id="societe" name="societe" required>
  55.                                             </div>
  56.                                         </div>
  57.                                         <div class="row my-4">
  58.                                             <div data-aos="fade-up" data-aos-duration="1000" class="col-md-2 col-6">
  59.                                                 <p><b>{% trans %}form-bp{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':100})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
  60.                                                 <input type="text" id="bp" name="bp">
  61.                                             </div>
  62.                                             <div data-aos="fade-up" data-aos-duration="1500" class="col-md-5 col-6">
  63.                                                 <p><b>{% trans %}form-batiment{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':101})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
  64.                                                 <input type="text" id="batiment" name="batiment">
  65.                                             </div>
  66.                                             <div  data-aos="fade-up" data-aos-duration="1000"class="col-md-5 col-12">
  67.                                                 <p><b>{% trans %}form-cp{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':102})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
  68.                                                 <input type="text" id="cp" name="cp">
  69.                                             </div>
  70.                                         </div>
  71.                                         <div class="row my-4">
  72.                                             
  73.                                             <div data-aos="fade-up" data-aos-duration="1500" class="col-md-6 col-8">
  74.                                                 <p><b>{% trans %}form-ville{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':103})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
  75.                                                 <input type="text" id="ville" name="ville" required>
  76.                                             </div>
  77.                                             <div data-aos="fade-up" data-aos-duration="2000" class="col-md-6 col-12">
  78.                                                 <p><b>{% trans %}form-Pays{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':104})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b><span style="color:red;">*</span></p>
  79.                                                 <input type="text" id="pays" name="pays" required>
  80.                                             </div>
  81.                                         </div>
  82.                                         <div class="row mb-4">
  83.                                             <div data-aos="fade-up" data-aos-duration="1000" class="col-md-6 col-12">
  84.                                                 <p><b>{% trans %}form-email{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':105})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b><span style="color:red;">*</span></p>
  85.                                                 <input type="email" id="email" name="email" required>
  86.                                             </div>
  87.                                             <div data-aos="fade-up" data-aos-duration="1500" class="col-md-6 col-12">
  88.                                                 <p><b>{% trans %}form-tel{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':106})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
  89.                                                 <input type="text" id="telephone" name="telephone" required>
  90.                                             </div>
  91.                                         </div>
  92.                                         <div class="row mb-4">
  93.                                             <div data-aos="fade-up" data-aos-duration="1000" class="col-12">
  94.                                                 <p><b>{% trans %}form-message{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':107})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
  95.                                                 <textarea id="message" name="message"></textarea>
  96.                                             </div>
  97.                                         </div>
  98.                                        
  99.                                     </div>
  100.                                     <div class="d-flex flex-md-row flex-column">
  101.                                     
  102.                                         <div class="col-md-6 col-12" data-aos="fade-up" data-aos-duration="1000">
  103.                                             <div class="g-recaptcha" data-sitekey="6Lf0RGEnAAAAAJcwFd-oTX1mAE4Rqr7ENpEHL70L"></div>
  104.                                             <div class="error-message">
  105.                                             {% if app.request.query.has('recaptcha_error') %}
  106.                                                 <span style="color: red;">
  107.                                                  {% if app.request.locale == 'fr' %}La vérification reCAPTCHA a échoué. Veuillez réessayer.{% else %}The reCAPTCHA check failed. Please try again.{% endif %}
  108.                                                 </span>
  109.                                             {% endif %}
  110.                                             </div>
  111.                                         </div>
  112.                                         
  113.                                         <div  class="col-md-6 col-12 " data-aos="fade-up" data-aos-duration="1000"  data-aos="fade-up" data-aos-duration="1000"  >
  114.                                             
  115.                                                 <div class="form-check">
  116.                                                     <input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
  117.                                                     <label class="form-check-label" for="flexCheckDefault">
  118.                                                         {% trans %}form-condition1{% endtrans %} {% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':108})}}"><button type="button"  style="margin-left:10px;margin-right:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}<a href="{{ path('politique',{'locale':app.request.locale})}}" target="_blank">{% trans %}form-condition2{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':109})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</a>
  119.                                                     </label>
  120.                                                 </div>
  121.                                             
  122.                                         
  123.                                         </div>
  124.                                     </div>
  125.                                     <div class="col-12 ">
  126.                                                 <div class="bouton-page-contact">
  127.                                                     <button id="envoyer" type="submit" name="envoyer"> {% if app.request.locale == 'fr' %}Envoyer{% else %}Send{% endif %}</button>
  128.                                                 </div>
  129.                                             </div>
  130.                               
  131.                                 </form>
  132.                               
  133.                                     
  134. <!-- Google reCAPTCHA script -->
  135. <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  136. <script src="https://www.google.com/recaptcha/api.js?hl={{ app.request.locale == 'fr' ? 'fr' : 'en' }}"></script>
  137.                             </div>
  138.                             
  139.                             <div class="row">
  140.                             {% for res in adresses %}
  141.                                 <div class="col-lg-6">
  142.                                     <div class="titre">
  143.                                         <p  data-aos="fade-right" data-aos-duration="1000" > <b>{{res.nom}}</b> </p>
  144.                                         <img  class="img-fluid" src="{{asset('img/contact/Ligne 25.svg')}}" alt="">
  145.                                     </div>
  146.                                     <img  data-aos="fade-up" data-aos-duration="1000" class="img-fluid w-100" src="{{asset('uploads/adresses/'~res.image)}}" style="border-radius:20px" alt="{{res.nom}}">
  147.                                     <div  data-aos="fade-up" data-aos-duration="1000" class="row py-5 noBottom">
  148.                                         <div class="col-12 col-lg-8">
  149.                                             <div class="map">
  150.                                                {{res.map|raw}}
  151.                                             </div>
  152.                                         </div>
  153.                                         <div class="col-12 col-lg-4">
  154.                                             <p style="line-height:24px;"> {% if app.request.locale == 'en' %}{{res.texte1En|raw}}{% else %}{{res.texte1Fr|raw}}{% endif %} </p>
  155.                                         
  156.                                         </div>
  157.                                     </div>
  158.                                     <hr>
  159.                                     <div class="row">
  160.                                         <div class="infos">
  161.                                             <p  data-aos="fade-up" data-aos-duration="1000" >{% if app.request.locale == 'en' %}{{res.texte2En|raw}}{% else %}{{res.texte2Fr|raw}}{% endif %}</p>
  162.                                         </div>
  163.                                     </div>
  164.                                 </div>
  165.                                 {% endfor %}
  166.                                
  167.                             
  168.                             {% if app.user %}
  169.                              <a href="{{path('app_adresses_index')}}"><button class="btn btn-success">Gestion des adresses</button><br><br></a>
  170.                            
  171.                             {% endif %}
  172.                             <div class="row" style="display:none;">
  173.                                 <div class="row py-5">
  174.                                     <h1>{% trans %}contact-sous-titre2{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':120})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
  175.                                 </div>
  176.                                 <div class="col-4 col-lg-3">
  177.                                     <div class="carte">
  178.                                         <div class="image-carte">
  179.                                             <img class="img-fluid" src="img/contact/Contact.png" alt="">
  180.                                         </div>
  181.                                         <div class="texte-carte">
  182.                                             <p>Pascale Dine</p>
  183.                                         </div>
  184.                                     </div>
  185.                                 </div>
  186.                               
  187.                                 <div class="col-4 col-lg-3">
  188.                                     <div class="carte">
  189.                                         <div class="image-carte">
  190.                                             <img class="img-fluid" src="img/contact/Contact.png" alt="">
  191.                                         </div>
  192.                                         <div class="texte-carte">
  193.                                             <p>Alexandra Muser</p>
  194.                                         </div>
  195.                                     </div>
  196.                                 </div>
  197.                                 <div class="col-4 col-lg-3">
  198.                                     <div class="carte">
  199.                                         <div class="image-carte">
  200.                                             <img class="img-fluid" src="img/contact/Contact.png" alt="">
  201.                                         </div>
  202.                                         <div class="texte-carte">
  203.                                             <p>Mickael Bazelaire</p>
  204.                                         </div>
  205.                                     </div>
  206.                                 </div>
  207.                                 <div class="col-4 col-lg-3">
  208.                                     <div class="carte">
  209.                                         <div class="image-carte">
  210.                                             <img class="img-fluid" src="img/contact/Contact.png" alt="">
  211.                                         </div>
  212.                                         <div class="texte-carte">
  213.                                             <p>Julien Zins</p>
  214.                                         </div>
  215.                                     </div>
  216.                                 </div>
  217.                                 <div class="col-4 col-lg-3">
  218.                                     <div class="carte">
  219.                                         <div class="image-carte">
  220.                                             <img class="img-fluid" src="img/contact/Contact.png" alt="">
  221.                                         </div>
  222.                                         <div class="texte-carte">
  223.                                             <p>Caroline Delesalle</p>
  224.                                         </div>
  225.                                     </div>
  226.                                 </div>
  227.                             </div>
  228.                                {% if app.user %}
  229.                              
  230.                             <a href="{{path('app_teams_index')}}"><button class="btn btn-warning">Gestion des membres de l'équipe</button></a>
  231.                             {% endif %}
  232.                         </div>
  233.                     </div>
  234.                 </div>
  235.             </div>
  236.              </div>
  237.             {# LES COLLABORATEURS - CSS LIGNE 120 DANS CONTACT.CSS #}
  238.             <section class="section-collaborateur" style="margin-bottom:100px">
  239.             <div class="container">
  240.                 <div class="row">
  241.                     <div class="col-12 col-xl-5">
  242.                         <h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_40">{% trans %}contact-collaborateur{% endtrans %} {% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':127})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
  243.                     </div>
  244.                 </div>
  245.                 <div class="row">
  246.                 {% for res in teams %}
  247.                     <div class="col-xl-3 col-12 col-md-6 carte-collaborateur">
  248.                         <div class="carte-image" style="background: url('{{ asset('uploads/teams/'~res.photo) }}');">
  249.                             <div class="carte-texte d-flex align-items-center justify-content-center">
  250.                                 <p>{% if app.request.locale == 'fr' %}{{res.titreFr|raw}}{% else %}{{res.titreEn|raw}}{% endif %}</p>
  251.                             </div>
  252.                         </div>                  
  253.                         <p>{{res.prenom}} {{res.nom}}</p>
  254.                     </div>
  255.                {% endfor %}
  256.                    
  257.                     
  258.                 </div>
  259.             </div>
  260.           
  261.   
  262.               <script>
  263.     const carteImages = document.querySelectorAll('.carte-image');
  264.     carteImages.forEach(carteImage => {
  265.         // Fonction pour gérer l'affichage du texte
  266.         const toggleCarteTexte = () => {
  267.             const carteTexte = carteImage.querySelector('.carte-texte');
  268.             if (carteTexte.style.opacity === '0.7') {
  269.                 carteTexte.style.opacity = '0';
  270.                 carteTexte.style.transform = 'translateY(20px)';
  271.             } else {
  272.                 carteTexte.style.opacity = '0.7';
  273.                 carteTexte.style.transform = 'translateY(0)';
  274.             }
  275.         };
  276.         // Gestion des événements pour les ordinateurs
  277.         carteImage.addEventListener('mouseenter', () => {
  278.             const carteTexte = carteImage.querySelector('.carte-texte');
  279.             carteTexte.style.opacity = '0.7';
  280.             carteTexte.style.transform = 'translateY(0)';
  281.         });
  282.         carteImage.addEventListener('mouseleave', () => {
  283.             const carteTexte = carteImage.querySelector('.carte-texte');
  284.             carteTexte.style.opacity = '0';
  285.             carteTexte.style.transform = 'translateY(20px)';
  286.         });
  287.         // Gestion des événements pour les appareils tactiles
  288.         carteImage.addEventListener('touchend', (e) => {
  289.             e.preventDefault(); // Empêche le comportement par défaut du navigateur
  290.             toggleCarteTexte();
  291.         });
  292.     });
  293. </script>
  294. ``
  295.            
  296.             </section>
  297.         </main>
  298. {% endblock %}