templates/contact/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ setting.siteName }} : contactez-nous{% endblock %}
  3. {% block body %}
  4. <section class="container py-5">
  5.     <div class="row pt-3">
  6.         <div class="col">
  7.             {# Breadcrumbs #}
  8.             <div class="row">
  9.                 <div class="col small">
  10.                     <nav style="--bs-breadcrumb-divider: url(&#34;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E&#34;);"
  11.                         aria-label="breadcrumb">
  12.                         <ol class="breadcrumb small">
  13.                             <li class="breadcrumb-item"><a href="{{ path('app_home') }}"
  14.                                     class="text-decoration-none text-dark">Accueil</a></li>
  15.                             <li class="breadcrumb-item active" aria-current="page">Contact</li>
  16.                         </ol>
  17.                     </nav>
  18.                 </div>
  19.             </div>
  20.         </div>
  21.     </div>
  22.     <div class="row d-flex justify-content-center pt-3">
  23.         <div class="col-lg-8 col-sm-12">
  24.             <h1 class="text-center mb-2 color1 fw-700 text-uppercase" data-aos="fade-down" data-aos-duration="3000">
  25.                 Contactez-nous
  26.             </h1>
  27.             <p class="lead pt-5 text-center">
  28.                 <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4Zm8-7L4 8v10h16V8l-8 5Zm0-2l8-5H4l8 5ZM4 8V6v12V8Z"/></svg>
  29.                 {{ setting.siteEmail }}
  30.             </p>
  31.             <p class="lead pb-5 text-center">
  32.                 <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="currentColor"><path d="m29.631 12.63l.33 1.47c.05.223.05.444.008.652A1 1 0 0 1 29 16h-2.255l-1.483-1.977v-.002A2.544 2.544 0 0 0 23.22 13H23v-1.69c0-.722-.588-1.31-1.31-1.31h-1.38c-.722 0-1.31.588-1.31 1.31v1.68h-6v-1.68c0-.722-.588-1.31-1.31-1.31h-1.38C9.588 10 9 10.588 9 11.31V13h-.22c-.808 0-1.563.381-2.05 1.03L5.254 16H3a1 1 0 0 1-.969-1.248a1.544 1.544 0 0 1 .008-.652l.32-1.47A7.199 7.199 0 0 1 9.379 7h13.242a7.18 7.18 0 0 1 7.01 5.63Z"/><path d="m24.46 14.62l3.66 4.88A9.366 9.366 0 0 1 30 25.13v3.31c0 .86-.7 1.56-1.56 1.56H3.56C2.7 30 2 29.3 2 28.44v-3.31c0-2.03.66-4.01 1.88-5.63l3.65-4.87c.3-.4.76-.63 1.25-.63h.91c.17 0 .31-.14.31-.31v-2.38c0-.17.14-.31.31-.31h1.38c.17 0 .31.14.31.31v2.38c0 .17.14.31.31.31h7.38c.17 0 .31-.14.31-.31v-2.38c0-.17.14-.31.31-.31h1.38c.17 0 .31.14.31.31v2.38c0 .17.14.31.31.31h.91c.49 0 .95.23 1.24.62ZM13.698 19c.17 0 .311-.14.301-.312v-1.376a.313.313 0 0 0-.311-.312h-1.377c-.17 0-.311.14-.311.312v1.376c0 .171.14.312.322.312h1.376Zm3 0a.3.3 0 0 0 .302-.312v-1.376a.314.314 0 0 0-.312-.312h-1.376a.313.313 0 0 0-.312.312v1.376c0 .171.14.312.322.312h1.376Zm1.623 0h1.377a.3.3 0 0 0 .302-.312v-1.376a.314.314 0 0 0-.312-.312h-1.377c-.17 0-.311.14-.311.312v1.376c0 .171.14.312.322.312Zm-4.623 3c.17 0 .311-.14.301-.312v-1.376a.313.313 0 0 0-.311-.312h-1.377c-.17 0-.311.14-.311.312v1.376c0 .171.14.312.322.312h1.376Zm1.623 0h1.377a.3.3 0 0 0 .302-.312v-1.376a.314.314 0 0 0-.312-.312h-1.376a.313.313 0 0 0-.312.312v1.376c0 .171.14.312.322.312Zm4.377 0a.3.3 0 0 0 .302-.312v-1.376a.314.314 0 0 0-.312-.312h-1.377c-.17 0-.311.14-.311.312v1.376c0 .171.14.312.322.312h1.376Zm-7.377 3h1.377c.17 0 .311-.14.301-.312v-1.376a.313.313 0 0 0-.311-.312h-1.377c-.17 0-.311.14-.311.312v1.376c0 .171.14.312.322.312Zm4.377 0a.3.3 0 0 0 .302-.312v-1.376a.314.314 0 0 0-.312-.312h-1.376a.313.313 0 0 0-.312.312v1.376c0 .171.14.312.322.312h1.376Zm1.623 0h1.377a.3.3 0 0 0 .302-.312v-1.376a.314.314 0 0 0-.312-.312h-1.377c-.17 0-.311.14-.311.312v1.376c0 .171.14.312.322.312Z"/></g></svg>
  33.                 {{ setting.siteTelephone }}
  34.             </p>
  35.             <p class="text-center mb-5 contact-info" data-aos="flip-left" data-aos-duration="1500">
  36.                 Nos études sont ouvertes du lundi au vendredi<br>de 09h00 à 12h30 et de 14h00 à 18h00.
  37.             </p>
  38.             <p class="text-center small mb-5" data-aos="flip-left" data-aos-duration="1500">
  39.                 Remplissez le formulaire de contact ci-dessous,<br>
  40.                 nous reviendrons vers vous dans les meilleurs délais
  41.             </p>
  42.             {{ form_start(form) }}
  43.                 {# {% for message in app.flashes('success') %}
  44.                     <div class="alert alert-success">
  45.                         {{ message }}
  46.                     </div>
  47.                 {% endfor %} #}
  48.                 {% for message in app.flashes('success') %}
  49.                     <!-- Button trigger modal -->
  50.                     {# <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
  51.                         Launch demo modal
  52.                     </button> #}
  53.                     <!-- Modal -->
  54.                     <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel"
  55.                         aria-hidden="true">
  56.                         <div class="modal-dialog">
  57.                             <div class="modal-content">
  58.                                 <div class="modal-header">
  59.                                     <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  60.                                 </div>
  61.                                 <div class="modal-body pb-5">
  62.                                     <img src="{{ asset('assets/img/logo.webp') }}" alt="Laroche et Associés" class="img-fluid">
  63.                                     <br>
  64.                                     <p class="text-success mt-4">{{ message }}</p>
  65.                                 </div>
  66.                             </div>
  67.                         </div>
  68.                     </div>
  69.                 {% endfor %}
  70.                 <div class="bg-danger">
  71.                     {{ form_errors(form) }}
  72.                 </div>
  73.                 <div class="row">
  74.                     <div class="col-lg-6 col-sm-12 form-group mb-5">
  75.                         {{ form_row(form.prenom) }}
  76.                     </div>
  77.                     <div class="col-lg-6 col-sm-12 form-group mb-5">
  78.                         {{ form_row(form.nom) }}
  79.                     </div>
  80.                 </div>
  81.                 <div class="row">
  82.                     <div class="col-lg-6 col-sm-12 form-group mb-5">
  83.                         {{ form_row(form.email) }}
  84.                     </div>
  85.                     <div class="col-lg-6 col-sm-12 form-group mb-5">
  86.                         {{ form_row(form.telephone) }}
  87.                     </div>
  88.                 </div>
  89.                 {# <div class="row">
  90.                     <div class="col-lg-6 col-sm-12 form-group mb-5">
  91.                         {{ form_row(form.objet) }}
  92.                     </div>
  93.                     <div class="col-lg-6 col-sm-12 form-group mb-5">
  94.                         {{ form_row(form.rappel) }}
  95.                     </div>
  96.                 </div> #}
  97.                 <div class="row">
  98.                     <div class="col form-group mb-5">
  99.                         {{ form_row(form.message) }}
  100.                     </div>
  101.                 </div>
  102.                 <div class="form-group mb-3 text-center">
  103.                     <p>Veuillez recopier le code anti-spam :</p>
  104.                     {{ form_row(form.captcha, {'label': false}) }}
  105.                 </div>
  106.                 <div class="row">
  107.                     <div class="col text-center">
  108.                         <div class="form-group mb-0">
  109.                             {{ form_row(form.envoyer) }}
  110.                         </div>
  111.                     </div>
  112.                 </div>
  113.             {{ form_end(form) }}
  114.         </div>
  115.     </div>
  116.     <div class="row py-5">
  117.         <div class="col mt-5 lh-1">
  118.             {{ setting.siteRgpd|raw }}
  119.         </div>
  120.     </div>
  121. </section>
  122. <script>
  123.     let selectform = document.querySelector('.select-color');
  124.     selectform.firstElementChild.setAttribute('disabled', true);
  125.     selectform.firstElementChild.setAttribute('hidden', true);
  126. </script>
  127. {% endblock %}