|
|
@@ -20,24 +20,28 @@ class RegistrationType extends AbstractType |
|
|
|
{ |
|
|
|
$builder->remove('username') |
|
|
|
->add('gender', ChoiceType::class, [ |
|
|
|
'label' => 'Titre', |
|
|
|
'label' => 'field.default.title', |
|
|
|
'multiple' => false, |
|
|
|
'expanded' => true, |
|
|
|
'choices' => [ |
|
|
|
'Madame' => 1, |
|
|
|
'Monsieur' => 0, |
|
|
|
] |
|
|
|
'field.default.madame' => 1, |
|
|
|
'field.default.monsieur' => 0, |
|
|
|
], |
|
|
|
'translation_domain' => 'lcshop', |
|
|
|
]) |
|
|
|
->add('firstName', TextType::class, [ |
|
|
|
'label' => 'Prénom' |
|
|
|
'label' => 'field.default.firstname', |
|
|
|
'translation_domain' => 'lcshop', |
|
|
|
]) |
|
|
|
->add('lastName', TextType::class, [ |
|
|
|
'label' => 'Nom' |
|
|
|
'label' => 'field.default.lastname', |
|
|
|
'translation_domain' => 'lcshop', |
|
|
|
]) |
|
|
|
->add('subscribeNewsletter', CheckboxType::class, [ |
|
|
|
'label' => 'S\'inscrire à la newsletter', |
|
|
|
'label' => 'field.default.subscribeNewsletter', |
|
|
|
'required' => false, |
|
|
|
'mapped' => false |
|
|
|
'mapped' => false, |
|
|
|
'translation_domain' => 'lcshop', |
|
|
|
]); |
|
|
|
} |
|
|
|
|