HH/templates/emails/observation_resolved.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

54 lines
2.5 KiB
HTML

{% extends 'emails/base_email_template.html' %}
{% load i18n %}
{% block title %}{% trans "Observation Resolved - Al Hammadi Hospital" %}{% endblock %}
{% block preheader %}{% trans "An observation assigned to you has been resolved." %}{% endblock %}
{% block content %}
<p style="margin: 0 0 15px;">
{% trans "Dear" %} <strong>{{ recipient_name|default:'Colleague' }}</strong>,
</p>
<p style="margin: 0 0 20px;">
{% blocktrans with status=status_display|default:"resolved" %}An observation assigned to you has been {{ status }}. Please review the resolution details below.{% endblocktrans %}
</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 "Status:" %}</strong> {{ observation.get_status_display }}</p>
{% if observation.assigned_department %}
<p style="margin: 0 0 5px;"><strong>{% trans "Department:" %}</strong> {{ observation.assigned_department.name }}</p>
{% endif %}
{% if observation.resolved_at %}
<p style="margin: 0 0 5px;"><strong>{% trans "Resolved At:" %}</strong> {{ observation.resolved_at|date:"F d, Y H:i" }}</p>
{% endif %}
{% if observation.resolution_notes %}
<p style="margin: 15px 0 5px;"><strong>{% trans "Resolution Notes:" %}</strong></p>
<p style="margin: 0 0 20px;">{{ observation.resolution_notes }}</p>
{% endif %}
{% 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;">
تم {{ status_display_ar|default:"حل" }} الملاحظة - {{ observation.tracking_code }}
</p>
<p style="margin: 0; font-size: 12px; color: #999999; direction: rtl; text-align: right; line-height: 1.8;">
تم تحديث حالة الملاحظة. يرجى مراجعة تفاصيل الحل.
</p>
{% endblock %}