From 8287f5cf2b0fa447c686df02370313f2617be171 Mon Sep 17 00:00:00 2001 From: rintisch Date: Sun, 7 Apr 2024 18:41:39 +0200 Subject: [PATCH] [TASK] Show correct message when wrong page Adapt the message when the module is used on a page without order items. Furhtermore show a correct message when the filtered search results in zero results. --- .../9.0/Breaking-471-CleanUpLanguageFiles.rst | 26 +++ Resources/Private/Language/locallang.xlf | 9 + .../Templates/Backend/Order/Order/List.html | 161 ++++++++++-------- 3 files changed, 126 insertions(+), 70 deletions(-) create mode 100644 Documentation/Changelog/9.0/Breaking-471-CleanUpLanguageFiles.rst diff --git a/Documentation/Changelog/9.0/Breaking-471-CleanUpLanguageFiles.rst b/Documentation/Changelog/9.0/Breaking-471-CleanUpLanguageFiles.rst new file mode 100644 index 00000000..3984e686 --- /dev/null +++ b/Documentation/Changelog/9.0/Breaking-471-CleanUpLanguageFiles.rst @@ -0,0 +1,26 @@ +.. include:: ../../Includes.txt + +=========================================================== +Breaking: #471 - Clean up language files +=========================================================== + +See :issue:`471` + +Description +=========== + +The language files contained a bigger amount of unused entries and their domains +were not really clear. Some entries were renamed to clarify their usage in the +backend. + +Affected Installations +====================== + +Installations which overwrite backend labels might be affected. + +Migration +========= + +You need to check whether the key of your overwrite was changed and adapt it. + +.. index:: Backend diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index c039baec..881f650c 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -574,6 +574,15 @@ End Date + + No results for this filter + + + This page does not contain any order items. + + + Please select a page where order items are stored. + diff --git a/Resources/Private/Templates/Backend/Order/Order/List.html b/Resources/Private/Templates/Backend/Order/Order/List.html index f590080b..5a8ab88f 100644 --- a/Resources/Private/Templates/Backend/Order/Order/List.html +++ b/Resources/Private/Templates/Backend/Order/Order/List.html @@ -7,78 +7,99 @@
- + + + + Do not show the filter if the page has no `orderItems` and no ``searchArguments`. + The searchArguments are needed as condition as otherwise the filters will not be shown when the + search results in zero order items. + + + + + + -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
( - - ) -
- -
( - - ) -
-   -
-
- -
- - Select a Page where Order Item Dataset are saved. - -
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
( + + ) +
+ +
( + + ) +
+   +
+
+ +
+ + + + + + +

+

+
+
+ +
+
\ No newline at end of file