Skip to content

Commit 7287355

Browse files
committed
Added new template to warn admin of new appt
1 parent eeff5e5 commit 7287355

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{% load i18n %}
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>{% translate 'Appointment Request Notification' %}</title>
8+
<style>
9+
body {
10+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
11+
background-color: #f5f5f5;
12+
color: #333;
13+
padding: 20px;
14+
margin: 0;
15+
}
16+
.email-container {
17+
background-color: #ffffff;
18+
padding: 25px;
19+
margin: 0 auto;
20+
max-width: 650px;
21+
border-radius: 5px;
22+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
23+
}
24+
h1 {
25+
color: #333;
26+
font-size: 24px;
27+
}
28+
p {
29+
font-size: 16px;
30+
line-height: 1.6;
31+
}
32+
.appointment-details {
33+
background-color: #f9f9f9;
34+
padding: 15px;
35+
margin-top: 20px;
36+
border-left: 5px solid #007bff;
37+
}
38+
.footer {
39+
margin-top: 30px;
40+
font-size: 14px;
41+
text-align: left;
42+
color: #999;
43+
}
44+
</style>
45+
</head>
46+
<body>
47+
<div class="email-container">
48+
<h1>{% translate 'New Appointment Request' %}</h1>
49+
<p>{% translate 'Dear Admin,' %}</p>
50+
<p>{% translate 'You have received a new appointment request. Here are the details:' %}</p>
51+
52+
<div class="appointment-details">
53+
<p><strong>{% translate 'Client Name' %}:</strong> {{ client_name }}</p>
54+
<p><strong>{% translate 'Service Requested' %}:</strong> {{ appointment.get_service_name }}</p>
55+
<p><strong>{% translate 'Appointment Date' %}:</strong> {{ appointment.appointment_request.date }}</p>
56+
<p><strong>{% translate 'Time' %}:</strong> {{ appointment.appointment_request.start_time }} - {{ appointment.appointment_request.end_time }}</p>
57+
<p><strong>{% translate 'Contact Details' %}:</strong> {{ appointment.phone }} | {{ client_email }}</p>
58+
<p><strong>{% translate 'Additional Info' %}:</strong> {{ appointment.additional_info|default:"N/A" }}</p>
59+
</div>
60+
61+
<p>{% translate 'Please review the appointment request and take the necessary action.' %}</p>
62+
63+
<div class="footer">
64+
<p>{% translate 'This is an automated message. Please do not reply directly to this email.' %}</p>
65+
</div>
66+
</div>
67+
</body>
68+
</html>

0 commit comments

Comments
 (0)