Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-mlc
kohinos
Commits
187549fb
Commit
187549fb
authored
Mar 14, 2019
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Admin menu with 'create' and 'list' instead of 'manage'
parent
38ebb1c7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
sonata_admin.yaml
config/packages/sonata_admin.yaml
+5
-0
services.yaml
config/services.yaml
+2
-2
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+1
-0
No files found.
config/packages/sonata_admin.yaml
View file @
187549fb
...
@@ -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
...
...
config/services.yaml
View file @
187549fb
...
@@ -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'
]]
...
...
src/Admin/AdherentAdmin.php
View file @
187549fb
...
@@ -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'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment