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 `` --- src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/Wallabag/CoreBundle/Form/Type/EditEntryType.php') diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php index 2b1e1ef4..23d7b239 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php @@ -14,9 +14,22 @@ class EditEntryType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('title', TextType::class, array('required' => true)) - ->add('is_public', CheckboxType::class, array('required' => false)) - ->add('save', SubmitType::class) + ->add('title', TextType::class, array( + 'required' => true, + 'label' => 'entry.edit.title_label', + )) + ->add('is_public', CheckboxType::class, array( + 'required' => false, + 'label' => 'entry.edit.is_public_label', + )) + ->add('url', TextType::class, array( + 'disabled' => true, + 'required' => false, + 'label' => 'entry.edit.url_label', + )) + ->add('save', SubmitType::class, array( + 'label' => 'entry.edit.save_label', + )) ; } -- cgit v1.2.3