72 lines
4.0 KiB
HTML
72 lines
4.0 KiB
HTML
{% load i18n %}
|
|
<!DOCTYPE html>
|
|
<html lang="{{ LANGUAGE_CODE|default:'en' }}" dir="{% if LANGUAGE_CODE == 'ar' %}rtl{% else %}ltr{% endif %}">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% trans "Consent Signed" %} - {{ clinic_name }}</title>
|
|
</head>
|
|
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; background-color: #f4f4f4;">
|
|
<div style="max-width: 600px; margin: 20px auto; background-color: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
|
<!-- Header -->
|
|
<div style="background-color: #27ae60; color: white; padding: 30px 20px; text-align: center;">
|
|
<h1 style="margin: 0; font-size: 24px;">✓ {% trans "Consent Form Signed" %}</h1>
|
|
<p style="margin: 10px 0 0 0; font-size: 14px; opacity: 0.9;">{{ clinic_name }}</p>
|
|
</div>
|
|
|
|
<!-- Content -->
|
|
<div style="padding: 30px 20px;">
|
|
<h2 style="color: #27ae60; margin-top: 0;">{% trans "Thank You!" %}</h2>
|
|
|
|
<p style="font-size: 16px;">{% blocktrans with name=signed_by_name %}Dear {{ name }},{% endblocktrans %}</p>
|
|
|
|
<p style="font-size: 16px; line-height: 1.8;">
|
|
{% blocktrans with patient=patient.full_name_en %}Thank you for signing the consent form for <strong>{{ patient }}</strong>.{% endblocktrans %}
|
|
</p>
|
|
|
|
<!-- Consent Details Box -->
|
|
<div style="background-color: #d4edda; border-left: 4px solid #28a745; padding: 20px; margin: 25px 0; border-radius: 4px;">
|
|
<p style="margin: 0 0 15px 0; font-weight: bold; color: #155724; font-size: 16px;">{% trans "Consent Details:" %}</p>
|
|
<table style="width: 100%; border-collapse: collapse;">
|
|
<tr>
|
|
<td style="padding: 8px 0; color: #155724; font-weight: bold;">{% trans "Patient" %}:</td>
|
|
<td style="padding: 8px 0; color: #155724;">{{ patient.full_name_en }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px 0; color: #155724; font-weight: bold;">{% trans "MRN" %}:</td>
|
|
<td style="padding: 8px 0; color: #155724;">{{ patient.mrn }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px 0; color: #155724; font-weight: bold;">{% trans "Signed by" %}:</td>
|
|
<td style="padding: 8px 0; color: #155724;">{{ signed_by_name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px 0; color: #155724; font-weight: bold;">{% trans "Signed on" %}:</td>
|
|
<td style="padding: 8px 0; color: #155724;">{{ signed_at|date:"F d, Y" }} {% trans "at" %} {{ signed_at|date:"g:i A" }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 8px 0; color: #155724; font-weight: bold;">{% trans "Consent Type" %}:</td>
|
|
<td style="padding: 8px 0; color: #155724;">{{ consent.get_consent_type_display }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<p style="font-size: 16px; line-height: 1.8;">
|
|
{% trans "A copy of this consent has been securely recorded in our system." %}
|
|
</p>
|
|
|
|
<p style="font-size: 16px; line-height: 1.8;">
|
|
{% blocktrans with clinic=clinic_name %}If you have any questions, please contact {{ clinic }}.{% endblocktrans %}
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<div style="background-color: #f8f9fa; padding: 20px; text-align: center; border-top: 1px solid #dee2e6;">
|
|
<p style="margin: 0; font-size: 12px; color: #6c757d;">
|
|
{% blocktrans with clinic=clinic_name %}This is an automated confirmation from {{ clinic }}.{% endblocktrans %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|