aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-21 12:47:57 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-21 12:47:57 +0100
commit439b36323e37f669b056cc5228c44bb91196256c (patch)
treeecd84477adf3e12819b26aff2a6d2e644e45ea72 /src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
parentbd46de6b25f982e1a0d3f975971fe8014db13833 (diff)
parent4083887afe4dd3f568b2dfea3392506b554c79b8 (diff)
downloadwallabag-439b36323e37f669b056cc5228c44bb91196256c.tar.gz
wallabag-439b36323e37f669b056cc5228c44bb91196256c.tar.zst
wallabag-439b36323e37f669b056cc5228c44bb91196256c.zip
Merge pull request #1774 from wallabag/v2-key-translation
Switch to keys in translated files
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/EditEntryType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/EditEntryType.php19
1 files changed, 16 insertions, 3 deletions
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
14 public function buildForm(FormBuilderInterface $builder, array $options) 14 public function buildForm(FormBuilderInterface $builder, array $options)
15 { 15 {
16 $builder 16 $builder
17 ->add('title', TextType::class, array('required' => true)) 17 ->add('title', TextType::class, array(
18 ->add('is_public', CheckboxType::class, array('required' => false)) 18 'required' => true,
19 ->add('save', SubmitType::class) 19 'label' => 'entry.edit.title_label',
20 ))
21 ->add('is_public', CheckboxType::class, array(
22 'required' => false,
23 'label' => 'entry.edit.is_public_label',
24 ))
25 ->add('url', TextType::class, array(
26 'disabled' => true,
27 'required' => false,
28 'label' => 'entry.edit.url_label',
29 ))
30 ->add('save', SubmitType::class, array(
31 'label' => 'entry.edit.save_label',
32 ))
20 ; 33 ;
21 } 34 }
22 35