templates/app/contact/contact.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Haribo Pro - Contact{% endblock %}
  3. {% block body %}
  4.     <div class="bg-blue" id="contact">
  5.         <div class="mt-6-pages" id="contactFirstChild">
  6.             <hgroup class="mb-0 text-center">
  7.                 <h1>CONTACTEZ-NOUS</h1>
  8.                 <p>Une question ? ComplĂ©tez les informations ci-dessous pour nous contacter uniquement dans le cadre de l'opĂ©ration.</p>
  9.             </hgroup>
  10.             {{ form_start(form, {'attr': {'novalidate': 'novalidate', 'id': 'form-contact'}}) }}
  11.                 <div class="form-bloc-wrapper container-form  shadow container pb-5">
  12.                     <div class="form-container">
  13.                         <div class="form-content">
  14.                             <div class="form-row row">
  15.                                 <div class="form-group col-md-6">
  16.                                     <span class="hide-error">{{ form_label(form.lastname) }}</span>
  17.                                     {{ form_widget(form.lastname, { 'attr': {'class': 'form-control'} }) }}
  18.                                     {{ form_errors(form.lastname) }}
  19.                                 </div>
  20.                                 <div class="form-group col-md-6">
  21.                                     <span class="hide-error">{{ form_label(form.firstname) }}</span>
  22.                                     {{ form_widget(form.firstname, { 'attr': {'class': 'form-control'} }) }}
  23.                                     {{ form_errors(form.firstname) }}
  24.                                 </div>
  25.                             </div>
  26.                             {# <div class="form-group">
  27.                                 <span class="hide-error">{{ form_label(form.companyName) }}</span>
  28.                                 {{ form_widget(form.companyName, { 'attr': {'class': 'form-control'} }) }}
  29.                                 {{ form_errors(form.companyName) }}
  30.                             </div> #}
  31.                             <div class="form-group">
  32.                                 <span class="hide-error">{{ form_label(form.email) }}</span>
  33.                                 {{ form_widget(form.email, { 'attr': {'class': 'form-control'} }) }}
  34.                                 {{ form_errors(form.email) }}
  35.                             </div>
  36.                             <div class="form-group">
  37.                                 <span class="hide-error">{{ form_label(form.subject) }}</span>
  38.                                 {{ form_widget(form.subject, { 'attr': {'class': 'form-control'} }) }}
  39.                                 {{ form_errors(form.subject) }}
  40.                             </div>
  41.                             <div class="form-group">
  42.                                 <span class="hide-error">{{ form_label(form.message) }}</span>
  43.                                 {{ form_widget(form.message, { 'attr': {'class': 'form-control form-control-msg form-control-msg-contact'} }) }}
  44.                                 {{ form_errors(form.message) }}
  45.                             </div>
  46.                         </div>
  47.                     </div>
  48.                     <div class="form-block-wrapper text-center">
  49.                         <button
  50.                                 class="btn btn-primary mt-4 g-recaptcha"
  51.                                 data-sitekey="6LeZVT8lAAAAAKvTtupXCDjoW1-EIfL828khi6pK"
  52.                                 data-callback='onSubmit'
  53.                                 data-action='submit'>Nous contacter
  54.                         </button>
  55.                         <p class="mt-3 text-center">*Champs obligatoires</p>
  56.                     </div>
  57.                 </div>
  58.             {{ form_end(form) }}
  59.         </div>
  60.     </div>
  61. {% endblock %}
  62. {% block javascripts %}
  63.     {{ parent() }}
  64.     <script src="https://www.google.com/recaptcha/api.js"></script>
  65.     <script>
  66.         function onSubmit(token) {
  67.             document.getElementById("form-contact").submit();
  68.         }
  69.     </script>
  70. {% endblock %}