From 12a0cef47cec485f401f6ccecdd41623a4687025 Mon Sep 17 00:00:00 2001 From: Alexander Kellner Date: Fri, 6 Dec 2024 11:11:52 +0100 Subject: [PATCH] [FEATURE] Show a note instead of an empty origin selection if there are no pages of type newsletter --- Resources/Private/Language/de.locallang.xlf | 4 +++ Resources/Private/Language/locallang.xlf | 3 ++ .../Partials/Newsletter/FormFields.html | 32 ++++++++++++------- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf index d167b04..f6ce527 100644 --- a/Resources/Private/Language/de.locallang.xlf +++ b/Resources/Private/Language/de.locallang.xlf @@ -362,6 +362,10 @@ Please select a newsletter page that should be parsed and then sent Bitte wähle eine Newsletterseite aus, die geparst und anschließend versendet werden soll + + Please first create a page of the type "Newsletter" in the page tree. + Bitte zuerst eine Seite vom Typ "Newsletter" im Seitenbaum anlegen. + Send a test mail to yourself Newsletter testweise versenden diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 8ab6eef..bfcc4f2 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -252,6 +252,9 @@ Note: Recipient lists that have already been created cannot be changed later. + + Please first create a page of the type "Newsletter" in the page tree. + Sender diff --git a/Resources/Private/Partials/Newsletter/FormFields.html b/Resources/Private/Partials/Newsletter/FormFields.html index 05e3605..25931f3 100644 --- a/Resources/Private/Partials/Newsletter/FormFields.html +++ b/Resources/Private/Partials/Newsletter/FormFields.html @@ -174,17 +174,27 @@ - - - Choose an origin - + + + + + Choose an origin + + + +

+ No newsletter pages +

+
+
+