X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FTaggingRuleType.php;h=cfee21f17cfabb06eea0e2ac51a0158190ddbe12;hb=0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc;hp=5815b8c66b9af96d1a5bdfb7e30315acb5a4988e;hpb=d2b4f01d7435e8a8f99b15a2487916427c04e58d;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php index 5815b8c6..cfee21f1 100644 --- a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php +++ b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php @@ -14,12 +14,19 @@ class TaggingRuleType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('rule', TextType::class, array('required' => true)) - ->add('save', SubmitType::class) + ->add('rule', TextType::class, array( + 'required' => true, + 'label' => 'config.form_rules.rule_label', + )) + ->add('save', SubmitType::class, array( + 'label' => 'config.form.save', + )) ; $tagsField = $builder - ->create('tags', TextType::class) + ->create('tags', TextType::class, array( + 'label' => 'config.form_rules.tags_label', + )) ->addModelTransformer(new StringToListTransformer(',')); $builder->add($tagsField);