Commit 187549fb by Julien Jorry

Admin menu with 'create' and 'list' instead of 'manage'

parent 38ebb1c7
...@@ -176,6 +176,9 @@ sonata_admin: ...@@ -176,6 +176,9 @@ sonata_admin:
label_catalogue: SonataAdminBundle label_catalogue: SonataAdminBundle
icon: '<i class="fa fa-address-card"></i>' icon: '<i class="fa fa-address-card"></i>'
items: items:
- route: adherent_create
label: Ajouter
- admin.adherent.gerer
- admin.adherent.gerer - admin.adherent.gerer
- admin.adherent.cotisations - admin.adherent.cotisations
sonata.admin.group.prestataire: sonata.admin.group.prestataire:
...@@ -184,6 +187,8 @@ sonata_admin: ...@@ -184,6 +187,8 @@ sonata_admin:
label_catalogue: SonataAdminBundle label_catalogue: SonataAdminBundle
icon: '<i class="fa fa-user-tie"></i>' icon: '<i class="fa fa-user-tie"></i>'
items: items:
- route: prestataire_create
label: Ajouter
- admin.prestataire.gerer - admin.prestataire.gerer
- admin.prestataire.cotisations - admin.prestataire.cotisations
- admin.groupepresta.gerer - admin.groupepresta.gerer
......
...@@ -140,7 +140,7 @@ services: ...@@ -140,7 +140,7 @@ services:
- name: sonata.admin - name: sonata.admin
manager_type: orm manager_type: orm
group: "Adherent" group: "Adherent"
label: "Gérer" label: "Liste"
# - group: "Contenu" # - group: "Contenu"
# - label: "Adhérents" # - label: "Adhérents"
# - label_catalogue: "App" # - label_catalogue: "App"
...@@ -180,7 +180,7 @@ services: ...@@ -180,7 +180,7 @@ services:
- name: sonata.admin - name: sonata.admin
manager_type: orm manager_type: orm
group: "Prestataire" group: "Prestataire"
label: "Gérer" label: "Liste"
public: true public: true
calls: calls:
- [ setUserManager, ['@fos_user.user_manager']] - [ setUserManager, ['@fos_user.user_manager']]
......
...@@ -338,6 +338,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -338,6 +338,7 @@ class AdherentAdmin extends AbstractAdmin
protected function configureRoutes(RouteCollection $collection) protected function configureRoutes(RouteCollection $collection)
{ {
parent::configureRoutes($collection);
$collection->remove('delete'); $collection->remove('delete');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment