-
Notifications
You must be signed in to change notification settings - Fork 63
/
tool_qualification_expiration_email.html
72 lines (72 loc) · 3.21 KB
/
tool_qualification_expiration_email.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<!--[if mso]><table width="600" align="center"><tr><td><![endif]-->
<table align="center"
style="width:100%;
max-width:600px;
font-family: 'Avenir Next', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'">
{% if remaining_days %}
{# This is only a reminder #}
<tr>
<td align="center"
style="color: white;
background: #5bc0de;
margin: 0;
padding: 50px 0"
bgcolor="#5bc0de">
<h1 style="max-width: 90%; margin: 0 auto; padding: 0;">
{{ tool.name }} access expiring in {{ remaining_days }} days!
</h1>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<p>Dear {{ user.first_name }},</p>
<p>
This is a reminder that your {{ tool.name }} access is set to expire in {{ remaining_days }} days on {{ expiration_date }} because you have not used the {{ tool.name }} since
{% if last_tool_use %}
{{ last_tool_use }}
{% else %}
last qualifying for it on {{ qualification_date }}
{% endif %}
.
</p>
<p>In order to keep access to this tool you will need to use it before {{ expiration_date }}.</p>
</td>
</tr>
{% else %}
{# Qualification expired #}
<tr>
<td align="center"
style="color: white;
background: #d9534f;
margin: 0;
padding: 50px 0"
bgcolor="#d9534f">
<h1 style="max-width: 90%; margin: 0 auto; padding: 0;">{{ tool.name }} access expired!</h1>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<p>Dear {{ user.first_name }},</p>
<p>
You lost access to the {{ tool.name }} since you have not used it since
{% if last_tool_use %}
{{ last_tool_use }}
{% else %}
last qualifying for it on {{ qualification_date }}
{% endif %}
.
</p>
<p>Please contact anyone copied on this email if you wish to get re-trained.</p>
</td>
</tr>
{% endif %}
</table>
<!--[if mso]></td></tr></table><![endif]-->
</body>
</html>