{# templates/security/register.html.twig (adapte le chemin si besoin) #} {% extends 'Application/' ~ settings.get('theme') ~ '/base.html.twig' %} {% block title %}{{ 'Sign-up'|trans }}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {{ 'Compte & support'|trans }} {{ 'Connexion / Inscription'|trans }} {{ 'Sign-in'|trans }} {{ 'Sign-up'|trans }} {# Flash messages #} {% for flashError in app.flashes('verify_email_error') %} {{ flashError }} {% endfor %} {% for message in app.flashes('success') %} {{ message }} {% endfor %} {% for message in app.flashes('error') %} {{ message }} {% endfor %} {% if registrationForm is defined %} {# REGISTER #} {{ form_start(registrationForm, { attr: { class: 'authForm', novalidate: 'novalidate' } }) }} {{ form_errors(registrationForm) }} {{ form_label(registrationForm.username, 'Nom de compte'|trans) }} {{ form_widget(registrationForm.username, { attr: { class: 'authInput', autocomplete: 'username' } }) }} {{ form_errors(registrationForm.username) }} {{ form_label(registrationForm.email, 'Adresse e-mail'|trans) }} {{ form_widget(registrationForm.email, { attr: { class: 'authInput', autocomplete: 'email' } }) }} {{ form_errors(registrationForm.email) }} {{ form_label(registrationForm.plainPassword, 'Mot de passe'|trans) }} {{ form_widget(registrationForm.plainPassword, { attr: { class: 'authInput', autocomplete: 'new-password' } }) }} {{ 'Voir'|trans }} {{ form_errors(registrationForm.plainPassword) }} {% if registrationForm.ref is defined %} {{ form_label(registrationForm.ref, 'Referral code (optionnal)'|trans) }} {{ form_widget(registrationForm.ref, { attr: { class: 'authInput' } }) }} {{ form_errors(registrationForm.ref) }} {% endif %} {% if registrationForm.agreeTerms is defined %} {{ form_widget(registrationForm.agreeTerms) }} {{ form_label(registrationForm.agreeTerms, 'I accept the User Agreements'|trans) }} {{ form_errors(registrationForm.agreeTerms) }} {% endif %} {{ 'register_register_button'|trans }} {{ 'Sign-in'|trans }} {{ 'En créant un compte, vous pourrez accéder au CashShop, tickets support, et bonus de saison.'|trans }} {{ form_end(registrationForm) }} {# LOGIN (sur la même page) #} {% set last = last_username|default('') %} {% set err = error|default(null) %} {% if err %} {{ err.messageKey|trans(err.messageData, 'security') }} {% endif %} {# IMPORTANT : adapte name="username" si ton authenticator attend "email" #} {{ 'Identifiant'|trans }} {{ 'Nom de compte ou e-mail selon votre configuration.'|trans }} {{ 'Mot de passe'|trans }} {{ 'Voir'|trans }} {{ 'Se souvenir de moi'|trans }} {# Remplace “#” par ta route reset-password si tu en as une #} {{ 'Mot de passe oublié'|trans }} {{ 'Sign-in'|trans }} {{ 'Sign-up'|trans }} {% else %} {{ 'register_offline'|trans }} {% endif %} {% endblock %}
{{ 'Connexion / Inscription'|trans }}