diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-08 15:42:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 15:42:05 +0100 |
commit | 89e167a45a4815900377743c5ba202ab481d61a4 (patch) | |
tree | e9b5a3601ab2dd10dbb1dd1f95bbdca48e325215 /src/Wallabag/CoreBundle/Form | |
parent | 41c2178685a93999a48842ab79b08091c0345c59 (diff) | |
parent | df30af69d2f27914fec5b8d925472d4fdd378bf2 (diff) | |
download | wallabag-89e167a45a4815900377743c5ba202ab481d61a4.tar.gz wallabag-89e167a45a4815900377743c5ba202ab481d61a4.tar.zst wallabag-89e167a45a4815900377743c5ba202ab481d61a4.zip |
Merge pull request #2553 from wallabag/add-tagform-mobile
Added new tag form in mobile view for Material theme
Diffstat (limited to 'src/Wallabag/CoreBundle/Form')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/NewTagType.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php index 3db4105f..e830ade4 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php | |||
@@ -3,6 +3,7 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
6 | use Symfony\Component\Form\Extension\Core\Type\TextType; | 7 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
7 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
8 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -12,7 +13,15 @@ class NewTagType extends AbstractType | |||
12 | public function buildForm(FormBuilderInterface $builder, array $options) | 13 | public function buildForm(FormBuilderInterface $builder, array $options) |
13 | { | 14 | { |
14 | $builder | 15 | $builder |
15 | ->add('label', TextType::class, ['required' => true]) | 16 | ->add('label', TextType::class, [ |
17 | 'required' => true, | ||
18 | 'attr' => [ | ||
19 | 'placeholder' => 'tag.new.placeholder', | ||
20 | ], | ||
21 | ]) | ||
22 | ->add('add', SubmitType::class, [ | ||
23 | 'label' => 'tag.new.add', | ||
24 | ]) | ||
16 | ; | 25 | ; |
17 | } | 26 | } |
18 | 27 | ||