{#
component: form
heading: [{
title {string}: Titre
titleAnnex {string}: Titre annexe
}]
image {image}:
size: {
width: "1440",
height: "1045"
}
form {
action {string}: Action du formulaire
inputs {array}: tableau d'inputs
buttonText {string}: Texte du bouton d'envoi
information {string}: Texte d'information
mandatory {string}: Texte de champs obligatoires
}
#}
{% set props = {
heading:null,
image:null,
form:null
}|merge(props|default({})) %}
<section
data-component="contact-form" class="ContactForm-component" id="fm">
{# Heading #}
{% include "component/heading.html.twig" with {
props: props.heading
} %}
<div
class="ContactForm-content">
{# Background Image #}
<div class="ContactForm-backgroundImage">
{% include "component/image.html.twig" with {
props: props.image
} %}
{# {% include "component/picture.html.twig" with {
props: props.image|merge({
srcWebp: (props.image.src) ? asset(props.image.src | imagine_filter('convert_img_to_webp')) : ''
})
} %} #}
</div>
<div class="l-container">
<div
class="l-row u-center">
{# Main #}
<div class="l-column ContactForm-main" style="background-image: url({{ asset('build/images/quote-form-pattern.jpg') }});">
{% include "component/form/form.html.twig" with {
props: props.form
} %}
</div>
</div>
</div>
</div>
</section>