<section class="contact">
<div class="container">
<div class="row">
<div class="col-md-5">
<p class="cat">Contact</p>
{% set titleSplited = contactContent.title|split(',') %}
<h1>
{% if titleSplited|length > 1 %}
<span>{{ titleSplited.0 }}</span><br>
<span class="gold">{{ titleSplited.1 }}</span>
{% else %}
<span>{{ contactContent.title }}</span>
{% endif %}
{% if app.user %}
<a href="{{ path('back_content_edit', {'id': contactContent.id}) }}"><i class="fas fa-pencil-alt" style="color:red"></i></a>
{% endif %}
</h1>
<!--div class="col-md-6 gold-line"></div-->
<div class="description">
{{ contactContent.text|raw }}
</div>
</div>
<div class="col-md-1"></div>
<div class="col-md-6">
{{ form_start(form, {'attr': {'id': 'contactForm'}}) }}
{{ form_widget(form.firstname) }}
{{ form_widget(form.lastname) }}
{{ form_widget(form.email) }}
{{ form_widget(form.phone) }}
{{ form_widget(form.message, {'attr': {'rows': 4, 'class': 'mb-4'}}) }}
<div class="checkbox d-flex mt-2 mb-4">
<label for="contact_sign" class="confirm-check">
{{ form_widget(form.sign) }}
<span>{{ form_label(form.sign) }}</span>
</label>
</div>
<div id="messageForm"></div>
<input type="text" name="website" value="" id="website">
<button type="submit" class="btn-gold bg-gold white border-0">Envoyer</button>
{{ form_end(form) }}
</div>
</div>
</div>
</section>