diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-09 13:32:58 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-23 09:24:20 +0200 |
commit | 6a50b4ccb58860f5db872745c7f1894c75cdd027 (patch) | |
tree | 3ed2302821140b1de2142b2403ad7e5ff4a7ff83 /src/Wallabag/UserBundle/Form/NewUserType.php | |
parent | 56c81a2f433eaba98f8cf0bfdd3672bc517ae266 (diff) | |
download | wallabag-6a50b4ccb58860f5db872745c7f1894c75cdd027.tar.gz wallabag-6a50b4ccb58860f5db872745c7f1894c75cdd027.tar.zst wallabag-6a50b4ccb58860f5db872745c7f1894c75cdd027.zip |
Added group in user form
Diffstat (limited to 'src/Wallabag/UserBundle/Form/NewUserType.php')
-rw-r--r-- | src/Wallabag/UserBundle/Form/NewUserType.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Form/NewUserType.php b/src/Wallabag/UserBundle/Form/NewUserType.php index ad5a2405..ee8324d7 100644 --- a/src/Wallabag/UserBundle/Form/NewUserType.php +++ b/src/Wallabag/UserBundle/Form/NewUserType.php | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\UserBundle\Form; | 3 | namespace Wallabag\UserBundle\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\Extension\Core\Type\EmailType; | 7 | use Symfony\Component\Form\Extension\Core\Type\EmailType; |
7 | use Symfony\Component\Form\Extension\Core\Type\PasswordType; | 8 | use Symfony\Component\Form\Extension\Core\Type\PasswordType; |
@@ -38,6 +39,12 @@ class NewUserType extends AbstractType | |||
38 | ->add('email', EmailType::class, [ | 39 | ->add('email', EmailType::class, [ |
39 | 'label' => 'user.form.email_label', | 40 | 'label' => 'user.form.email_label', |
40 | ]) | 41 | ]) |
42 | ->add('groups', EntityType::class, array( | ||
43 | 'class' => 'WallabagGroupBundle:Group', | ||
44 | 'choice_label' => 'name', | ||
45 | 'multiple' => true, | ||
46 | 'expanded' => true, | ||
47 | )) | ||
41 | ->add('save', SubmitType::class, [ | 48 | ->add('save', SubmitType::class, [ |
42 | 'label' => 'user.form.save', | 49 | 'label' => 'user.form.save', |
43 | ]) | 50 | ]) |