Skip to content

Commit

Permalink
OP-329: Forms/elements consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Jul 11, 2024
1 parent fef4418 commit 42b01c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Resources/config/grids/admin/collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ sylius_grid:
code: asc
limits: [10, 25, 50]
fields:
name:
type: string
label: bitbag_sylius_cms_plugin.ui.name
sortable: translation.name
code:
type: string
label: bitbag_sylius_cms_plugin.ui.code
Expand All @@ -17,10 +21,6 @@ sylius_grid:
type: string
label: bitbag_sylius_cms_plugin.ui.type
sortable: ~
name:
type: string
label: bitbag_sylius_cms_plugin.ui.name
sortable: translation.name
filters:
search:
type: string
Expand Down
14 changes: 11 additions & 3 deletions src/Resources/config/grids/admin/media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ sylius_grid:
type: string
label: bitbag_sylius_cms_plugin.ui.code
sortable: ~
enabled:
type: twig
label: sylius.ui.enabled
options:
template: "@SyliusUi/Grid/Field/enabled.html.twig"
collections:
type: twig
label: bitbag_sylius_cms_plugin.ui.collections
path: .
options:
template: "@BitBagSyliusCmsPlugin/Grid/Field/collections.html.twig"
path:
type: string
label: bitbag_sylius_cms_plugin.ui.path
type:
type: string
label: bitbag_sylius_cms_plugin.ui.type
filters:
search:
type: string
Expand Down

0 comments on commit 42b01c1

Please sign in to comment.