Inscription
Vous avez déjà un compte ? Se connecter
{# Affiche les erreurs du formulaire principal #}
{{ form_errors(registrationForm) }}
{# Démarre le formulaire #}
{{ form_start(registrationForm) }}
{{ form_row(registrationForm.email, {
'attr': {'class': 'form-control', 'placeholder': 'Email'},
'label': false
}) }}
{{ form_row(registrationForm.plainPassword, {
'label': 'Mot de passe',
'attr': {'class': 'form-control', 'placeholder': 'Mot de passe'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.nom, {
'attr': {'class': 'form-control', 'placeholder': 'Nom'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.prenom, {
'attr': {'class': 'form-control', 'placeholder': 'Prénom'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.tel, {
'attr': {'class': 'form-control', 'placeholder': 'Numéro de téléphone'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.numRue, {
'attr': {'class': 'form-control', 'placeholder': 'Numéro de rue'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.rue, {
'attr': {'class': 'form-control', 'placeholder': 'Rue'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.copos, {
'attr': {'class': 'form-control', 'placeholder': 'Code postal'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.ville, {
'attr': {'class': 'form-control', 'placeholder': 'Ville'},
'label': false
}) }}
{{ form_row(registrationForm.responsable.quotientFamilial, {
'attr': {'class': 'form-control', 'placeholder': 'Ville'},
'label': false
}) }}
{# Ajouter une classe 'form-check' et traduire le label en français #}
{{ form_widget(registrationForm.agreeTerms, {'attr': {'class': 'form-check-input'}}) }}
Accepter les termes et conditions
{# Bouton pour soumettre le formulaire #}
S'inscrire
{{ form_end(registrationForm) }}