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

Open in your IDE?
  1. <section class="contact">
  2.     <div class="container">
  3.         <div class="row">
  4.             <div class="col-md-5">
  5.                 {% set titleSplited = contactContent.title|split(',') %}
  6.                 <h1>
  7.                     {% if titleSplited|length > 1 %}
  8.                         <span>{{ titleSplited.0 }}</span><br>
  9.                         <span class="gold">{{ titleSplited.1 }}</span>
  10.                     {% else %}
  11.                         <span>{{ contactContent.title }}</span>
  12.                     {% endif %}
  13.                     {% if app.user %}
  14.                         <a href="{{ path('back_content_edit', {'id': contactContent.id}) }}"><i class="fas fa-pencil-alt red"></i></a>
  15.                     {% endif %}
  16.                 </h1>
  17.                 <div class="col-md-6 gold-line"></div>
  18.                 <div class="description white pt-5 pb-5">
  19.                     {{ contactContent.text|raw }}
  20.                 </div>
  21.             </div>
  22.             <div class="col-md-1"></div>
  23.             <div class="col-md-6">
  24.                 {{ form_start(form, {'attr': {'id': 'contactForm'}}) }}
  25.                     {{ form_widget(form.firstname) }}
  26.                     {{ form_widget(form.lastname) }}
  27.                     {{ form_widget(form.email) }}
  28.                     {{ form_widget(form.phone) }}
  29.                     {{ form_widget(form.message, {'attr': {'rows': 4, 'class': 'mb-4'}}) }}
  30.                     <div class="checkbox d-flex mt-2 mb-4">
  31.                         <label for="contact_sign" class="confirm-check">
  32.                             {{ form_widget(form.sign) }}
  33.                             <span>{{ form_label(form.sign) }}</span>
  34.                         </label>
  35.                     </div>
  36.                     <div id="messageForm"></div>
  37.                     <input type="text" name="website" value="" id="website">
  38.                     <button type="submit" class="btn-gold bg-gold white border-0">Envoyer</button>
  39.                 {{ form_end(form) }}
  40.             </div>
  41.         </div>
  42.     </div>
  43. </section>