HH/templates/emails/observation_sla_reminder.html
2026-04-08 17:13:35 +03:00

182 lines
8.7 KiB
HTML

{% extends 'emails/base_email_template.html' %}
{% load i18n %}
{% block title %}{% trans "SLA Reminder - Observation" %}{% endblock %}
{% block preheader %}{% trans "An observation is approaching its SLA deadline. Please take action." %}{% endblock %}
{% block hero_title %}{% trans "SLA Deadline Reminder" %}{% endblock %}
{% block hero_subtitle %}
{% if is_unassigned %}
{% trans "An unassigned observation requires your attention." %}
{% else %}
{% trans "An observation assigned to you is approaching its SLA deadline." %}
{% endif %}
{% endblock %}
{% block content %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="padding-bottom: 20px;">
<p style="margin: 0; font-size: 16px; color: #1e293b; line-height: 1.6;">
{% trans "Dear" %} <strong>{{ recipient_name|default:'Colleague' }}</strong>,
</p>
{% if is_unassigned %}
<p style="margin: 15px 0 0 0; font-size: 16px; color: #64748b; line-height: 1.6;">
{% trans "This is a reminder about an unassigned observation that requires attention. The observation has not yet been assigned to any team member. Please assign it as soon as possible." %}
</p>
{% else %}
<p style="margin: 15px 0 0 0; font-size: 16px; color: #64748b; line-height: 1.6;">
{% trans "This is an automated reminder that an observation assigned to you is approaching its SLA deadline. Please review and take appropriate action." %}
</p>
{% endif %}
</td>
</tr>
</table>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: 20px 0; background-color: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0;">
<tr>
<td style="padding: 20px;">
<h3 style="margin: 0 0 15px 0; font-size: 18px; font-weight: 600; color: #005696; text-align: center;">
{% trans "Observation Details" %}
</h3>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="130" style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Tracking Code:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; color: #1e293b; font-weight: 600;">
{{ observation.tracking_code }}
</td>
</tr>
{% if observation.title %}
<tr>
<td style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Title:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; color: #1e293b; font-weight: 600;">
{{ observation.title }}
</td>
</tr>
{% endif %}
<tr>
<td style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Category:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; color: #1e293b; font-weight: 600;">
{% if observation.category %}{{ observation.category.name_en }}{% else %}N/A{% endif %}
</td>
</tr>
<tr>
<td style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Severity:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; font-weight: 600;">
<span style="color: #005696;">
{{ observation.get_severity_display }}
</span>
</td>
</tr>
<tr>
<td style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Status:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; color: #1e293b; font-weight: 600;">
{{ observation.get_status_display }}
</td>
</tr>
{% if observation.location_text %}
<tr>
<td style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Location:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; color: #1e293b; font-weight: 600;">
{{ observation.location_text }}
</td>
</tr>
{% endif %}
</table>
</td>
</tr>
</table>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: 20px 0; background-color: #eef6fb; border-radius: 8px; border: 1px solid #cbd5e1;">
<tr>
<td style="padding: 20px;">
<h3 style="margin: 0 0 15px 0; font-size: 16px; font-weight: 600; color: #005696; text-align: center;">
{% trans "SLA Information" %}
</h3>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="130" style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Due Date:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; color: #1e293b; font-weight: 600;">
{{ due_date|date:"F d, Y H:i" }}
</td>
</tr>
<tr>
<td style="padding: 8px 0; font-size: 14px; color: #64748b; font-weight: 500;">
{% trans "Time Remaining:" %}
</td>
<td style="padding: 8px 0; font-size: 14px; color: #005696; font-weight: 700;">
{{ hours_remaining }} {% trans "hours" %}
</td>
</tr>
</table>
</td>
</tr>
</table>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="padding: 15px; background-color: #eef6fb; border-left: 4px solid #005696; border-radius: 8px;">
<p style="margin: 0 0 10px 0; font-size: 14px; font-weight: 600; color: #005696;">
{% trans "Action Required:" %}
</p>
{% if is_unassigned %}
<ul style="margin: 0; padding-left: 20px; font-size: 14px; color: #1e293b; line-height: 1.8;">
<li>{% trans "Assign this observation to an appropriate team member" %}</li>
<li>{% trans "Ensure the assigned person is aware of the approaching deadline" %}</li>
<li>{% trans "Monitor progress to ensure timely resolution" %}</li>
</ul>
{% else %}
<p style="margin: 0; font-size: 14px; color: #1e293b; line-height: 1.6;">
{% trans "Please review this observation and take appropriate action before the SLA deadline to avoid breach." %}
</p>
{% endif %}
</td>
</tr>
</table>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-top: 25px;">
<tr>
<td style="padding: 10px 0; font-size: 11px; color: #94a3b8; border-top: 1px solid #e2e8f0; padding-top: 20px;">
<p style="margin: 0 0 5px 0; font-size: 13px; color: #64748b; font-weight: 600; direction: rtl; text-align: right;">
تذكير بموعد الاستحقاق - {{ observation.tracking_code }}
</p>
<p style="margin: 0; font-size: 12px; color: #94a3b8; direction: rtl; text-align: right; line-height: 1.8;">
{% if is_unassigned %}
هام: هذه ملاحظة غير معينة تحتاج إلى اهتمامكم. يرجى تعيينها في أقرب وقت ممكن.<br>
{% endif %}
تاريخ الاستحقاق: {{ due_date|date:"Y F d H:i" }} - الوقت المتبقي: {{ hours_remaining }} ساعة
</p>
</td>
</tr>
</table>
{% endblock %}
{% block cta_url %}{{ observation_url }}{% endblock %}
{% block cta_text %}{% trans "View Observation" %}{% endblock %}
{% block info_title %}{% trans "Important" %}{% endblock %}
{% block info_content %}
{% trans "If you have already addressed this observation, please update its status in the system." %}
{% endblock %}
{% block footer_address %}
PX360 Observation Management System<br>
Al Hammadi Hospital
{% endblock %}