Skip to content

Commit af5311c

Browse files
barshathakurisudip-khanal
authored andcommitted
feature(rc-select): Add email template
1 parent 1906dee commit af5311c

File tree

3 files changed

+64
-90
lines changed

3 files changed

+64
-90
lines changed

templates/email/base.html

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99
body {
1010
margin: 0;
1111
padding: 0;
12-
background-color: #f4f4f4;
13-
font-family: Arial, Helvetica, sans-serif;
12+
font-family: Poppins, Arial, sans-serif;
1413
}
1514

1615
.container {
17-
max-width: 600px;
16+
max-width: 100%;
1817
margin: 20px auto;
1918
background-color: #ffffff;
2019
padding: 20px;
21-
border: 1px solid #e0e0e0;
2220
}
2321

2422
.header {
@@ -34,12 +32,6 @@
3432
color: #555555;
3533
}
3634

37-
.row {
38-
display: flex;
39-
padding: 8px 0;
40-
border-bottom: 1px solid #eeeeee;
41-
font-size: 14px;
42-
}
4335

4436
.label {
4537
width: 40%;
@@ -52,12 +44,6 @@
5244
color: #000000;
5345
}
5446

55-
.footer {
56-
margin-top: 20px;
57-
font-size: 12px;
58-
color: #888888;
59-
}
60-
6147
@media only screen and (max-width: 600px) {
6248
.row {
6349
flex-direction: column;
@@ -83,10 +69,6 @@
8369
{% block content %}
8470
{% endblock %}
8571

86-
<div class="footer">
87-
This email was generated automatically by RC Select Platform.
88-
</div>
89-
9072
</div>
9173
</body>
9274
</html>
Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,34 @@
11
{% extends "email/base.html" %}
2-
{% block content %}
3-
<p style="font-size: 14px; margin-bottom: 15px;">
4-
You have received a new contact request from the RC Select platform.
5-
</p>
62

7-
<div style="margin: 10px 0; border-top: 1px solid #dddddd;"></div>
8-
<table width="100%" cellpadding="0" cellspacing="0" style="font-size: 14px;">
9-
<tr>
10-
<td style="padding: 6px 0; font-weight: bold; width: 40%;">Name:</td>
11-
<td style="padding: 6px 0;">{{ name }}</td>
12-
</tr>
13-
14-
<tr>
15-
<td style="padding: 6px 0; font-weight: bold; width: 40%;">Email:</td>
16-
<td style="padding: 6px 0;">{{ email }}</td>
17-
</tr>
3+
{% block content %}
4+
<div style="margin-bottom: 20px;">
5+
<!-- TODO: Add Logo link here -->
6+
<img src="../assets/logos.png" alt="logos" style="width: 100%; max-width: 600px; height: auto; display: block;">
7+
</div>
188

19-
<tr>
20-
<td style="padding: 6px 0; font-weight: bold;">National Society:</td>
21-
<td style="padding: 6px 0;">{{ national_society }}</td>
22-
</tr>
23-
</table>
9+
<p style="font-size: 14px; margin-bottom: 15px; font-weight: bold; font-family: Arial, sans-serif; color: #000000;">
10+
You got a new feedback!
11+
</p>
2412

25-
<div style="margin: 10px 0; border-top: 1px solid #dddddd;"></div>
13+
<div style="font-size: 14px; margin-bottom: 15px; font-family: Arial, sans-serif; color: #000000;">
14+
User Information:
15+
</div>
2616

27-
<p style="font-weight: bold; margin-bottom: 8px;">Description:</p>
17+
<ul style="padding-left: 20px; margin: 0; font-family: Arial, sans-serif; font-size: 14px; color: #000000; line-height: 1.6;">
18+
<li style="margin-bottom: 8px;">
19+
<strong style="color: #000000;">Name:</strong> {{ name }}
20+
</li>
21+
22+
<li style="margin-bottom: 8px;">
23+
<strong style="color: #000000;">Email:</strong> {{ email }}
24+
</li>
25+
26+
<li style="margin-bottom: 8px;">
27+
<strong style="color: #000000;">National Society:</strong> {{ national_society }}
28+
</li>
2829

29-
<div style="
30-
background-color: #f9f9f9;
31-
padding: 10px;
32-
border: 1px solid #eeeeee;
33-
font-size: 14px;
34-
line-height: 1.5;
35-
white-space: pre-line;
36-
">
37-
{{ content }}
38-
</div>
30+
<li style="margin-bottom: 8px;">
31+
<strong style="color: #000000;">Description:</strong> {{ content }}
32+
</li>
33+
</ul>
3934
{% endblock %}

templates/email/request_demo.html

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,44 @@
22

33
{% block content %}
44

5-
<p style="font-size: 14px; margin-bottom: 15px;">
6-
You have received a new demo request from the RC Select platform.
7-
</p>
8-
9-
<div style="margin: 10px 0; border-top: 1px solid #dddddd;"></div>
10-
11-
<table width="100%" cellpadding="0" cellspacing="0" style="font-size: 14px;">
12-
13-
<tr>
14-
<td style="padding: 6px 0; font-weight: bold; width: 40%;">Name:</td>
15-
<td style="padding: 6px 0;">{{ name }}</td>
16-
</tr>
17-
18-
<tr>
19-
<td style="padding: 6px 0; font-weight: bold; width: 40%;">Email:</td>
20-
<td style="padding: 6px 0;">{{ email }}</td>
21-
</tr>
22-
23-
<tr>
24-
<td style="padding: 6px 0; font-weight: bold;">National Society:</td>
25-
<td style="padding: 6px 0;">{{ national_society }}</td>
26-
</tr>
27-
<tr>
28-
<td style="padding: 6px 0; font-weight: bold;">Requested Tool:</td>
29-
<td style="padding: 6px 0;">{{ tool }}</td>
30-
</tr>
31-
</table>
5+
<div style="margin-bottom: 20px;">
6+
<!-- TODO: Add Logo link here -->
7+
<img src="../assets/logos.png" alt="logos" style="width: 100%; max-width: 600px; height: auto; display: block;">
8+
</div>
329

10+
<p style="font-size: 14px; margin-bottom: 15px; font-weight: bold; font-family: Arial, sans-serif; color: #000000;">
11+
You got a new Request for Demo!
12+
</p>
3313

34-
<div style="margin: 10px 0; border-top: 1px solid #dddddd;"></div>
14+
<!-- TODO: Add tool owner name here -->
15+
<div style="font-size: 14px; margin-bottom: 15px; font-family: Arial, sans-serif; color: #000000;">
16+
Hi {{name}},
17+
</div>
3518

36-
<p style="font-weight: bold; margin-bottom: 8px;">Description:</p>
19+
<!-- TODO: Add tool name here -->
20+
<div style="font-size: 14px; margin-bottom: 15px; font-family: Arial, sans-serif; color: #000000;">
21+
You've received a new demo request from a user through {{name}}:
22+
</div>
3723

38-
<div style="
39-
background-color: #f9f9f9;
40-
padding: 10px;
41-
border: 1px solid #eeeeee;
42-
font-size: 14px;
43-
line-height: 1.5;
44-
white-space: pre-line;
45-
">
46-
{{ content }}
24+
<div style="font-size: 14px; margin-bottom: 15px; font-family: Arial, sans-serif; color: #000000;">
25+
User Information:
4726
</div>
27+
28+
<ul style="padding-left: 20px; margin: 0; font-family: Arial, sans-serif; font-size: 14px; color: #000000; line-height: 1.6;">
29+
<li style="margin-bottom: 8px;">
30+
<strong style="color: #000000;">Name:</strong> {{ name }}
31+
</li>
32+
33+
<li style="margin-bottom: 8px;">
34+
<strong style="color: #000000;">Email:</strong> {{ email }}
35+
</li>
36+
37+
<li style="margin-bottom: 8px;">
38+
<strong style="color: #000000;">National Society:</strong> {{ national_society }}
39+
</li>
40+
41+
<li style="margin-bottom: 8px;">
42+
<strong style="color: #000000;">Description:</strong> {{ content }}
43+
</li>
44+
</ul>
4845
{% endblock %}

0 commit comments

Comments
 (0)