{#
component: footer-contact
contactTitle {string}: Titre du contact
mapLink {string}: Lien vers l'adresse google maps
address {string}: Adresse
email {string}: Email
phone {string}: Numéro de téléphone
image {image}:
size: {
width: "1440",
height: "835"
}
form {
action {string}: Action du formulaire
title {string}: titre 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 = {
contactTitle: "footer.contact.title"|trans,
mapLink:"https://www.google.com/maps/search/?api=1&query=Port%20du%20Crouesty,%20Route%20du%20Petit%20Mont%2056640%20Arzon,%20France",
address: "Port du Crouesty, Route du Petit Mont <br>56640 Arzon, France",
email: "reservation@miramar-lacigale.com",
phone: "TEL : 02 97 53 49 13",
schedule: "footer.horaire"|trans,
image: asset('build/images/footer-contact-background.jpg'),
form:{
action: url,
title:"footer.contact.rappel"|trans,
inputs: inputs_elements,
buttonText:"footer.contact.bouton"|trans,
}
}|merge(props|default({})) %}
<div
data-component="footer-contact" class="FooterContact-component" id="ffm">
{# Background image #}
<div class="FooterContact-backgroundImage">
{% include "component/image.html.twig" with {
props: {
src:props.image
}
} %}
</div>
<div class="l-container">
<div
class="l-row">
{# Main #}
<div class="l-column FooterContact-main opened" ref="main">
{% for message in app.flashes('footer_success') %}
<div class="footer-form-message success" role="alert">
{{ message }}
</div><br>
{% endfor %}
{% for message in app.flashes('footer_error') %}
<div class="footer-form-message error" role="alert">
{{ message }}
</div><br>
{% endfor %}
{# Title #}
<p class="FooterContact-title">{{ props.contactTitle }}</p>
{# Button contactForm #}
<div ref="button">
{% include "component/button.html.twig" with {
class: 'FooterContact-callLink',
props: {
text: props.form.buttonText,
contactButton:true
}
} %}
</div>
{# Address #}
<a class="FooterContact-address" target="_blank" rel="noreferrer" href="{{ props.mapLink }}">
{% include "component/wysiwyg.html.twig" with {
props: {
content: props.address
}
} %}
</a>
{# Tel #}
<a class="FooterContact-tel" href="tel:{{ props.phone }}" title="Appeler le {{ props.phone }}">{{ props.phone }}</a>
{# Schedule #}
<a class="FooterContact-schedule">{{ props.schedule|raw }}</a>
{# Email #}
<a class="FooterContact-email" href="mailto:{{ props.email }}" title="Envoyer un email à {{ props.email }}">{{ props.email }}</a>
</div>
<div class="l-column FooterContact-form" ref="form">
<div class="SimpleForm-closeForm" ref="closeButton"></div>
{# Simple form #}
{% include "component/form/simple_form.html.twig" with {
props: {
form: props.form
}
} %}
</div>
</div>
</div>
</div>