Skip to content

Commit

Permalink
feat: add column channel in admin grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Gutbub committed Sep 8, 2023
1 parent 70cf144 commit 1960428
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Resources/config/sylius/grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ sylius_grid:
type: string
label: monsieurbiz_homepage.ui.form.name
sortable: translation.name
channels:
type: twig
label: sylius.ui.channels
options:
template: '@SyliusAdmin/Grid/Field/_channels.html.twig'
actions:
main:
create:
Expand All @@ -32,3 +37,10 @@ sylius_grid:
content:
type: string
label: monsieurbiz_homepage.ui.form.content
channel:
type: entity
label: sylius.ui.channel
options:
fields: [ channels.id ]
form_options:
class: "%sylius.model.channel.class%"

0 comments on commit 1960428

Please sign in to comment.