Browse Source

Evolution #601: Admin: re-création: Config de base pour l'admin.

Sevajol Bastien 12 years ago
parent
commit
a435b1470a

+ 6 - 5
src/Muzich/AdminBundle/Resources/config/Admin_element_tags_proposition-generator.yml View File

13
       actions:
13
       actions:
14
         new: ~
14
         new: ~
15
       object_actions:
15
       object_actions:
16
+        show: ~
16
         edit: ~
17
         edit: ~
17
         delete: ~
18
         delete: ~
18
   filters:
19
   filters:
21
   new:
22
   new:
22
     params:
23
     params:
23
       title: New object for AdminBundle
24
       title: New object for AdminBundle
24
-      display: ~
25
+      display: [ element, user, tags ]
25
       actions:
26
       actions:
26
         list: ~
27
         list: ~
27
   edit:
28
   edit:
28
     params:
29
     params:
29
-      title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
30
-      display: ~
30
+      title: "You're editing tags propotions for \"%object%\"|{ %object%: ElementTagsProposition.element.name }|"
31
+      display: [ element, user, tags ]
31
       actions:
32
       actions:
32
         list: ~
33
         list: ~
33
   show:
34
   show:
34
     params:
35
     params:
35
-      title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
36
-      display: ~
36
+      title: "You're editing tags propotions \"%object%\"|{ %object%: ElementTagsProposition.element.name }|"
37
+      display: [ element, user, tags ]
37
       actions:
38
       actions:
38
         list: ~
39
         list: ~
39
         new: ~
40
         new: ~

+ 6 - 6
src/Muzich/AdminBundle/Resources/config/Admin_event_archive-generator.yml View File

20
       display: [ type, user ]
20
       display: [ type, user ]
21
   new:
21
   new:
22
     params:
22
     params:
23
-      title: New object for AdminBundle
24
-      display: ~
23
+      title: New Event archive
24
+      display: [ type, user, count]
25
       actions:
25
       actions:
26
         list: ~
26
         list: ~
27
   edit:
27
   edit:
28
     params:
28
     params:
29
-      title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
30
-      display: ~
29
+      title: "You're editing event archive for \"%object%\"|{ %object%: EventArchive.user.username }|"
30
+      display: [ type, user, count]
31
       actions:
31
       actions:
32
         list: ~
32
         list: ~
33
   show:
33
   show:
34
     params:
34
     params:
35
-      title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
36
-      display: ~
35
+      title: "You're editing event archive for \"%object%\"|{ %object%: EventArchive.user.username }|"
36
+      display: [ type, user, count]
37
       actions:
37
       actions:
38
         list: ~
38
         list: ~
39
         new: ~
39
         new: ~

+ 7 - 6
src/Muzich/AdminBundle/Resources/config/Admin_follow_group-generator.yml View File

13
       actions:
13
       actions:
14
         new: ~
14
         new: ~
15
       object_actions:
15
       object_actions:
16
+        show: ~
16
         edit: ~
17
         edit: ~
17
         delete: ~
18
         delete: ~
18
   filters:
19
   filters:
20
       display: [ follower, group ]
21
       display: [ follower, group ]
21
   new:
22
   new:
22
     params:
23
     params:
23
-      title: New object for AdminBundle
24
-      display: ~
24
+      title: New object for Group Follow
25
+      display: [ follower, group ]
25
       actions:
26
       actions:
26
         list: ~
27
         list: ~
27
   edit:
28
   edit:
28
     params:
29
     params:
29
-      title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
30
-      display: ~
30
+      title: "You're editing the object \"%object%\"|{ %object%: FollowGroup.group.name }|"
31
+      display: [ follower, group ]
31
       actions:
32
       actions:
32
         list: ~
33
         list: ~
33
   show:
34
   show:
34
     params:
35
     params:
35
-      title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
36
-      display: ~
36
+      title: "You're viewing the object \"%object%\"|{ %object%: FollowGroup.group.name }|"
37
+      display: [ follower, group ]
37
       actions:
38
       actions:
38
         list: ~
39
         list: ~
39
         new: ~
40
         new: ~

+ 7 - 6
src/Muzich/AdminBundle/Resources/config/Admin_follow_user-generator.yml View File

13
       actions:
13
       actions:
14
         new: ~
14
         new: ~
15
       object_actions:
15
       object_actions:
16
+        show: ~
16
         edit: ~
17
         edit: ~
17
         delete: ~
18
         delete: ~
18
   filters:
19
   filters:
20
       display: [ follower, followed ]
21
       display: [ follower, followed ]
21
   new:
22
   new:
22
     params:
23
     params:
23
-      title: New object for AdminBundle
24
-      display: ~
24
+      title: New object for User Follow
25
+      display: [ follower, followed ]
25
       actions:
26
       actions:
26
         list: ~
27
         list: ~
27
   edit:
28
   edit:
28
     params:
29
     params:
29
-      title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
30
-      display: ~
30
+      title: "You're editing following for the object \"%object%\"|{ %object%: FollowUser.followed.username }|"
31
+      display: [ follower, followed ]
31
       actions:
