diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-05 09:08:18 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-23 09:23:49 +0200 |
commit | 56c81a2f433eaba98f8cf0bfdd3672bc517ae266 (patch) | |
tree | 804d9f8bc459ac6d67d41d75e56774c272f22216 /src/Wallabag/GroupBundle/Form/GroupType.php | |
parent | 36f30fa31e0d2373f5c39851ea9138493fbde341 (diff) | |
download | wallabag-56c81a2f433eaba98f8cf0bfdd3672bc517ae266.tar.gz wallabag-56c81a2f433eaba98f8cf0bfdd3672bc517ae266.tar.zst wallabag-56c81a2f433eaba98f8cf0bfdd3672bc517ae266.zip |
First draft to manage relation between User and Group
Diffstat (limited to 'src/Wallabag/GroupBundle/Form/GroupType.php')
-rw-r--r-- | src/Wallabag/GroupBundle/Form/GroupType.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Wallabag/GroupBundle/Form/GroupType.php b/src/Wallabag/GroupBundle/Form/GroupType.php index c2ad764b..749c15e9 100644 --- a/src/Wallabag/GroupBundle/Form/GroupType.php +++ b/src/Wallabag/GroupBundle/Form/GroupType.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\GroupBundle\Form; | 3 | namespace Wallabag\GroupBundle\Form; |
4 | 4 | ||
5 | use Symfony\Bridge\Doctrine\Form\Type\EntityType; | ||
5 | use Symfony\Component\Form\AbstractType; | 6 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\FormBuilderInterface; | 7 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 8 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -21,6 +22,12 @@ class GroupType extends AbstractType | |||
21 | 'required' => false, | 22 | 'required' => false, |
22 | 'label' => 'group.form.name_label', | 23 | 'label' => 'group.form.name_label', |
23 | ]) | 24 | ]) |
25 | ->add('users', EntityType::class, array( | ||
26 | 'class' => 'WallabagUserBundle:User', | ||
27 | 'choice_label' => 'username', | ||
28 | 'multiple' => true, | ||
29 | 'expanded' => true, | ||
30 | )) | ||
24 | ->add('save', SubmitType::class, [ | 31 | ->add('save', SubmitType::class, [ |
25 | 'label' => 'group.form.save', | 32 | 'label' => 'group.form.save', |
26 | ]) | 33 | ]) |