X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FRssType.php;h=a9f68e542019889326386b2ae1300157cfd22e79;hb=0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc;hp=1f7f4c682b4ec7a447d7dc2093e8f740eceb3cc6;hpb=ac9d58211e1c6676485ef15d023215e5a465f3a8;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/RssType.php b/src/Wallabag/CoreBundle/Form/Type/RssType.php index 1f7f4c68..a9f68e54 100644 --- a/src/Wallabag/CoreBundle/Form/Type/RssType.php +++ b/src/Wallabag/CoreBundle/Form/Type/RssType.php @@ -3,6 +3,7 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -11,8 +12,12 @@ class RssType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('rss_limit') - ->add('save', 'submit') + ->add('rss_limit', null, array( + 'label' => 'config.form_rss.rss_limit', + )) + ->add('save', SubmitType::class, array( + 'label' => 'config.form.save', + )) ; } @@ -23,7 +28,7 @@ class RssType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'rss_config'; }