Skip to content

Commit

Permalink
wip - mail template
Browse files Browse the repository at this point in the history
  • Loading branch information
weissreto committed Feb 22, 2024
1 parent e7584e8 commit eeb1b06
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<html>
<body>
<img class="logo" src="<%= ivy.branding.ref("logo_mail") %>"/>
<h1><%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Title") %></h1>
<p><%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Greeting") %> <%= ivy.session.getSessionUser().getFullName() %></p>
<table>
<tr>
<th><%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Message") %><th>
<td><%= ivy.html.escape(message) %></td>
</tr>
<tr>
<th><%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Customer") %></th>
<td><i style="color: red;"> <%= ivy.html.escape(payload.get("surname")) %> <%= ivy.html.escape(payload.get("name")) %> </i></td>
</tr>
</table>
</body>
</html>
5 changes: 4 additions & 1 deletion workflow/workflow-demos/cms/cms_de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions workflow/workflow-demos/cms/cms_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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) %><br>
<%= ivy.cm.co("/Notification/business/Templates/Order/Labels/customer") %> <i style="color:red;"><%= ivy.html.escape(payload.get("surname")) %> <%= ivy.html.escape(payload.get("name")) %> </i>
<%= ivy.cm.co("/Notification/business/Templates/Order/Labels/Customer") %> <i style="color:red;"><%= ivy.html.escape(payload.get("surname")) %> <%= ivy.html.escape(payload.get("name")) %> </i>
ProcessDescriptions:
AdHocDescription: 'Self Service Process: Launch an ad-hoc Workflow based on a predefined flow pattern.'
AdHocName: Ad-hoc Process
Expand Down

0 comments on commit eeb1b06

Please sign in to comment.