From bbe67d188c27f0f49039ca9c8677e65f674e7c75 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 2 Aug 2024 12:27:47 +0200 Subject: [PATCH] We need a default sorting in grid to have sorting works --- src/Resources/config/sylius/grid.yaml | 6 ++++++ src/Resources/translations/messages.en.yaml | 1 + src/Resources/translations/messages.fr.yaml | 1 + src/Resources/translations/messages.pl.yaml | 1 + 4 files changed, 9 insertions(+) diff --git a/src/Resources/config/sylius/grid.yaml b/src/Resources/config/sylius/grid.yaml index d4bea9d..3c40fa7 100644 --- a/src/Resources/config/sylius/grid.yaml +++ b/src/Resources/config/sylius/grid.yaml @@ -12,7 +12,13 @@ sylius_grid: method: createListQueryBuilder arguments: ["%locale%"] limits: [25, 50, 100, 200] + sorting: + id: desc fields: + id: + type: string + label: monsieurbiz_cms_page.ui.form.id + sortable: ~ code: type: string label: monsieurbiz_cms_page.ui.form.code diff --git a/src/Resources/translations/messages.en.yaml b/src/Resources/translations/messages.en.yaml index 30f6ffb..95a3a5a 100644 --- a/src/Resources/translations/messages.en.yaml +++ b/src/Resources/translations/messages.en.yaml @@ -7,6 +7,7 @@ monsieurbiz_cms_page: pages_subheader: "CMS Page management" back_to_admin: "Back to admin" form: + id: 'ID' page_info: 'Page information' page_content: 'Page content' enabled: "Enabled" diff --git a/src/Resources/translations/messages.fr.yaml b/src/Resources/translations/messages.fr.yaml index 16fffc8..31f7e2b 100644 --- a/src/Resources/translations/messages.fr.yaml +++ b/src/Resources/translations/messages.fr.yaml @@ -7,6 +7,7 @@ monsieurbiz_cms_page: pages_subheader: "Gestion des contenus CMS" back_to_admin: "Retour à l'admin" form: + id: 'ID' page_info: 'Informations de la page' page_content: 'Contenu de la page' enabled: "Activée" diff --git a/src/Resources/translations/messages.pl.yaml b/src/Resources/translations/messages.pl.yaml index 19fabcf..64049ae 100644 --- a/src/Resources/translations/messages.pl.yaml +++ b/src/Resources/translations/messages.pl.yaml @@ -7,6 +7,7 @@ monsieurbiz_cms_page: pages_subheader: "Zarządzanie stronami CMS" back_to_admin: "Powrót do administracji" form: + id: 'ID' page_info: 'Informacje o stronie' page_content: 'Treść strony' enabled: "Włączone"