aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas@loeuillet.org>2016-11-09 13:32:58 +0100
committerThomas Citharel <tcit@tcit.fr>2017-06-23 09:24:20 +0200
commit6a50b4ccb58860f5db872745c7f1894c75cdd027 (patch)
tree3ed2302821140b1de2142b2403ad7e5ff4a7ff83
parent56c81a2f433eaba98f8cf0bfdd3672bc517ae266 (diff)
downloadwallabag-6a50b4ccb58860f5db872745c7f1894c75cdd027.tar.gz
wallabag-6a50b4ccb58860f5db872745c7f1894c75cdd027.tar.zst
wallabag-6a50b4ccb58860f5db872745c7f1894c75cdd027.zip
Added group in user form
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.da.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.de.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.en.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.it.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml1
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml1
-rw-r--r--src/Wallabag/GroupBundle/Entity/Group.php1
-rw-r--r--src/Wallabag/GroupBundle/Form/GroupType.php7
-rw-r--r--src/Wallabag/GroupBundle/Resources/views/Manage/edit.html.twig8
-rw-r--r--src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig42
-rw-r--r--src/Wallabag/UserBundle/Entity/User.php2
-rw-r--r--src/Wallabag/UserBundle/Form/NewUserType.php7
-rw-r--r--src/Wallabag/UserBundle/Form/UserType.php7
-rw-r--r--src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig8
-rw-r--r--src/Wallabag/UserBundle/Resources/views/Manage/index.html.twig2
-rw-r--r--src/Wallabag/UserBundle/Resources/views/Manage/new.html.twig7
20 files changed, 54 insertions, 47 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
index 8d023efa..7068969b 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
@@ -534,7 +534,6 @@ user:
534 repeat_new_password_label: 'Gentag adgangskode' 534 repeat_new_password_label: 'Gentag adgangskode'
535 plain_password_label: '????' 535 plain_password_label: '????'
536 email_label: 'Emailadresse' 536 email_label: 'Emailadresse'
537 # group: 'Group'
538 # enabled_label: 'Enabled' 537 # enabled_label: 'Enabled'
539 # last_login_label: 'Last login' 538 # last_login_label: 'Last login'
540 # twofactor_label: Two factor authentication 539 # twofactor_label: Two factor authentication
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
index 44f11ab4..976aa511 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
@@ -534,7 +534,6 @@ user:
534 repeat_new_password_label: 'Neues Kennwort wiederholen' 534 repeat_new_password_label: 'Neues Kennwort wiederholen'
535 plain_password_label: '????' 535 plain_password_label: '????'
536 email_label: 'E-Mail-Adresse' 536 email_label: 'E-Mail-Adresse'
537 # group: 'Group'
538 enabled_label: 'Aktiviert' 537 enabled_label: 'Aktiviert'
539 last_login_label: 'Letzter Login' 538 last_login_label: 'Letzter Login'
540 twofactor_label: Zwei-Faktor-Authentifizierung 539 twofactor_label: Zwei-Faktor-Authentifizierung
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
index 0d8cde7a..8f507c40 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
@@ -534,7 +534,6 @@ user:
534 repeat_new_password_label: 'Repeat new password' 534 repeat_new_password_label: 'Repeat new password'
535 plain_password_label: '????' 535 plain_password_label: '????'
536 email_label: 'Email' 536 email_label: 'Email'
537 group: 'Group'
538 enabled_label: 'Enabled' 537 enabled_label: 'Enabled'
539 last_login_label: 'Last login' 538 last_login_label: 'Last login'
540 twofactor_label: Two factor authentication 539 twofactor_label: Two factor authentication
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
index 61fe8a17..45711a84 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
@@ -534,7 +534,6 @@ user:
534 repeat_new_password_label: 'رمز تازه را دوباره بنویسید' 534 repeat_new_password_label: 'رمز تازه را دوباره بنویسید'
535 plain_password_label: '????' 535 plain_password_label: '????'
536 email_label: 'نشانی ایمیل' 536 email_label: 'نشانی ایمیل'
537 # group: 'Group'
538 # enabled_label: 'Enabled' 537 # enabled_label: 'Enabled'
539 # last_login_label: 'Last login' 538 # last_login_label: 'Last login'
540 # twofactor_label: Two factor authentication 539 # twofactor_label: Two factor authentication
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
index be8751ff..beb8f324 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
@@ -16,7 +16,6 @@ security:
16 16
17menu: 17menu:
18 left: 18 left:
19<<<<<<< 5da541f5bdeec8ad968ba75a30ca2d19ea64d1f2
20 unread: "Non lus" 19 unread: "Non lus"
21 starred: "Favoris" 20 starred: "Favoris"
22 archive: "Lus" 21 archive: "Lus"
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
index a909d2c1..c5634983 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
@@ -534,7 +534,6 @@ user:
534 repeat_new_password_label: 'Ripeti password' 534 repeat_new_password_label: 'Ripeti password'
535 plain_password_label: '????' 535 plain_password_label: '????'
536 email_label: 'E-mail' 536 email_label: 'E-mail'
537 # group: 'Group'
538 # enabled_label: 'Enabled' 537 # enabled_label: 'Enabled'
539 # last_login_label: 'Last login' 538 # last_login_label: 'Last login'
540 # twofactor_label: Two factor authentication 539 # twofactor_label: Two factor authentication
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
index a3c935ca..dfc28896 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
@@ -535,7 +535,6 @@ user:
535 repeat_new_password_label: 'Confirmatz vòstre novèl senhal' 535 repeat_new_password_label: 'Confirmatz vòstre novèl senhal'
536 plain_password_label: 'Senhal en clar' 536 plain_password_label: 'Senhal en clar'
537 email_label: 'Adreça de corrièl' 537 email_label: 'Adreça de corrièl'
538 # group: 'Group'
539 enabled_label: 'Actiu' 538 enabled_label: 'Actiu'
540 last_login_label: 'Darrièra connexion' 539 last_login_label: 'Darrièra connexion'
541 twofactor_label: 'Autentificacion doble-factor' 540 twofactor_label: 'Autentificacion doble-factor'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
index d252d448..1b376073 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
@@ -534,7 +534,6 @@ user:
534 repeat_new_password_label: 'Powtórz nowe hasło' 534 repeat_new_password_label: 'Powtórz nowe hasło'
535 plain_password_label: 'Jawne hasło' 535 plain_password_label: 'Jawne hasło'
536 email_label: 'Adres email' 536 email_label: 'Adres email'
537 # group: 'Group'
538 enabled_label: 'Włączony' 537 enabled_label: 'Włączony'
539 last_login_label: 'Ostatnie logowanie' 538 last_login_label: 'Ostatnie logowanie'
540 twofactor_label: Autoryzacja dwuetapowa 539 twofactor_label: Autoryzacja dwuetapowa
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
index 29ae81cd..1f89627d 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
@@ -534,7 +534,6 @@ user:
534 repeat_new_password_label: 'Repeat new password' 534 repeat_new_password_label: 'Repeat new password'
535 plain_password_label: '????' 535 plain_password_label: '????'
536 email_label: 'E-mail' 536 email_label: 'E-mail'
537 # group: 'Group'
538 # enabled_label: 'Enabled' 537 # enabled_label: 'Enabled'
539 # last_login_label: 'Last login' 538 # last_login_label: 'Last login'
540 # twofactor_label: Two factor authentication 539 # twofactor_label: Two factor authentication
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
index 4ac867a0..932ae549 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
@@ -513,7 +513,6 @@ user:
513 repeat_new_password_label: 'Yeni şifrenin tekrarı' 513 repeat_new_password_label: 'Yeni şifrenin tekrarı'
514 plain_password_label: '????' 514 plain_password_label: '????'
515 email_label: 'E-posta' 515 email_label: 'E-posta'
516 # group: 'Group'
517 # enabled_label: 'Enabled' 516 # enabled_label: 'Enabled'
518 # last_login_label: 'Last login' 517 # last_login_label: 'Last login'
519 # twofactor_label: Two factor authentication 518 # twofactor_label: Two factor authentication
diff --git a/src/Wallabag/GroupBundle/Entity/Group.php b/src/Wallabag/GroupBundle/Entity/Group.php
index e889f74e..1381d1ea 100644
--- a/src/Wallabag/GroupBundle/Entity/Group.php
+++ b/src/Wallabag/GroupBundle/Entity/Group.php
@@ -2,6 +2,7 @@
2 2
3namespace Wallabag\GroupBundle\Entity; 3namespace Wallabag\GroupBundle\Entity;
4 4
5use Doctrine\Common\Collections\ArrayCollection;
5use FOS\UserBundle\Model\Group as BaseGroup; 6use FOS\UserBundle\Model\Group as BaseGroup;
6use Doctrine\ORM\Mapping as ORM; 7use Doctrine\ORM\Mapping as ORM;
7use Wallabag\UserBundle\Entity\User; 8use Wallabag\UserBundle\Entity\User;
diff --git a/src/Wallabag/GroupBundle/Form/GroupType.php b/src/Wallabag/GroupBundle/Form/GroupType.php
index 749c15e9..c2ad764b 100644
--- a/src/Wallabag/GroupBundle/Form/GroupType.php
+++ b/src/Wallabag/GroupBundle/Form/GroupType.php
@@ -2,7 +2,6 @@
2 2
3namespace Wallabag\GroupBundle\Form; 3namespace Wallabag\GroupBundle\Form;
4 4
5use Symfony\Bridge\Doctrine\Form\Type\EntityType;
6use Symfony\Component\Form\AbstractType; 5use Symfony\Component\Form\AbstractType;
7use Symfony\Component\Form\FormBuilderInterface; 6use Symfony\Component\Form\FormBuilderInterface;
8use Symfony\Component\OptionsResolver\OptionsResolver; 7use Symfony\Component\OptionsResolver\OptionsResolver;
@@ -22,12 +21,6 @@ class GroupType extends AbstractType
22 'required' => false, 21 'required' => false,
23 'label' => 'group.form.name_label', 22 'label' => 'group.form.name_label',
24 ]) 23 ])
25 ->add('users', EntityType::class, array(
26 'class' => 'WallabagUserBundle:User',
27 'choice_label' => 'username',
28 'multiple' => true,
29 'expanded' => true,
30 ))
31 ->add('save', SubmitType::class, [ 24 ->add('save', SubmitType::class, [
32 'label' => 'group.form.save', 25 'label' => 'group.form.save',
33 ]) 26 ])
diff --git a/src/Wallabag/GroupBundle/Resources/views/Manage/edit.html.twig b/src/Wallabag/GroupBundle/Resources/views/Manage/edit.html.twig
index 791a7a18..7de68c35 100644
--- a/src/Wallabag/GroupBundle/Resources/views/Manage/edit.html.twig
+++ b/src/Wallabag/GroupBundle/Resources/views/Manage/edit.html.twig
@@ -23,14 +23,6 @@
23 </div> 23 </div>
24 </div> 24 </div>
25 25
26 <div class="row">
27 <div class="input-field col s12">
28 {{ form_label(edit_form.users) }}
29 {{ form_errors(edit_form.users) }}
30 {{ form_widget(edit_form.users) }}
31 </div>
32 </div>
33
34 <br/> 26 <br/>
35 27
36 {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} 28 {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
diff --git a/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig b/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig
index ce2a4556..58af3a75 100644
--- a/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig
+++ b/src/Wallabag/GroupBundle/Resources/views/Manage/index.html.twig
@@ -11,26 +11,28 @@
11 <div class="input-field col s12"> 11 <div class="input-field col s12">
12 <p class="help">{{ 'group.description'|trans|raw }}</p> 12 <p class="help">{{ 'group.description'|trans|raw }}</p>
13 13
14 <table class="bordered"> 14 {% if groups is not empty %}
15 <thead> 15 <table class="bordered">
16 <tr> 16 <thead>
17 <th>{{ 'group.form.name_label'|trans }}</th> 17 <tr>
18 <th>{{ 'group.form.roles_label'|trans }}</th> 18 <th>{{ 'group.form.name_label'|trans }}</th>
19 <th>{{ 'group.list.actions'|trans }}</th> 19 <th>{{ 'group.form.roles_label'|trans }}</th>
20 </tr> 20 <th>{{ 'group.list.actions'|trans }}</th>
21 </thead> 21 </tr>
22 <tbody> 22 </thead>
23 {% for group in groups %} 23 <tbody>
24 <tr> 24 {% for group in groups %}
25 <td>{{ group.name }}</td> 25 <tr>
26 <td></td> 26 <td>{{ group.name }}</td>
27 <td> 27 <td></td>
28 <a href="{{ path('group_edit', { 'id': group.id }) }}">{{ 'group.list.edit_action'|trans }}</a> 28 <td>
29 </td> 29 <a href="{{ path('group_edit', { 'id': group.id }) }}">{{ 'group.list.edit_action'|trans }}</a>
30 </tr> 30 </td>
31 {% endfor %} 31 </tr>
32 </tbody> 32 {% endfor %}
33 </table> 33 </tbody>
34 </table>
35 {% endif %}
34 <br /> 36 <br />
35 <p> 37 <p>
36 <a href="{{ path('group_new') }}" class="waves-effect waves-light btn">{{ 'group.list.create_new_one'|trans }}</a> 38 <a href="{{ path('group_new') }}" class="waves-effect waves-light btn">{{ 'group.list.create_new_one'|trans }}</a>
diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php
index dc10f1c4..ff658ca5 100644
--- a/src/Wallabag/UserBundle/Entity/User.php
+++ b/src/Wallabag/UserBundle/Entity/User.php
@@ -98,7 +98,7 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
98 private $authCode; 98 private $authCode;
99 99
100 /** 100 /**
101 * @ORM\ManyToMany(targetEntity="Wallabag\GroupBundle\Entity\Group", inversedBy="users") 101 * @ORM\ManyToMany(targetEntity="Wallabag\GroupBundle\Entity\Group", inversedBy="users", cascade={"persist"})
102 * @ORM\JoinTable(name="user_group", 102 * @ORM\JoinTable(name="user_group",
103 * joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, 103 * joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
104 * inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")} 104 * inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")}
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
3namespace Wallabag\UserBundle\Form; 3namespace Wallabag\UserBundle\Form;
4 4
5use Symfony\Bridge\Doctrine\Form\Type\EntityType;
5use Symfony\Component\Form\AbstractType; 6use Symfony\Component\Form\AbstractType;
6use Symfony\Component\Form\Extension\Core\Type\EmailType; 7use Symfony\Component\Form\Extension\Core\Type\EmailType;
7use Symfony\Component\Form\Extension\Core\Type\PasswordType; 8use 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 ])
diff --git a/src/Wallabag/UserBundle/Form/UserType.php b/src/Wallabag/UserBundle/Form/UserType.php
index d8cdbaf9..04632f2a 100644
--- a/src/Wallabag/UserBundle/Form/UserType.php
+++ b/src/Wallabag/UserBundle/Form/UserType.php
@@ -2,6 +2,7 @@
2 2
3namespace Wallabag\UserBundle\Form; 3namespace Wallabag\UserBundle\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;
@@ -27,6 +28,12 @@ class UserType extends AbstractType
27 'required' => true, 28 'required' => true,
28 'label' => 'user.form.username_label', 29 'label' => 'user.form.username_label',
29 ]) 30 ])
31 ->add('groups', EntityType::class, array(
32 'class' => 'WallabagGroupBundle:Group',
33 'choice_label' => 'name',
34 'multiple' => true,
35 'expanded' => true,
36 ))
30 ->add('email', EmailType::class, [ 37 ->add('email', EmailType::class, [
31 'required' => true, 38 'required' => true,
32 'label' => 'user.form.email_label', 39 'label' => 'user.form.email_label',
diff --git a/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig b/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig
index 3ffd15f5..3c8b9d05 100644
--- a/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig
+++ b/src/Wallabag/UserBundle/Resources/views/Manage/edit.html.twig
@@ -41,6 +41,14 @@
41 41
42 <div class="row"> 42 <div class="row">
43 <div class="input-field col s12"> 43 <div class="input-field col s12">
44 {{ form_label(edit_form.groups) }}
45 {{ form_errors(edit_form.groups) }}
46 {{ form_widget(edit_form.groups) }}
47 </div>
48 </div>
49
50 <div class="row">
51 <div class="input-field col s12">
44 {{ form_widget(edit_form.enabled) }} 52 {{ form_widget(edit_form.enabled) }}
45 {{ form_label(edit_form.enabled) }} 53 {{ form_label(edit_form.enabled) }}
46 {{ form_errors(edit_form.enabled) }} 54 {{ form_errors(edit_form.enabled) }}
diff --git a/src/Wallabag/UserBundle/Resources/views/Manage/index.html.twig b/src/Wallabag/UserBundle/Resources/views/Manage/index.html.twig
index 9d5abcaf..5fc6163e 100644
--- a/src/Wallabag/UserBundle/Resources/views/Manage/index.html.twig
+++ b/src/Wallabag/UserBundle/Resources/views/Manage/index.html.twig
@@ -30,7 +30,7 @@
30 {{ form_rest(searchForm) }} 30 {{ form_rest(searchForm) }}
31 </form> 31 </form>
32 </div> 32 </div>
33 33
34 </div> 34 </div>
35 35
36 <table class="bordered"> 36 <table class="bordered">
diff --git a/src/Wallabag/UserBundle/Resources/views/Manage/new.html.twig b/src/Wallabag/UserBundle/Resources/views/Manage/new.html.twig
index 8c894c04..285894ad 100644
--- a/src/Wallabag/UserBundle/Resources/views/Manage/new.html.twig
+++ b/src/Wallabag/UserBundle/Resources/views/Manage/new.html.twig
@@ -47,6 +47,13 @@
47 </div> 47 </div>
48 </div> 48 </div>
49 49
50 <div class="row">
51 <div class="input-field col s12">
52 {{ form_errors(form.groups) }}
53 {{ form_widget(form.groups) }}
54 </div>
55 </div>
56
50 {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} 57 {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
51 {{ form_rest(form) }} 58 {{ form_rest(form) }}
52 </form> 59 </form>