{% extends 'front/base.html.twig' %}
{% block title %}Webgiciel - Demander un devis{% endblock %}
{% block description %}Remplisser le formulaire pour obtenir un devis{% endblock %}
{% block keywords %}Devis{% endblock %}
{% block stylesheets %}
<!-- ckeditor -->
<script src="https://cdn.ckeditor.com/ckeditor5/41.1.0/classic/ckeditor.js"></script>
<style>
/* Style de base pour le cookie-banner */
#cookie-banner {
display: none;
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background-color: #f1f1f1;
padding: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.btnRound{
color: #213b52;
border-radius: 50px;
padding: 8px 35px 10px 35px;
border: 2px solid #fdc134;
transition: all ease-in-out 0.3s;
display: inline-block;
background: #fdc134;
}
.btnRound:hover {
background: #213b52;
color: #fff;
}
</style>
{% endblock %}
{% block body %}
{% include "front/cases/header.html.twig" %}
<!-- début main -->
<main id="main" style="background-color:white;">
<div class="container" id="contentForm">
<div class="row justify-content-center">
<div class="col-sm-12 col-md-8 mt-2" data-aos="fade-right" style="text-align:left;">
<h1 class="mt-4 mb-3">
Demande de devis
</h1>
</div>
{{ form_start(formDevis, {'attr': {'id': 'demandeDevis'}}) }}
<p class="text-center mt-1 mb-3" style="font-size:18px; color:gray; opacity:0.5;">
<small><i>* Champs obligatoires</i></small>
</p>
<div class="row justify-content-center">
<div class="col-sm-12 col-md-4 mt-2">
<h6>
{{ form_label(formDevis.prenom, 'Prénom') }}
</h6>
{{ form_widget(formDevis.prenom) }}
<small>{{ form_help(formDevis.prenom) }}</small>
</div>
<div class="col-sm-12 col-md-4 mt-2">
<h6>
{{ form_label(formDevis.nom, 'Nom *') }}
</h6>
{{ form_widget(formDevis.nom) }}
<small>{{ form_help(formDevis.nom) }}</small>
</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-12 col-md-8 mt-4">
<h6>
{{ form_label(formDevis.societe, 'Société') }}
</h6>
{{ form_widget(formDevis.societe) }}
<small>{{ form_help(formDevis.societe) }}</small>
</div>
</div>
<div class="row justify-content-center mb-4">
<div class="col-sm-12 col-md-4 mt-4">
<h6>
{{ form_label(formDevis.tel, 'Téléphone *') }}
</h6>
{{ form_widget(formDevis.tel) }}
<small>{{ form_help(formDevis.tel) }}</small>
</div>
<div class="col-sm-12 col-md-4 mt-4">
<h6>
{{ form_label(formDevis.mailx, 'Email *') }}
</h6>
{{ form_widget(formDevis.mailx) }}
<small>{{ form_help(formDevis.mailx) }}</small>
</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-12 col-md-8 mt-2">
<h6>
{{ form_label(formDevis.texte, 'Présentez votre projet') }}
</h6>
{{ form_widget(formDevis.texte) }}
<small>{{ form_help(formDevis.texte) }}</small>
</div>
</div>
<div class="row justify-content-center mt-3">
<div class="col-sm-12 col-md-4">
</div>
<div class="col-sm-12 col-md-4">
<button type="submit" id="btnEnvoiA" class="btnRound" title="Envoyer" style="max-width:100%; margin:10px 0; width:100%;">
<span class="q-label">
Envoyer
</span>
</button>
</div>
</div>
<br>
<br>
{{ form_end(formDevis) }}
</div>
</div>
<!-- caseLoading -->
<div class="container" style="height:500px;">
<div id="caseLoading" class="row" style="display:none; background-color:white; color:black;">
<div class="col-3">
</div>
<div class="col-6 text-center mt-4 mb-4 wb-button--primary" style="color:#black; border-radius: 15px; padding:15px;">
<i class="fas fa-fan fa-3x fa-spin"></i> <br>
<i>Traitement en cours</i>
</div>
<div class="col-3">
</div>
</div>
</div>
</main>
<!-- fin main -->
{% include "front/cases/footer.html.twig" %}
<!-- myModal -->
<div class="modal modal-lg fade" id="myModal" tabindex="-1" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{% include "cookies/js/consentement.js" %}
{% include "front/js/devis.js" %}
{% endblock %}