155 lines
7.2 KiB
HTML
155 lines
7.2 KiB
HTML
{% extends 'emails/base_email_template.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "New Observation Notification - Al Hammadi Hospital" %}{% endblock %}
|
|
|
|
{% block preheader %}{% trans "A new observation has been submitted and requires review." %}{% endblock %}
|
|
|
|
{% block hero_title %}{% trans "New Observation Submitted" %}{% endblock %}
|
|
|
|
{% block hero_subtitle %}{% trans "A new observation requires your review and triage" %}{% 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>{{ admin_name|default:'Admin' }}</strong>,
|
|
</p>
|
|
<p style="margin: 0; font-size: 16px; color: #64748b; line-height: 1.6;">
|
|
{% trans "A new observation has been submitted and requires your review. Please assess the details below and take appropriate action." %}
|
|
</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 %}
|
|
<tr>
|
|
<td style="padding: 8px 0;">
|
|
<p style="margin: 0; font-size: 14px; color: #64748b;">
|
|
<strong style="color: #005696;">{% trans "Reporter" %}:</strong> {{ observation.reporter_display }}
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px 0;">
|
|
<p style="margin: 0; font-size: 14px; color: #64748b;">
|
|
<strong style="color: #005696;">{% trans "Submitted" %}:</strong>
|
|
{{ observation.created_at|date:"F d, Y H:i" }}
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</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; font-size: 14px; color: #005696; line-height: 1.6;">
|
|
{% trans "Please review this observation and assign it to the appropriate team member for further action." %}
|
|
</p>
|
|
</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;">
|
|
تم إرسال ملاحظة جديدة وتتطلب مراجعتكم. يرجى الاطلاع على التفاصيل أدناه واتخاذ الإجراء المناسب.<br>
|
|
{% if observation.category %}التصنيف: {{ observation.category.name_ar }}{% endif %}
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{% endblock %}
|
|
|
|
{% block cta_url %}{{ observation_url }}{% endblock %}
|
|
{% block cta_text %}{% trans "View Observation" %}{% endblock %}
|
|
|
|
{% block info_title %}{% trans "Notification Details" %}{% endblock %}
|
|
{% block info_content %}
|
|
<strong>{% trans "Type:" %}</strong> New Observation<br>
|
|
<strong>{% trans "Time:" %}</strong> {{ current_time }}<br>
|
|
{% trans "This is an automated notification from the PX 360 system." %}
|
|
{% endblock %}
|
|
|
|
{% block footer_address %}
|
|
PX360 Observation Management System<br>
|
|
Al Hammadi Hospital
|
|
{% endblock %}
|