Bladeren bron

Evolution #601: Admin: re-création: Ajout de la gestion (base) groupe

Sevajol Bastien 11 jaren geleden
bovenliggende
commit
54a0557297

+ 6 - 18
app/config/routing.yml Bestand weergeven

@@ -1,20 +1,3 @@
1
-# Internal routing configuration to handle ESI
2
-#_internal:
3
-#   resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
4
-#   prefix:   /_internal
5
-# 
6
-#admin:
7
-#    resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
8
-#    prefix: /admin
9
-#
10
-#_sonata_admin:
11
-#    resource: .
12
-#    type: sonata_admin
13
-#    prefix: /admin
14
-#  
15
-#MuzichAdminBundle:
16
-#  resource: "@MuzichAdminBundle/Resources/config/routing.yml"
17
-  
18 1
 MuzichIndexBundle:
19 2
   resource: "@MuzichIndexBundle/Resources/config/routing.yml"
20 3
   prefix: /
@@ -78,4 +61,9 @@ MuzichAdminBundle_admin_muzich_admin_bundle_admin_element:
78 61
 MuzichAdminBundle_admin_muzich_admin_bundle_admin_tag:
79 62
     resource: "@MuzichAdminBundle/Controller/Admin_tag/"
80 63
     type:     admingenerator
81
-    prefix:   /admin/muzich_admin_bundle/admin_tag
64
+    prefix:   /admin/muzich_admin_bundle/admin_tag
65
+
66
+MuzichAdminBundle_admin_muzich_admin_bundle_Admin_group:
67
+    resource: "@MuzichAdminBundle/Controller/Admin_group/"
68
+    type:     admingenerator
69
+    prefix:   /admin/muzich_admin_bundle/Admin_group

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_group/DeleteController.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Controller\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\BaseAdmin_groupController\DeleteController as BaseDeleteController;
6
+
7
+class DeleteController extends BaseDeleteController
8
+{
9
+}

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_group/EditController.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Controller\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\BaseAdmin_groupController\EditController as BaseEditController;
6
+
7
+class EditController extends BaseEditController
8
+{
9
+}

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_group/ListController.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Controller\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\BaseAdmin_groupController\ListController as BaseListController;
6
+
7
+class ListController extends BaseListController
8
+{
9
+}

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_group/NewController.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Controller\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\BaseAdmin_groupController\NewController as BaseNewController;
6
+
7
+class NewController extends BaseNewController
8
+{
9
+}

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_group/ShowController.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Controller\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\BaseAdmin_groupController\ShowController as BaseShowController;
6
+
7
+class ShowController extends BaseShowController
8
+{
9
+}

+ 9 - 0
src/Muzich/AdminBundle/Form/Type/Admin_group/EditType.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Form\Type\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\Form\BaseAdmin_groupType\EditType as BaseEditType;
6
+
7
+class EditType extends BaseEditType
8
+{
9
+}

+ 9 - 0
src/Muzich/AdminBundle/Form/Type/Admin_group/FiltersType.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Form\Type\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\Form\BaseAdmin_groupType\FiltersType as BaseFiltersType;
6
+
7
+class FiltersType extends BaseFiltersType
8
+{
9
+}

+ 9 - 0
src/Muzich/AdminBundle/Form/Type/Admin_group/NewType.php Bestand weergeven

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Muzich\AdminBundle\Form\Type\Admin_group;
4
+
5
+use Admingenerated\MuzichAdminBundle\Form\BaseAdmin_groupType\NewType as BaseNewType;
6
+
7
+class NewType extends BaseNewType
8
+{
9
+}

+ 1 - 0
src/Muzich/AdminBundle/Menu/MenuBuilder.php Bestand weergeven

@@ -31,6 +31,7 @@ class MenuBuilder extends BaseMenu
31 31
   {
32 32
     $this->addNavLinkRoute($menu, 'Elements', 'Muzich_AdminBundle_Admin_element_list');
33 33
     $this->addNavLinkRoute($menu, 'Tags', 'Muzich_AdminBundle_Admin_tag_list');
34
+    $this->addNavLinkRoute($menu, 'Groups', 'Muzich_AdminBundle_Admin_group_list');
34 35
   }
35 36
   
36 37
   public function createAdminMenu(Request $request)

+ 40 - 0
src/Muzich/AdminBundle/Resources/config/Admin_group-generator.yml Bestand weergeven

@@ -0,0 +1,40 @@
1
+generator: admingenerator.generator.doctrine
2
+params:
3
+  model: Muzich\CoreBundle\Entity\Group
4
+  namespace_prefix: Muzich
5
+  bundle_name: AdminBundle
6
+  fields: ~
7
+
8
+builders:
9
+  list:
10
+    params:
11
+      title: List for AdminBundle
12
+      display: ~
13
+      actions:
14
+        new: ~
15
+      object_actions:
16
+        edit: ~
17
+        delete: ~
18
+  filters:
19
+    params:
20
+      display: ~
21
+  new:
22
+    params:
23
+      title: New object for AdminBundle
24
+      display: ~
25
+      actions:
26
+        list: ~
27
+  edit:
28
+    params:
29
+      title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
30
+      display: ~
31
+      actions:
32
+        list: ~
33
+  show:
34
+    params:
35
+      title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
36
+      display: ~
37
+      actions:
38
+        list: ~
39
+        new: ~
40
+  delete: ~

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_groupEdit/index.html.twig Bestand weergeven

@@ -0,0 +1 @@
1
+{% extends_admingenerated "MuzichAdminBundle:Admin_groupEdit:index.html.twig" %}

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_groupList/index.html.twig Bestand weergeven

@@ -0,0 +1 @@
1
+{% extends_admingenerated "MuzichAdminBundle:Admin_groupList:index.html.twig" %}

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_groupNew/index.html.twig Bestand weergeven

@@ -0,0 +1 @@
1
+{% extends_admingenerated "MuzichAdminBundle:Admin_groupNew:index.html.twig" %}

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_groupShow/index.html.twig Bestand weergeven

@@ -0,0 +1 @@
1
+{% extends_admingenerated "MuzichAdminBundle:Admin_groupShow:index.html.twig" %}