{% extends "layout.html.twig" %}
{% block contentBody %}
{% set title = content.title|default %}
<!-- Main content -->
<div class="content container mt-5">
<div class="row justify-content-center d-flex">
<!-- Signup Section -->
<div class="col-md-7 d-flex align-items-stretch">
<div class="form-container p-4 bg-white shadow-sm">
<h2 class="header-text text-center">Inscrivez-vous</h2>
<div id="id_notification"></div>
{{ form_start(form) }}
<div class="row">
<div class="col-md-12">
{{ form_row(form.civ) }}
</div>
<div class="col-md-6">
{{ form_row(form.nom) }}
</div>
<div class="col-md-6">
{{ form_row(form.prenom) }}
</div>
<div class="col-md-6">
<div class="form-group">
{{ form_widget(form.email) }}
<span class="text-danger text-left" data-page="1">{{ form_errors(form.email) }}</span>
</div>
</div>
<div class="col-md-6">
{{ form_row(form.telephone) }}
</div>
<div class="col-md-6">
{{ form_row(form.password) }}
</div>
<div class="col-md-6">
{{ form_row(form.confirm_password) }}
</div>
<div class="col-md-6">
{{ form_row(form.adresse1) }}
</div>
<div class="col-md-6">
{{ form_row(form.adresse2) }}
</div>
{# div class="col-md-6">
<div>
<div class="form-group">
<select class="custom-select form-control kl-form-input login" id="pays" name="client[pays]">
{% for paysid, value in pays %}
<option value="{{ paysid }}" {{ paysid == 57 ? 'selected="selelected"' : '' }} >{{ value }}</option>
{% endfor %}
</select>
</div>
</div>
</div>#}
<div class="col-md-6">
{{ form_row(form.ville) }}
</div>
<div class="col-md-6">
{{ form_row(form.cp) }}
</div>
<div class="col-md-6">
{{ form_row(form.raison_social) }}
</div>
</div>
{# <div class="row">
<div class="col-md-12">{{ form_row(form.recevoir_offre) }}</div>
</div> #}
<div class="text-center no-padding-top">
{{ form_row(form.recaptcha_token) }}
<script src="https://www.google.com/recaptcha/api.js?render={{ google_recaptcha_site_key }}"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
grecaptcha.ready(function() {
grecaptcha.execute("{{ google_recaptcha_site_key }}", {action: 'registration'})
.then(function(token) {
document.getElementById("{{ form.recaptcha_token.vars.id }}").value = token;
});
});
});
</script>
<button class="btn btn-kl-form-input btn-custom mt-4" type="button" id="id_saveClient">Créer mon compte</button>
<small class="form-text text-muted"><em>*Champs obligatoires</em></small>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
<style type="text/css">
.no-padding-top {
padding-top: 0 !important;
margin-top: 0 !important;
}
/* Background image styling */
body {
background-image: url('/media/69/download/coworking-space-in-gurgaon-5485822_1280.jpg?v=1');
background-repeat: no-repeat;
background-size: cover; /* Fait en sorte que l'image remplisse tout l'écran */
background-position: center; /* Centre l'image pour éviter les décalages */
background-attachment: fixed; /* Fixe l'image en place lors du défilement */
}
.big-wrapper {
background: linear-gradient(to bottom, rgba(255, 255, 255, 1.9), rgba(255, 255, 255, 0)); /* Dégradé du haut (opaque) vers le bas (transparent) */
}
</style>
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% endblock %}