From eeb1b06ff1fff6a91552c80a76257d70274d7b2f Mon Sep 17 00:00:00 2001 From: Reto Weiss Date: Thu, 22 Feb 2024 15:22:14 +0100 Subject: [PATCH] wip - mail template --- .../business/Templates/Order/mail/Content.html | 17 +++++++++++++++++ workflow/workflow-demos/cms/cms_de.yaml | 5 ++++- workflow/workflow-demos/cms/cms_en.yaml | 7 +++++-- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 workflow/workflow-demos/cms/Notification/business/Templates/Order/mail/Content.html diff --git a/workflow/workflow-demos/cms/Notification/business/Templates/Order/mail/Content.html b/workflow/workflow-demos/cms/Notification/business/Templates/Order/mail/Content.html new file mode 100644 index 000000000..029309159 --- /dev/null +++ b/workflow/workflow-demos/cms/Notification/business/Templates/Order/mail/Content.html @@ -0,0 +1,17 @@ + + + "/> +

<%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Title") %>

+

<%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Greeting") %> <%= ivy.session.getSessionUser().getFullName() %>

+ + + + + + + + +
<%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Message") %> + <%= ivy.html.escape(message) %>
<%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Customer") %> <%= ivy.html.escape(payload.get("surname")) %> <%= ivy.html.escape(payload.get("name")) %>
+ + diff --git a/workflow/workflow-demos/cms/cms_de.yaml b/workflow/workflow-demos/cms/cms_de.yaml index 9658411ef..b3b32f63c 100644 --- a/workflow/workflow-demos/cms/cms_de.yaml +++ b/workflow/workflow-demos/cms/cms_de.yaml @@ -137,7 +137,10 @@ Notification: Templates: Order: Labels: - customer: Kunde + Customer: Kunde + Greeting: 'Hallo ' + Message: Meldung + Title: Bestellungsinformation TaskDescriptions: DeliverKeyCardDesc: Bitte liefern Sie die Schlüsselkarte aus für acceptRequest: Antrag annehmen diff --git a/workflow/workflow-demos/cms/cms_en.yaml b/workflow/workflow-demos/cms/cms_en.yaml index a2c982962..a3f483bc3 100644 --- a/workflow/workflow-demos/cms/cms_en.yaml +++ b/workflow/workflow-demos/cms/cms_en.yaml @@ -199,11 +199,14 @@ Notification: Templates: Order: Labels: - customer: Customer + Customer: Customer + Greeting: Hello + Message: Message + Title: Order Information web: Subject: |- <%= ivy.html.escape(message) %>
- <%= ivy.cm.co("/Notification/business/Templates/Order/Labels/customer") %> <%= ivy.html.escape(payload.get("surname")) %> <%= ivy.html.escape(payload.get("name")) %> + <%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Customer") %> <%= ivy.html.escape(payload.get("surname")) %> <%= ivy.html.escape(payload.get("name")) %> ProcessDescriptions: AdHocDescription: 'Self Service Process: Launch an ad-hoc Workflow based on a predefined flow pattern.' AdHocName: Ad-hoc Process