From 428358ae108375980f2685bb88e53d77b0dc815c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jasmina=20Lie=C3=9Fmann?= <minapokhalo+typo3@gmail.com> Date: Tue, 23 Apr 2024 19:39:52 +0200 Subject: [PATCH] [TASK] Show information text as infobox in "Workspaces" backend module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If no record was found in "Workspaces" backend module, an information is displayed. This text is now displayed in the typical infobox style instead of with specific Bootstrap styling classes. Resolves: #103714 Releases: main, 12.4 Change-Id: I78637defba53cebdfc659b2414c59b4f4dbb7bbb Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84010 Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Reviewed-by: Benni Mack <benni@typo3.org> --- .../workspaces/Resources/Private/Language/locallang.xlf | 2 +- .../Resources/Private/Partials/WorkingTable.html | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/typo3/sysext/workspaces/Resources/Private/Language/locallang.xlf b/typo3/sysext/workspaces/Resources/Private/Language/locallang.xlf index fd4763246efe..3e9364b4e075 100644 --- a/typo3/sysext/workspaces/Resources/Private/Language/locallang.xlf +++ b/typo3/sysext/workspaces/Resources/Private/Language/locallang.xlf @@ -7,7 +7,7 @@ <source>Workspaces</source> </trans-unit> <trans-unit id="noResults" resname="noResults"> - <source>No records found</source> + <source>No records found.</source> </trans-unit> <trans-unit id="ok" resname="ok"> <source>Ok</source> diff --git a/typo3/sysext/workspaces/Resources/Private/Partials/WorkingTable.html b/typo3/sysext/workspaces/Resources/Private/Partials/WorkingTable.html index d8f155a76e03..ba3f08d8f726 100644 --- a/typo3/sysext/workspaces/Resources/Private/Partials/WorkingTable.html +++ b/typo3/sysext/workspaces/Resources/Private/Partials/WorkingTable.html @@ -58,9 +58,10 @@ <typo3-workspaces-record-table></typo3-workspaces-record-table> </div> <div id="workspace-contents-empty" style="display: none"> - <div class="shadow-sm bg-info bg-gradient p-3"> - <f:translate key="LLL:EXT:workspaces/Resources/Private/Language/locallang.xlf:noResults" /> - </div> + <f:be.infobox + message="{f:translate(key:'LLL:EXT:workspaces/Resources/Private/Language/locallang.xlf:noResults')}" + state="-2" + /> </div> </div> <f:render section="multiRecordSelectionActions" arguments="{stageActions: stageActions, availableStages: availableStages, showEntireWorkspaceDropDown: showEntireWorkspaceDropDown, position: 'bottom'}" /> -- GitLab