Skip to content

Commit 0c19fa7

Browse files
committed
Admin template changed to be more personalized
1 parent fac22de commit 0c19fa7

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

appointment/templates/email_sender/admin_new_appointment_email.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,29 @@
5151
<body>
5252
<div class="email-container">
5353
<h1>{% translate 'New Appointment Request' %}</h1>
54-
<p>{% translate 'Dear Admin,' %}</p>
55-
<p>{% translate 'You have received a new appointment request. Here are the details:' %}</p>
54+
<p>{% translate 'Dear' %} {{ recipient_name }},</p>
55+
{% if is_staff_member %}
56+
<p>{% translate 'You have received a new appointment request. Here are the details:' %}</p>
57+
{% else %}
58+
<p>{% translate 'A new appointment request has been received for' %} {{ staff_member_name }}. {% translate 'Here are the details:' %}</p>
59+
{% endif %}
5660

5761
<div class="appointment-details">
5862
<p><strong>{% translate 'Client Name' %}:</strong> {{ client_name }}</p>
5963
<p><strong>{% translate 'Service Requested' %}:</strong> {{ appointment.get_service_name }}</p>
6064
<p><strong>{% translate 'Appointment Date' %}:</strong> {{ appointment.appointment_request.date }}</p>
6165
<p><strong>{% translate 'Time' %}:</strong> {{ appointment.appointment_request.start_time }}
6266
- {{ appointment.appointment_request.end_time }}</p>
63-
<p><strong>{% translate 'Contact Details' %}:</strong> {{ appointment.phone }} | {{ appointment.client.email }}</p>
67+
<p><strong>{% translate 'Contact Details' %}:</strong> {{ appointment.phone }} | {{ appointment.client.email }}
68+
</p>
6469
<p><strong>{% translate 'Additional Info' %}:</strong> {{ appointment.additional_info|default:"N/A" }}</p>
6570
</div>
6671

67-
<p>{% translate 'Please review the appointment request and take the necessary action.' %}</p>
72+
{% if is_staff_member %}
73+
<p>{% translate 'Please review the appointment request and take the necessary action.' %}</p>
74+
{% else %}
75+
<p>{% translate 'Please ensure that' %} {{ staff_member_name }} {% translate 'reviews this appointment request and takes the necessary action.' %}</p>
76+
{% endif %}
6877

6978
<div class="footer">
7079
<p>{% translate 'This is an automated message. Please do not reply directly to this email.' %}</p>

appointment/utils/ics_utils.py

Whitespace-only changes.

0 commit comments

Comments
 (0)