HH/templates/emails/explanation_request.html
ismail 7369d08012
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m14s
feat: unified reference numbers + feedback modules QA audit
Reference numbers (unified scheme PREFIX-YYYYMM-HOSP-NNNN, e.g. CMP-202606-HHN-0001):
- new ReferenceSequence model + generate_reference() helper (apps/core)
- Complaint/Inquiry/Observation/Appreciation/Suggestion emit unified refs via save()
- prefix-based auto-routing in public track API (CMP/INQ/OBS trackable; APR/SGT internal-only)
- removed legacy CMP-/INQ- generators in ui_views, integrations, px_sources
- migrations: core.0003_referencesequence, appreciation.0006, feedback.0008, observations.0012
- unit tests (format, sanitization, monthly reset, 40-thread concurrency)

QA audit:
- isolated E2E hospital sandbox mirroring HH-N + 10 role users (create_e2e_isolated_env)
- feedback-modules-audit.spec.ts + audit helper (headed, run-to-completion)
- reports/feedback-modules-qa-report.md

Also bundles accumulated in-progress work across complaints, observations,
organizations, templates, and other modules.
2026-06-14 14:29:23 +03:00

45 lines
2.0 KiB
HTML

{% extends 'emails/base_email_template.html' %}
{% load i18n %}
{% block title %}{% trans "Department Request - Al Hammadi Hospital" %}{% endblock %}
{% block preheader %}{% trans "Your department has been assigned to respond to a patient complaint" %}{% endblock %}
{% block content %}
<p style="margin: 0 0 15px;">
{% trans "Dear" %} <strong>{{ staff_name }}</strong>,
</p>
<p style="margin: 0 0 20px;">
{% trans "Your department has been assigned to respond to the following patient complaint. Please review the details and submit your department's response using the button below." %}
</p>
{% if custom_message %}
<p style="margin: 0 0 20px;"><strong>{% trans "Note from PX Team:" %}</strong> {{ custom_message }}</p>
{% endif %}
<p style="margin: 0 0 5px;"><strong>{% trans "Reference:" %}</strong> #{{ complaint_id }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Title:" %}</strong> {{ complaint_title }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Patient:" %}</strong> {{ patient_name }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Department:" %}</strong> {{ department_name }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Deadline:" %}</strong> {{ due_date|date:"Y-m-d H:i" }}</p>
{% if description %}
<p style="margin: 0 0 20px;"><strong>{% trans "Description:" %}</strong> {{ description }}</p>
{% endif %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="center">
<a href="{{ explanation_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 "Submit Department Response" %}
</a>
</td>
</tr>
</table>
<p style="margin: 25px 0 0; font-size: 13px; color: #999999;">
{% trans "If you have any questions, please contact the PX team." %}<br>
{% trans "This is an automated email. Please do not reply." %}
</p>
{% endblock %}