HH/templates/emails/observation_assigned.html
ismail c5f76b3855
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run
updates
2026-05-11 14:45:30 +03:00

62 lines
3.0 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 content %}
<p style="margin: 0 0 15px;">
{% trans "Dear" %} <strong>{{ recipient_name|default:'Colleague' }}</strong>,
</p>
<p style="margin: 0 0 20px;">
{% trans "An observation has been assigned to you for review and action. Please find the details below." %}
</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Tracking Code:" %}</strong> {{ observation.tracking_code }}</p>
{% if observation.title %}
<p style="margin: 0 0 5px;"><strong>{% trans "Title:" %}</strong> {{ observation.title }}</p>
{% endif %}
<p style="margin: 0 0 5px;"><strong>{% trans "Category:" %}</strong> {% if observation.category %}{{ observation.category.name_en }}{% else %}N/A{% endif %}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Severity:" %}</strong> {{ observation.get_severity_display }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Location:" %}</strong> {{ observation.location_text|default:"N/A" }}</p>
{% if observation.hospital %}
<p style="margin: 0 0 5px;"><strong>{% trans "Hospital:" %}</strong> {{ observation.hospital.name }}</p>
{% endif %}
{% if observation.assigned_department %}
<p style="margin: 0 0 5px;"><strong>{% trans "Department:" %}</strong> {{ observation.assigned_department.name }}</p>
{% endif %}
{% if observation.due_at %}
<p style="margin: 0 0 5px;"><strong>{% trans "Due Date:" %}</strong> {{ observation.due_at|date:"F d, Y H:i" }}</p>
{% endif %}
{% if observation.description %}
<p style="margin: 15px 0 5px;"><strong>{% trans "Description:" %}</strong></p>
<p style="margin: 0 0 20px;">{{ observation.description|truncatechars:1000 }}</p>
{% endif %}
<p style="margin: 0 0 5px;">- {% trans "Review the observation details carefully" %}</p>
<p style="margin: 0 0 5px;">- {% trans "Investigate and assess the situation" %}</p>
<p style="margin: 0 0 25px;">- {% trans "Update the observation status and add notes as needed" %}</p>
{% if observation_url %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="center">
<a href="{{ observation_url }}"
style="display: inline-block; padding: 12px 32px; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none; border-radius: 6px; background-color: #005696;">
{% trans "View Observation" %}
</a>
</td>
</tr>
</table>
{% endif %}
<p style="margin: 25px 0 5px; font-size: 13px; color: #666666; direction: rtl; text-align: right;">
تم تعيين ملاحظة لك - {{ observation.tracking_code }}
</p>
<p style="margin: 0; font-size: 12px; color: #999999; direction: rtl; text-align: right; line-height: 1.8;">
تم تعيين ملاحظة لكم للمراجعة واتخاذ الإجراء اللازم. يرجى الاطلاع على التفاصيل أدناه.
</p>
{% endblock %}