Commit 187549fb by Julien Jorry

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

parent 38ebb1c7
......@@ -176,6 +176,9 @@ sonata_admin:
label_catalogue: SonataAdminBundle
icon: '<i class="fa fa-address-card"></i>'
items:
- route: adherent_create
label: Ajouter
- admin.adherent.gerer
- admin.adherent.gerer
- admin.adherent.cotisations
sonata.admin.group.prestataire:
......@@ -184,6 +187,8 @@ sonata_admin:
label_catalogue: SonataAdminBundle
icon: '<i class="fa fa-user-tie"></i>'
items:
- route: prestataire_create
label: Ajouter
- admin.prestataire.gerer
- admin.prestataire.cotisations
- admin.groupepresta.gerer
......
......@@ -140,7 +140,7 @@ services:
- name: sonata.admin
manager_type: orm
group: "Adherent"
label: "Gérer"
label: "Liste"
# - group: "Contenu"
# - label: "Adhérents"
# - label_catalogue: "App"
......@@ -180,7 +180,7 @@ services:
- name: sonata.admin
manager_type: orm
group: "Prestataire"
label: "Gérer"
label: "Liste"
public: true
calls:
- [ setUserManager, ['@fos_user.user_manager']]
......
......@@ -338,6 +338,7 @@ class AdherentAdmin extends AbstractAdmin
protected function configureRoutes(RouteCollection $collection)
{
parent::configureRoutes($collection);
$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