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