Skip to content

Commit

Permalink
Merge pull request #36 from etienne-monsieurbiz/feature/grid-column-c…
Browse files Browse the repository at this point in the history
…hannel

Add column channel in admin grid
  • Loading branch information
maximehuran authored Sep 8, 2023
2 parents 70cf144 + 1960428 commit 09a90a0
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 09a90a0

Please sign in to comment.