templates\contact\index.html.twig line 1

Open in your IDE?
  1. {% extends 'front/base.html.twig' %}
  2. {% block title %}{{ parent() ~ " | Contact" }}{% endblock %}
  3. {% block content %}
  4.     <!-- Breadcrumb -->
  5.     <div class="site-breadcrumb">
  6.         <div class="container">
  7.             <div class="row">
  8.                 <div class="col-md-12">
  9.                     <ul class="site-breadcrumb-list">
  10.                         <li class="site-breadcrumb-list-item"><a href="/">Accueil</a></li>
  11.                         <li class="site-breadcrumb-list-item is-current">
  12.                             <a href="/contact.html"> Contact </a>
  13.                         </li>
  14.                     </ul>
  15.                 </div>
  16.             </div>
  17.         </div>
  18.     </div>
  19.     <!-- Map -->
  20.     <div class="c-map" id="c-map"></div>
  21.     <!-- Informations -->
  22.     <div class="c-informations">
  23.         <div class="container">
  24.             <div class="row align-items-center">
  25.                 <div class="col-md-6 py-3 py-sm-0">
  26.                     <h1 class="c-informations-title">Nous contacter</h1>
  27.                     <ul class="c-informations-list">
  28.                         <li class="c-informations-list-item">
  29.                             <h5>PITAXES Sàrl</h5>
  30.                         </li>
  31.                         <li class="c-informations-list-item">
  32.                             <i class="fas fa-envelope"></i>info@pitaxes.ch
  33.                         </li>
  34.                         <li class="c-informations-list-item">
  35.                             <i class="fas fa-map-marker-alt"></i>Chemin du Pavillon 2, 1218
  36.                             Le Grand-Saconnex, Switzerland
  37.                         </li>
  38.                         <li class="c-informations-list-item">
  39.                             <i class="fas fa-phone-alt"></i>+41 22 596 48 74
  40.                         </li>
  41.                     </ul>
  42.                 </div>
  43.                 <div class="col-md-6">
  44.                     <div class="c-form">
  45.                         {% if isSent %}
  46.                             <div class="alert alert-success" role="alert">
  47.                                 Votre message a bien été envoyé. Nous reviendrons vers vous dans les meilleurs délais.
  48.                             </div>
  49.                         {% endif %}
  50.                         {{ form_start(form) }}
  51.                         <h4>Formulaire de contact</h4>
  52.                         {{ form_row(form.name) }}
  53.                         {{ form_row(form.lastname) }}
  54.                         {{ form_row(form.email) }}
  55.                         {{ form_row(form.phone) }}
  56.                         {{ form_row(form.message) }}
  57.                         {{ form_widget(form.recaptcha) }}
  58.                         {{ form_errors(form.recaptcha) }}
  59.                         <button class="btn btn-primary font-weight-bold" type="submit">
  60.                             ENVOYER
  61.                         </button>
  62.                         {{ form_end(form) }}
  63.                         <ul class="c-form-social">
  64.                             <li class="c-form-social-link">
  65.                                 <a href="https://ch.linkedin.com/company/pitaxes-sarl" target="_blank">
  66.                                     <i class="fab fa-linkedin-in"></i>
  67.                                 </a>
  68.                             </li>
  69.                         </ul>
  70.                     </div>
  71.                 </div>
  72.             </div>
  73.         </div>
  74.     </div>
  75.     <!-- Accessibilité -->
  76.     <div class="c-accessibility">
  77.         <div class="container">
  78.             <div class="row">
  79.                 <div class="col-md-6">
  80.                     <h3>Accessibilité</h3>
  81.                     <p>
  82.                         Nous sommes dans le bâtiment Octagon au 3ème étage, à l'étage vous trouverez une borne
  83.                         interactive qui vous accueillera.
  84.                     </p>
  85.                     <ul class="c-accessibility-list">
  86.                         <li class="c-accessibility-list-item">
  87.                             <i class="fas fa-bus"></i>
  88.                             <a
  89.                                     target="_blank"
  90.                                     href="https://www.google.ch/maps/dir//Chemin+du+Pavillon+2,+Le+Grand-Saconnex/@46.221219,6.1016238,13z/data=!4m9!4m8!1m0!1m5!1m1!1s0x478c646195404e15:0xcec25ccdfac0742d!2m2!1d6.1221518!2d46.2384691!3e3"
  91.                             >Voir plus</a
  92.                             >
  93.                         </li>
  94.                         <li class="c-accessibility-list-item">
  95.                             <i class="fas fa-car"></i> Des places de parking visiteurs sont
  96.                             à votre disposition, le temps de notre rencontre.
  97.                         </li>
  98.                         <li class="c-accessibility-list-item">
  99.                             <i class="fas fa-clock"></i>
  100.                             Horaires d’ouvertures: Du lundi au vendredi 09h00 à 12h30 -
  101.                             13h30 à 17h30
  102.                         </li>
  103.                     </ul>
  104.                 </div>
  105.             </div>
  106.         </div>
  107.     </div>
  108. {% endblock %}
  109. {% block javascripts %}
  110.     {{ parent() }}
  111.     {{ include('gmap.html.twig') }}
  112.     <script async defer src='{{ preload(asset('assets/js/phone.js'),{as: 'script'}) }}'></script>
  113.     <script type="text/javascript">
  114.         // When the window has finished loading create our google map below
  115.         google.maps.event.addDomListener(window, "load", init);
  116.         function init() {
  117.             // Basic options for a simple Google Map
  118.             // For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions
  119.             var mapOptions = {
  120.                 // How zoomed in you want the map to start at (always required)
  121.                 zoom: 13,
  122.                 // The latitude and longitude to center the map (always required)
  123.                 center: new google.maps.LatLng(46.2384691, 6.1199631), // New York
  124.                 // How you would like to style the map.
  125.                 // This is where you would paste any style found on Snazzy Maps.
  126.                 styles: [
  127.                     {
  128.                         featureType: "administrative",
  129.                         elementType: "all",
  130.                         stylers: [
  131.                             {
  132.                                 saturation: "-100",
  133.                             },
  134.                         ],
  135.                     },
  136.                     {
  137.                         featureType: "administrative.province",
  138.                         elementType: "all",
  139.                         stylers: [
  140.                             {
  141.                                 visibility: "off",
  142.                             },
  143.                         ],
  144.                     },
  145.                     {
  146.                         featureType: "landscape",
  147.                         elementType: "all",
  148.                         stylers: [
  149.                             {
  150.                                 saturation: -100,
  151.                             },
  152.                             {
  153.                                 lightness: 65,
  154.                             },
  155.                             {
  156.                                 visibility: "on",
  157.                             },
  158.                         ],
  159.                     },
  160.                     {
  161.                         featureType: "poi",
  162.                         elementType: "all",
  163.                         stylers: [
  164.                             {
  165.                                 saturation: -100,
  166.                             },
  167.                             {
  168.                                 lightness: "50",
  169.                             },
  170.                             {
  171.                                 visibility: "simplified",
  172.                             },
  173.                         ],
  174.                     },
  175.                     {
  176.                         featureType: "road",
  177.                         elementType: "all",
  178.                         stylers: [
  179.                             {
  180.                                 saturation: "-100",
  181.                             },
  182.                         ],
  183.                     },
  184.                     {
  185.                         featureType: "road.highway",
  186.                         elementType: "all",
  187.                         stylers: [
  188.                             {
  189.                                 visibility: "simplified",
  190.                             },
  191.                         ],
  192.                     },
  193.                     {
  194.                         featureType: "road.arterial",
  195.                         elementType: "all",
  196.                         stylers: [
  197.                             {
  198.                                 lightness: "30",
  199.                             },
  200.                         ],
  201.                     },
  202.                     {
  203.                         featureType: "road.local",
  204.                         elementType: "all",
  205.                         stylers: [
  206.                             {
  207.                                 lightness: "40",
  208.                             },
  209.                         ],
  210.                     },
  211.                     {
  212.                         featureType: "transit",
  213.                         elementType: "all",
  214.                         stylers: [
  215.                             {
  216.                                 saturation: -100,
  217.                             },
  218.                             {
  219.                                 visibility: "simplified",
  220.                             },
  221.                         ],
  222.                     },
  223.                     {
  224.                         featureType: "water",
  225.                         elementType: "geometry",
  226.                         stylers: [
  227.                             {
  228.                                 hue: "#ffff00",
  229.                             },
  230.                             {
  231.                                 lightness: -25,
  232.                             },
  233.                             {
  234.                                 saturation: -97,
  235.                             },
  236.                         ],
  237.                     },
  238.                     {
  239.                         featureType: "water",
  240.                         elementType: "labels",
  241.                         stylers: [
  242.                             {
  243.                                 lightness: -25,
  244.                             },
  245.                             {
  246.                                 saturation: -100,
  247.                             },
  248.                         ],
  249.                     },
  250.                 ],
  251.             };
  252.             // Get the HTML DOM element that will contain your map
  253.             // We are using a div with id="map" seen below in the <body>
  254.             var mapElement = document.getElementById("c-map");
  255.             // Create the Google Map using our element and options defined above
  256.             var map = new google.maps.Map(mapElement, mapOptions);
  257.             $icon = "/assets/img/map-marker.svg";
  258.             // Let's also add a marker while we're at it
  259.             var marker = new google.maps.Marker({
  260.                 position: new google.maps.LatLng(46.2384691, 6.1199631),
  261.                 map: map,
  262.                 icon: new google.maps.MarkerImage(
  263.                     $icon,
  264.                     null,
  265.                     null,
  266.                     null,
  267.                     new google.maps.Size(50, 50)
  268.                 ),
  269.                 title: "Snazzy!",
  270.             });
  271.         }
  272.     </script>
  273. {% endblock %}