templates/front/bloc/contact.html.twig line 1

Open in your IDE?
  1. <!-- début section-contact -->
  2. <div class="container section-contact reveal">
  3.     <h2 class="text-center titre-contact" id="sectionContact">{{ 'front.contact.contact_us'|trans({}, 'front') }}
  4.     </h2>
  5.     <p class="text-center">{{ 'front.contact.text'|trans({}, 'front') }}</p>
  6.     {{ form_start(form, {attr: {autocomplete: 'off', 'novalidate': 'novalidate', 'class': 'form-contact-content' ,'id':"contact-form"} }) }}
  7.     <div class="row justify-content-md-center contact-box">
  8.         {% include 'front/layouts/flashes.html.twig' %}
  9.         {{ form_widget(form.origin)}}
  10.         {{ form_widget(form.originId)}}
  11.         <div class="col-md-3">
  12.             {% if form.name is defined %}
  13.                 {{ form_widget(form.name, { 'attr': {'class': 'form-background-nom-1 form-control'} })}}
  14.                 {{ form_errors(form.name ) }}
  15.             {% endif %}
  16.             {% if form.email is defined %}
  17.                 {{ form_widget(form.email, { 'attr': {'class': 'form-background-email-1 form-control'} })}}
  18.                 {{ form_errors(form.email) }}
  19.             {% endif %}
  20.         </div>
  21.         <div class="col-md-3">
  22.             {% if form.entreprise is defined %}
  23.                 {{ form_widget(form.entreprise, { 'attr': {'class': 'form-background-entreprise-1 form-control'} })}}
  24.                 {{ form_errors(form.entreprise ) }}
  25.             {% endif %}
  26.             {% if form.phone is defined %}
  27.                 {{ form_widget(form.phone, { 'attr': {'class': 'form-background-tel-1 form-control'} })}}
  28.                 {{ form_errors(form.phone) }}
  29.             {% endif %}
  30.         </div>
  31.         <div class="col-md-6">
  32.             <div class="form-outline">
  33.                 {{ form_widget(form.message, { 'attr': {'class': 'form-control msg-contact form-control'} })}}
  34.                 {{ form_errors(form.message) }}
  35.             </div>
  36.         </div>
  37.     </div>
  38.     
  39.     <div class="row">
  40.         <div class="col-lg-6 col-md-6 col-sm-1">
  41.         
  42.         </div>
  43.         <div class="col-lg-4 col-md-3  col-sm-9">
  44.             <div class="form-check condition">
  45.                 {{ form_widget(form.isAccepted, ( {'attr':{'class': 'form-check-input check-bx-contact'} }) ) }}
  46.                 <span class="define-msg-cond"> {{ 'front.infos.msg_mentions'|trans({}, 'front') }}
  47.                     <span class="link_footer">{{ menuMainHeader('pagePopine', id_mention_legale_page, 'front.menu.mentions'|trans({}, 'front')) }}</span>
  48.                 </span>             
  49.                 <label class="form-check-label" for="flexCheckDefault"></label>
  50.             </div>
  51.         </div>
  52.     
  53.         <div class="col-lg-2 col-md-3 col-sm-12 condition-btn">
  54.             <button type="submit" class="form-control btn-condition">{{ 'front.actions.send'|trans({}, 'front') }}</button>
  55.         </div>
  56.     </div>
  57. </div>
  58. {{ form_end(form) }}
  59. {% block javascripts %}
  60.         <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  61. {% endblock %}