Skip to content

Commit

Permalink
We need a default sorting in grid to have sorting works
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Aug 2, 2024
1 parent 46c0987 commit bbe67d1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Resources/config/sylius/grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/Resources/translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/Resources/translations/messages.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/Resources/translations/messages.pl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bbe67d1

Please sign in to comment.