ソースを参照

Evolution #808: Playlist admin

Bastien Sevajol 11 年 前
コミット
105ea953d0

+ 5 - 0
app/config/routing.yml ファイルの表示

@@ -105,6 +105,11 @@ MuzichAdminBundle_admin_muzich_admin_bundle_Admin_group:
105 105
     resource: "@MuzichAdminBundle/Controller/Admin_group/"
106 106
     type:     admingenerator
107 107
     prefix:   /admin/muzich_admin_bundle/Admin_group
108
+    
109
+MuzichAdminBundle_admin_muzich_admin_bundle_Admin_playlist:
110
+    resource: "@MuzichAdminBundle/Controller/Admin_playlist/"
111
+    type:     admingenerator
112
+    prefix:   /admin/muzich_admin_bundle/Admin_playlist
108 113
 
109 114
 MuzichAdminBundle_admin_muzich_admin_bundle_Admin_user:
110 115
     resource: "@MuzichAdminBundle/Controller/Admin_user/"

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_playlist/DeleteController.php ファイルの表示

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

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_playlist/EditController.php ファイルの表示

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

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_playlist/ListController.php ファイルの表示

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

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_playlist/NewController.php ファイルの表示

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

+ 9 - 0
src/Muzich/AdminBundle/Controller/Admin_playlist/ShowController.php ファイルの表示

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

+ 9 - 0
src/Muzich/AdminBundle/Form/Type/Admin_playlist/EditType.php ファイルの表示

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

+ 9 - 0
src/Muzich/AdminBundle/Form/Type/Admin_playlist/FiltersType.php ファイルの表示

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

+ 9 - 0
src/Muzich/AdminBundle/Form/Type/Admin_playlist/NewType.php ファイルの表示

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

+ 1 - 0
src/Muzich/AdminBundle/Menu/MenuBuilder.php ファイルの表示

@@ -43,6 +43,7 @@ class MenuBuilder extends BaseMenu
43 43
     $this->addNavLinkRoute($menu, 'Events Archives', 'Muzich_AdminBundle_Admin_event_archive_list');
44 44
     $this->addNavLinkRoute($menu, 'Registration Tokens', 'Muzich_AdminBundle_Admin_registration_token_list');
45 45
     $this->addNavLinkRoute($menu, 'Pre-subscriptions', 'Muzich_AdminBundle_Admin_presubscription_list');
46
+    $this->addNavLinkRoute($menu, 'Playlists', 'Muzich_AdminBundle_Admin_playlist_list');
46 47
   }
47 48
   
48 49
   protected function addModerationLinksToMenu($menu)

+ 47 - 0
src/Muzich/AdminBundle/Resources/config/Admin_playlist-generator.yml ファイルの表示

@@ -0,0 +1,47 @@
1
+generator: admingenerator.generator.doctrine
2
+params:
3
+  model: Muzich\CoreBundle\Entity\Playlist
4
+  namespace_prefix: Muzich
5
+  bundle_name: AdminBundle
6
+  fields:
7
+    owner:
8
+      formType: shtumi_ajax_autocomplete
9
+      formOptions:
10
+        entity_alias: users
11
+
12
+builders:
13
+  list:
14
+    params:
15
+      title: List for Playlists
16
+      display: [name, public, owner]
17
+      actions:
18
+        new: ~
19
+      object_actions:
20
+        show: ~
21
+        edit: ~
22
+        delete: ~
23
+  filters:
24
+    params:
25
+      display: [name, public, owner]
26
+  new:
27
+    params:
28
+      title: New Playlist
29
+      display: [name, owner, public]
30
+      actions:
31
+        save: ~
32
+        list: ~
33
+  edit:
34
+    params:
35
+      title: "You're editing the object \"%object%\"|{ %object%: Playlist.name }|"
36
+      display: [name, owner, public]
37
+      actions:
38
+        save: ~
39
+        list: ~
40
+  show:
41
+    params:
42
+      title: "You're viewing the object \"%object%\"|{ %object%: Playlist.name }|"
43
+      display: [name, owner, public]
44
+      actions:
45
+        list: ~
46
+        new: ~
47
+  delete: ~

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_playlistEdit/index.html.twig ファイルの表示

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

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_playlistList/index.html.twig ファイルの表示

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

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_playlistNew/index.html.twig ファイルの表示

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

+ 1 - 0
src/Muzich/AdminBundle/Resources/views/Admin_playlistShow/index.html.twig ファイルの表示

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