Skip to content

Commit

Permalink
Add email templates
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Jun 24, 2024
1 parent d0e9456 commit 20744e0
Show file tree
Hide file tree
Showing 5 changed files with 319 additions and 0 deletions.
82 changes: 82 additions & 0 deletions emails/approved.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
</head>
<body style="margin:0;padding:0;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" cellpadding="0" cellspacing="0" border="0"
width="600" style="border-collapse: collapse">
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-bottom: 4px solid #C8E6C9; background-color: #fafafa;"
width="100%">
<tr>
<td>
<h2 style="margin-bottom: 2px;">Translations approved</h2>
{date} {time}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding: 40px 20px 50px 20px">
<tr>
<td>
<table>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Job Name:</th>
<td>{jobname}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Source:</th>
<td>{source}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Target:</th>
<td>{target}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Pages:</th>
<td>{nodes}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Status:</th>
<td>{status}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<a href="{serverName}/#/translation/jobs/edit/{id}">View Job ({serverName}/#/translation/jobs/edit/{id})</a>

</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-top: 4px solid #292C44;font-size: 8pt;font-style: italic;"
width="100%">
<tr>
<td>
Translation Manager for Umbraco
</td>
</tr>
</table>

</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
59 changes: 59 additions & 0 deletions emails/pending.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
</head>
<body style="margin:0;padding:0;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" cellpadding="0" cellspacing="0" border="0"
width="600" style="border-collapse: collapse">
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-bottom: 4px solid #FFE0B2; background-color: #fafafa;"
width="100%">
<tr>
<td>
<h2 style="margin-bottom: 2px;">Pending website translation</h2>
{date} {time}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding: 40px 20px 50px 20px">
<tr>
<td>
<p>
There are {nodes} new content items pending translation, for the {target} language
</p>
<p>
<a href="{serverName}/#/translation/pending/summary">View Pending Translations</a>
</p>
</td>
</table>

</td>
</tr>
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-top: 4px solid #292C44;font-size: 8pt;font-style: italic;"
width="100%">
<tr>
<td>
Translation Manager for Umbraco
</td>
</tr>
</table>

</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
13 changes: 13 additions & 0 deletions emails/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# email templates

This folder contains the internal email template files used for email notifications.

you can take a copy of these files and place them in one of hte following folders to
override the internal templates:

## Website Folder

- emails/
- translations/emails
- wwwroot/emails
- wwwroot/translations/emails.
83 changes: 83 additions & 0 deletions emails/received.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
</head>
<body style="margin:0;padding:0;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" cellpadding="0" cellspacing="0" border="0"
width="600" style="border-collapse: collapse">
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-bottom: 4px solid #FFE0B2; background-color: #fafafa;"
width="100%">
<tr>
<td>
<h2 style="margin-bottom: 2px;">Translations received</h2>
{date} {time}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding: 40px 20px 50px 20px">
<tr>
<td>
<table>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Job Name:</th>
<td>{jobname}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Source:</th>
<td>{source}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Target:</th>
<td>{target}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Pages:</th>
<td>{nodes}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Status:</th>
<td>{status}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<a href="{serverName}/#/translation/jobs/edit/{id}">View Job ({serverName}/#/translation/jobs/edit/{id})</a>

</td>
</tr>
</table>
</td>
</tr>
</table>

</td>
</tr>
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-top: 4px solid #292C44;font-size: 8pt;font-style: italic;"
width="100%">
<tr>
<td>
Translation Manager for Umbraco
</td>
</tr>
</table>

</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
82 changes: 82 additions & 0 deletions emails/submitted.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
</head>
<body style="margin:0;padding:0;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" cellpadding="0" cellspacing="0" border="0"
width="600" style="border-collapse: collapse">
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-bottom: 4px solid #B2EBF2; background-color: #fafafa;"
width="100%">
<tr>
<td>
<h2 style="margin-bottom: 2px;">Translations submitted</h2>
{date} {time}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding: 40px 20px 50px 20px">
<tr>
<td>
<table>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Job Name:</th>
<td>{jobname}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Source:</th>
<td>{source}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Target:</th>
<td>{target}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Pages:</th>
<td>{nodes}</td>
</tr>
<tr>
<th style="text-align: right; width: 275px; padding: 5px; ">Status:</th>
<td>{status}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<a href="{serverName}/#/translation/jobs/edit/{id}">View Job ({serverName}/#/translation/jobs/edit/{id})</a>

</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-top: 4px solid #292C44;font-size: 8pt;font-style: italic;"
width="100%">
<tr>
<td>
Translation Manager for Umbraco
</td>
</tr>
</table>

</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

0 comments on commit 20744e0

Please sign in to comment.