{% extends 'base.html.twig' %}
{% block title %}Haribo Pro - Contact{% endblock %}
{% block body %}
<div class="bg-blue" id="contact">
<div class="mt-6-pages" id="contactFirstChild">
<hgroup class="mb-0 text-center">
<h1>CONTACTEZ-NOUS</h1>
<p>Une question ? Complétez les informations ci-dessous pour nous contacter uniquement dans le cadre de l'opération.</p>
</hgroup>
{{ form_start(form, {'attr': {'novalidate': 'novalidate', 'id': 'form-contact'}}) }}
<div class="form-bloc-wrapper container-form shadow container pb-5">
<div class="form-container">
<div class="form-content">
<div class="form-row row">
<div class="form-group col-md-6">
<span class="hide-error">{{ form_label(form.lastname) }}</span>
{{ form_widget(form.lastname, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(form.lastname) }}
</div>
<div class="form-group col-md-6">
<span class="hide-error">{{ form_label(form.firstname) }}</span>
{{ form_widget(form.firstname, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(form.firstname) }}
</div>
</div>
{# <div class="form-group">
<span class="hide-error">{{ form_label(form.companyName) }}</span>
{{ form_widget(form.companyName, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(form.companyName) }}
</div> #}
<div class="form-group">
<span class="hide-error">{{ form_label(form.email) }}</span>
{{ form_widget(form.email, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(form.email) }}
</div>
<div class="form-group">
<span class="hide-error">{{ form_label(form.subject) }}</span>
{{ form_widget(form.subject, { 'attr': {'class': 'form-control'} }) }}
{{ form_errors(form.subject) }}
</div>
<div class="form-group">
<span class="hide-error">{{ form_label(form.message) }}</span>
{{ form_widget(form.message, { 'attr': {'class': 'form-control form-control-msg form-control-msg-contact'} }) }}
{{ form_errors(form.message) }}
</div>
</div>
</div>
<div class="form-block-wrapper text-center">
<button
class="btn btn-primary mt-4 g-recaptcha"
data-sitekey="6LeZVT8lAAAAAKvTtupXCDjoW1-EIfL828khi6pK"
data-callback='onSubmit'
data-action='submit'>Nous contacter
</button>
<p class="mt-3 text-center">*Champs obligatoires</p>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="https://www.google.com/recaptcha/api.js"></script>
<script>
function onSubmit(token) {
document.getElementById("form-contact").submit();
}
</script>
{% endblock %}