|
51 | 51 | <body>
|
52 | 52 | <div class="email-container">
|
53 | 53 | <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 %} |
56 | 60 |
|
57 | 61 | <div class="appointment-details">
|
58 | 62 | <p><strong>{% translate 'Client Name' %}:</strong> {{ client_name }}</p>
|
59 | 63 | <p><strong>{% translate 'Service Requested' %}:</strong> {{ appointment.get_service_name }}</p>
|
60 | 64 | <p><strong>{% translate 'Appointment Date' %}:</strong> {{ appointment.appointment_request.date }}</p>
|
61 | 65 | <p><strong>{% translate 'Time' %}:</strong> {{ appointment.appointment_request.start_time }}
|
62 | 66 | - {{ 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> |
64 | 69 | <p><strong>{% translate 'Additional Info' %}:</strong> {{ appointment.additional_info|default:"N/A" }}</p>
|
65 | 70 | </div>
|
66 | 71 |
|
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 %} |
68 | 77 |
|
69 | 78 | <div class="footer">
|
70 | 79 | <p>{% translate 'This is an automated message. Please do not reply directly to this email.' %}</p>
|
|
0 commit comments