{% extends 'base.html.twig' %}
{% block title %}Contact{% endblock %}
{% block body %}
{% set headerContent = content('Contact', 'Header') %}
{% if headerContent.picture is defined and headerContent.picture is not empty %}
{% set backgroundImage = headerContent.picture[0].path %}
{% else %}
{% set backgroundImage = 'empty' %}
{% endif %}
<header class="header-tracol header-contact col-lg-8 mx-auto" style="background-image: url({% if backgroundImage != 'empty' %}'/uploads/images/{{ backgroundImage }}'{% else %}{{ asset('img/map_tracol.png') }}{% endif %});background-size:cover;">
<div class="container-fluid">
<div class="col-lg-8 mx-auto div-svg-header">
<div class="header-habiter-div">
</div>
</div>
</div>
</header>
<div class="container-fluid" style="margin-top: 60px; margin-bottom: 80px">
{% set contactContent = content('Contact', 'Section-1') %}
<div class="col-lg-8 mx-auto div-svg-header pre-section">
<div class="col-lg-4" style="font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;">
<svg xmlns="http://www.w3.org/2000/svg" width="9.089" height="14.77" viewBox="0 0 9.089 14.77">
<path id="Tracé_76" data-name="Tracé 76" d="M682.759,232.441h-9.089v14.77l9.089-1.931Z" transform="translate(-673.669 -232.441)" fill="#f6a400"/>
</svg>
<h1 class="project-title contact">{% if contactContent.name is defined %}{{ contactContent.name }}{% else %}Contactez-nous{% endif %}</h1>
</div>
{% if contactContent.content is defined %}
<div class="separator"></div>
<div class="col-lg-6 pre-section-content">
{{ contactContent.content|raw }}
</div>
{% endif %}
</div>
{{ form_start(form) }}
<div id="div-form-contact" class="form-group col-lg-8 mx-auto" style="display: flex;">
<div class="col-lg-5" style="display: flex; flex-direction: column; margin-right: 50px">
<div class="form-material floating contact">
{{ form_widget(form.name, {'attr': { 'class':'form-control', 'placeholder': 'Nom*'}}) }}
{{ form_errors(form.name) }}
</div>
<div class="form-material floating contact">
{{ form_widget(form.firstname, {'attr': { 'class':'form-control', 'placeholder': 'Prénom*'}}) }}
{{ form_errors(form.firstname) }}
</div>
<div class="form-material floating contact">
{{ form_widget(form.mail, {'attr': { 'class':'form-control', 'placeholder': 'Mail*'}}) }}
{{ form_errors(form.mail) }}
</div>
<div class="form-material floating contact">
{{ form_widget(form.phone, {'attr': { 'class':'form-control', 'placeholder': 'Téléphone*'}}) }}
{{ form_errors(form.phone) }}
</div>
<div class="form-material floating contact">
{{ form_widget(form.file, {'attr': { 'class':'form-control file-select', 'placeholder': 'Joindre un fichier   (.doc, .pdf, .jpeg / max. 5mo) '}}) }}
{{ form_errors(form.file) }}
</div>
</div>
<div class="col-lg-6" style="display: flex; flex-direction: column">
<div class="form-material floating contact selectdiv">
{{ form_widget(form.object, {'attr': { 'class':'form-control'}}) }}
{{ form_errors(form.object) }}
</div>
<div class="form-material floating contact">
{{ form_widget(form.message, {'attr': { 'class':'form-control'}}) }}
{{ form_errors(form.message) }}
</div>
</div>
<div class="col-md-1">
<div class="submit-contact-button btn-contact">
<div>
<button id="login_user" class="col-lg-12 offset-lg-4btn btn-primary" type="submit" style="background-color: #f6a400; border-color: #f6a400;">
<?xml version="1.0" encoding="UTF-8"?>
<svg id="SVGDoc" width="19" height="15" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:avocode="https://avocode.com/" viewBox="0 0 19 15"><defs></defs><desc>Generated with Avocode.</desc><g><g transform="rotate(90 9.5 7.5)"><title>np_arrow-up_888648_000000</title><path d="M16.10552,5.28141v0l-6.60555,-6.60459v0l-6.60554,6.60459v0l1.3808,1.3808v0l4.23854,-4.23949v0v13.90055v0h1.97232v0v-13.90055v0l4.23855,4.23949v0z" fill="#ffffff" fill-opacity="1"></path></g></g></svg>
</button>
</div>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
{% endblock %}