{% extends 'base.html.twig' %} {% block title %}Créer un compte{% endblock %} {% block body %}

Créer un compte

{# Flash messages #} {% for label, messages in app.flashes %} {% for message in messages %}
{{ message }}
{% endfor %} {% endfor %} {{ form_start(registrationForm) }}
{{ form_label(registrationForm.email) }} {{ form_widget(registrationForm.email, { attr: { class: 'form-control', placeholder: 'Votre email' } }) }} {{ form_errors(registrationForm.email) }}
{# Password 1 #}
{{ form_label(registrationForm.password.first) }}
{{ form_widget(registrationForm.password.first, { attr: { class: 'form-control', placeholder: 'Mot de passe' } }) }}
8+ caractères, majuscules, minuscules, chiffres, symboles. {{ form_errors(registrationForm.password.first) }}
{# Password 2 #}
{{ form_label(registrationForm.password.second) }}
{{ form_widget(registrationForm.password.second, { attr: { class: 'form-control', placeholder: 'Confirmez le mot de passe' } }) }}
{{ form_errors(registrationForm.password.second) }}
{# Barre de complexité #}
{# reCAPTCHA v3: solo si el campo existe y recibes la clé #} {% if registrationForm.captcha is defined and recaptcha_site is defined %} {{ form_widget(registrationForm.captcha) }} {{ form_errors(registrationForm.captcha) }} {% endif %}
{% if registrationForm.submit is defined %} {{ form_row(registrationForm.submit) }} {% else %} {% endif %}
{# IMPORTANTE: cierra el formulario sin render_rest:false, así incluye _token y ocultos #} {{ form_end(registrationForm) }}

Déjà inscrit ? Connectez-vous

{% endblock %} {% block javascripts %} {{ parent() }} {# reCAPTCHA solo si pasas la clé desde el controller #} {% if recaptcha_site is defined %} {% endif %} {% endblock %}