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

165 lines
7.5 KiB
HTML

{% extends 'emails/base_email_template.html' %}
{% load i18n %}
{% block title %}{% trans "Observation Assigned - Al Hammadi Hospital" %}{% endblock %}
{% block preheader %}{% trans "An observation has been assigned to you for action." %}{% endblock %}
{% block hero_title %}{% trans "Observation Assigned to You" %}{% endblock %}
{% block hero_subtitle %}{% trans "An observation requires your attention and action" %}{% endblock %}
{% block content %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="padding-bottom: 20px;">
<p style="margin: 0 0 15px 0; font-size: 16px; color: #1e293b; line-height: 1.6;">
{% trans "Dear" %} <strong>{{ recipient_name|default:'Colleague' }}</strong>,
</p>
<p style="margin: 0; font-size: 16px; color: #64748b; line-height: 1.6;">
{% trans "An observation has been assigned to you for review and action. Please find the details below." %}
</p>
</td>
</tr>
</table>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: 25px 0;">
<tr>
<td style="padding: 20px; background-color: #f8fafc; border-left: 4px solid #005696; border-radius: 8px;">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #64748b;">
<strong style="color: #005696;">{% trans "Tracking Code" %}:</strong> {{ observation.tracking_code }}
</p>
</td>
</tr>
{% if observation.title %}
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #1e293b;">
<strong style="color: #005696;">{% trans "Title" %}:</strong> {{ observation.title }}
</p>
</td>
</tr>
{% endif %}
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #64748b;">
<strong style="color: #005696;">{% trans "Category" %}:</strong>
{% if observation.category %}{{ observation.category.name_en }}{% else %}N/A{% endif %}
</p>
</td>
</tr>
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #64748b;">
<strong style="color: #005696;">{% trans "Severity" %}:</strong>
<span style="color: #005696; font-weight: 600;">
{{ observation.get_severity_display }}
</span>
</p>
</td>
</tr>
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #64748b;">
<strong style="color: #005696;">{% trans "Location" %}:</strong>
{{ observation.location_text|default:"N/A" }}
</p>
</td>
</tr>
{% if observation.hospital %}
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #64748b;">
<strong style="color: #005696;">{% trans "Hospital" %}:</strong> {{ observation.hospital.name }}
</p>
</td>
</tr>
{% endif %}
{% if observation.assigned_department %}
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #64748b;">
<strong style="color: #005696;">{% trans "Department" %}:</strong> {{ observation.assigned_department.name }}
</p>
</td>
</tr>
{% endif %}
{% if observation.due_at %}
<tr>
<td style="padding: 8px 0;">
<p style="margin: 0; font-size: 14px; color: #64748b;">
<strong style="color: #005696;">{% trans "Due Date" %}:</strong>
{{ observation.due_at|date:"F d, Y H:i" }}
</p>
</td>
</tr>
{% endif %}
</table>
</td>
</tr>
</table>
{% if observation.description %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: 25px 0;">
<tr>
<td style="padding: 20px; background-color: #f8fafc; border-radius: 8px;">
<p style="margin: 0 0 10px 0; font-size: 14px; font-weight: 600; color: #005696;">
{% trans "Description" %}
</p>
<p style="margin: 0; font-size: 14px; color: #1e293b; line-height: 1.6; white-space: pre-wrap;">
{{ observation.description|truncatechars:1000 }}
</p>
</td>
</tr>
</table>
{% endif %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin: 25px 0;">
<tr>
<td style="padding: 15px 20px; background-color: #eef6fb; border-radius: 8px;">
<p style="margin: 0 0 10px 0; font-size: 14px; font-weight: 600; color: #005696;">
{% trans "Action Required:" %}
</p>
<ul style="margin: 0; padding-left: 20px; font-size: 14px; color: #1e293b; line-height: 1.8;">
<li>{% trans "Review the observation details carefully" %}</li>
<li>{% trans "Investigate and assess the situation" %}</li>
<li>{% trans "Update the observation status and add notes as needed" %}</li>
</ul>
</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;">
تم تعيين ملاحظة لكم للمراجعة واتخاذ الإجراء اللازم. يرجى الاطلاع على التفاصيل أدناه.
</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 %}
{% if observation.due_at %}
{% trans "This observation has an SLA deadline. Please ensure timely action to avoid breach." %}
{% else %}
{% trans "Please update the observation status in the system once you have reviewed it." %}
{% endif %}
{% endblock %}
{% block footer_address %}
PX360 Observation Management System<br>
Al Hammadi Hospital
{% endblock %}