aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/GroupBundle/Form/GroupType.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-05 09:08:18 +0100
committerThomas Citharel <tcit@tcit.fr>2017-06-23 09:23:49 +0200
commit56c81a2f433eaba98f8cf0bfdd3672bc517ae266 (patch)
tree804d9f8bc459ac6d67d41d75e56774c272f22216 /src/Wallabag/GroupBundle/Form/GroupType.php
parent36f30fa31e0d2373f5c39851ea9138493fbde341 (diff)
downloadwallabag-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.php7
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
3namespace Wallabag\GroupBundle\Form; 3namespace Wallabag\GroupBundle\Form;
4 4
5use Symfony\Bridge\Doctrine\Form\Type\EntityType;
5use Symfony\Component\Form\AbstractType; 6use Symfony\Component\Form\AbstractType;
6use Symfony\Component\Form\FormBuilderInterface; 7use Symfony\Component\Form\FormBuilderInterface;
7use Symfony\Component\OptionsResolver\OptionsResolver; 8use 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 ])