From 42b01c1456dbed87d327d49da5eec7a63a11c482 Mon Sep 17 00:00:00 2001 From: jkindly Date: Thu, 11 Jul 2024 10:45:32 +0200 Subject: [PATCH] OP-329: Forms/elements consistency --- src/Resources/config/grids/admin/collection.yml | 8 ++++---- src/Resources/config/grids/admin/media.yml | 14 +++++++++++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/Resources/config/grids/admin/collection.yml b/src/Resources/config/grids/admin/collection.yml index 7a1411a64..f7ed286bf 100755 --- a/src/Resources/config/grids/admin/collection.yml +++ b/src/Resources/config/grids/admin/collection.yml @@ -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 @@ -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 diff --git a/src/Resources/config/grids/admin/media.yml b/src/Resources/config/grids/admin/media.yml index e5608163f..0ed7a089d 100644 --- a/src/Resources/config/grids/admin/media.yml +++ b/src/Resources/config/grids/admin/media.yml @@ -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