From 0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 9 Mar 2016 08:59:08 +0100 Subject: Convert english translation file - convert english translation to translate key - remove baggy template for login (never used since user isn't logged in and it'll use the default theme: material) - fix tests about text in response (now checking translation key instead of translated text) - remove all ugly `` --- .../CoreBundle/Form/Type/UserInformationType.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/Wallabag/CoreBundle/Form/Type/UserInformationType.php') diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index f491b0ae..799ea39e 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php @@ -15,10 +15,19 @@ class UserInformationType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('name', TextType::class) - ->add('email', EmailType::class) - ->add('twoFactorAuthentication', CheckboxType::class, array('required' => false)) - ->add('save', SubmitType::class) + ->add('name', TextType::class, array( + 'label' => 'config.form_user.name_label', + )) + ->add('email', EmailType::class, array( + 'label' => 'config.form_user.email_label', + )) + ->add('twoFactorAuthentication', CheckboxType::class, array( + 'required' => false, + 'label' => 'config.form_user.twoFactorAuthentication_label', + )) + ->add('save', SubmitType::class, array( + 'label' => 'config.form.save', + )) ->remove('username') ->remove('plainPassword') ; -- cgit v1.2.3