Browse Source

Correctif backoffice

master
Fab 4 years ago
parent
commit
5170e74114
2 changed files with 15 additions and 8 deletions
  1. +12
    -8
      ShopBundle/Form/RegistrationType.php
  2. +3
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml

+ 12
- 8
ShopBundle/Form/RegistrationType.php View File

@@ -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',
]);
}


+ 3
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml View File

@@ -118,6 +118,9 @@ field:
behaviorAddToCart: Ajout au panier
Supplier:
user: Utilisateur lié
madame: Madame
monsieur: Monsieur
subscribeNewsletter: S'inscrire à la newsletter
ProductFamily:
taxRateInherited: Utiliser la TVA par défaut
activeProducts: Activer les déclinaisons

Loading…
Cancel
Save