X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FUserBundle%2FForm%2FNewUserType.php;h=ee8324d75b3b0b2b4fc99ac09ca6860a69739c69;hb=6a50b4ccb58860f5db872745c7f1894c75cdd027;hp=ad5a2405924ae8b6211f9ac4c6928e7f7d31e385;hpb=56c81a2f433eaba98f8cf0bfdd3672bc517ae266;p=github%2Fwallabag%2Fwallabag.git 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 @@ namespace Wallabag\UserBundle\Form; +use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\PasswordType; @@ -38,6 +39,12 @@ class NewUserType extends AbstractType ->add('email', EmailType::class, [ 'label' => 'user.form.email_label', ]) + ->add('groups', EntityType::class, array( + 'class' => 'WallabagGroupBundle:Group', + 'choice_label' => 'name', + 'multiple' => true, + 'expanded' => true, + )) ->add('save', SubmitType::class, [ 'label' => 'user.form.save', ])