32
       actions:
32
         list: ~
33
         list: ~
33
   show:
34
   show:
34
     params:
35
     params:
35
-      title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
36
-      display: ~
36
+      title: "You're viewing following for the object \"%object%\"|{ %object%: FollowUser.followed.username }|"
37
+      display: [ follower, followed ]
37
       actions:
38
       actions:
38
         list: ~
39
         list: ~
39
         new: ~
40
         new: ~

+ 6 - 6
src/Muzich/AdminBundle/Resources/config/Admin_groups_tags_favorites-generator.yml View File

20
       display: [ group, tag ]
20
       display: [ group, tag ]
21
   new:
21
   new:
22
     params:
22
     params:
23
-      title: New object for AdminBundle
24
-      display: ~
23
+      title: New Group tag favorite
24
+      display: [ group, tag ]
25
       actions:
25
       actions:
26
         list: ~
26
         list: ~
27
   edit:
27
   edit:
28
     params:
28
     params:
29
-      title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
30
-      display: ~
29
+      title: "You're editing the object \"%object%\"|{ %object%: GroupsTagsFavorites.group.name }|"
30
+      display: [ group, tag ]
31
       actions:
31
       actions:
32
         list: ~
32
         list: ~
33
   show:
33
   show:
34
     params:
34
     params:
35
-      title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
36
-      display: ~
35
+      title: "You're viewing the object \"%object%\"|{ %object%: GroupsTagsFavorites.group.name }|"
36
+      display: [ group, tag ]
37
       actions:
37
       actions:
38
         list: ~
38
         list: ~
39
         new: ~
39
         new: ~

+ 1 - 2
src/Muzich/AdminBundle/Resources/config/Admin_tag-generator.yml View File

38
   show:
38
   show:
39
     params:
39
     params:
40
       title: "You're viewing element \"%object%\"|{ %object%: Tag.name }|"
40
       title: "You're viewing element \"%object%\"|{ %object%: Tag.name }|"
41
-      display:
42
-        "General" : [ name ]
41
+      display: [ name, slug ]
43
       actions:
42
       actions:
44
         list: ~
43
         list: ~
45
         new: ~
44
         new: ~

+ 6 - 6
src/Muzich/AdminBundle/Resources/config/Admin_users_tags_favorites-generator.yml View File

20
       display: [ user, tag ]
20
       display: [ user, tag ]
21
   new:
21
   new:
22
     params:
22
     params:
23
-      title: New object for AdminBundle
24
-      display: ~
23
+      title: New User tag favorite
24
+      display: [ user, tag ]
25
       actions:
25
       actions:
26
         list: ~
26
         list: ~
27
   edit:
27
   edit:
28
     params:
28
     params:
29
-      title: "You're editing the object \"%object%\"|{ %object%: YourModel.title }|"
30
-      display: ~
29
+      title: "You're editing an tag favorite \"%object%\"|{ %object%: UsersTagsFavorites.user.username }|"
30
+      display: [ user, tag ]
31
       actions:
31
       actions:
32
         list: ~
32
         list: ~
33
   show:
33
   show:
34
     params:
34
     params:
35
-      title: "You're viewing the object \"%object%\"|{ %object%: YourModel.title }|"
36
-      display: ~
35
+      title: "You're viewing the object \"%object%\"|{ %object%: UsersTagsFavorites.user.username }|"
36
+      display: [ user, tag ]
37
       actions:
37
       actions:
38
         list: ~
38
         list: ~
39
         new: ~
39
         new: ~

+ 0 - 1
src/Muzich/CoreBundle/Entity/ElementTagsProposition.php View File

48
    * 
48
    * 
49
    * @ORM\ManyToMany(targetEntity="Tag", inversedBy="propositions")
49
    * @ORM\ManyToMany(targetEntity="Tag", inversedBy="propositions")
50
    * @ORM\JoinTable(name="element_tags_proposition_tags_rel")
50
    * @ORM\JoinTable(name="element_tags_proposition_tags_rel")
51
-   * @MuzichAssert\Tags()
52
    */
51
    */
53
   protected $tags;
52
   protected $tags;
54
   
53
   

+ 1 - 1
src/Muzich/CoreBundle/Entity/GroupsTagsFavorites.php View File

42
    * L'attribut position permet de connaitre l'ordre de préfèrence du 
42
    * L'attribut position permet de connaitre l'ordre de préfèrence du 
43
    * groupe.
43
    * groupe.
44
    * 
44
    * 
45
-   * @ORM\Column(type="integer")
45
+   * @ORM\Column(type="integer",nullable=true)
46
    * @var type int
46
    * @var type int
47
    */
47
    */
48
   protected $position;
48
   protected $position;

+ 5 - 0
src/Muzich/CoreBundle/Entity/Presubscription.php View File

31
    */
31
    */
32
   public $email;
32
   public $email;
33
   
33
   
34
+  public function getId()
35
+  {
36
+    return $this->id;
37
+  }
38
+  
34
 }
39
 }