{% extends "email/base.html" %} {% block title %}Compliance Alert — {{ rule_name }}{% endblock %} {% block content %}
{% if severity == 'critical' %}🔴 Critical{% elif severity == 'high' %}🟠 High Severity{% elif severity == 'medium' %}🟡 Medium Severity{% else %}🔵 Low Severity{% endif %} Compliance Alert
A compliance breach has been detected in {{ organisation_name }} that requires immediate attention.
Rule
{{ rule_name }}
Severity
{% if severity == 'critical' %} Critical {% elif severity == 'high' %} High {% elif severity == 'medium' %} Medium {% else %} Low {% endif %}
{% if detected_at %}Detected At
{{ detected_at }}
{% endif %} {% if affected_entity %}Affected Record
{{ affected_entity }}
{% endif %}Description
{{ description }}
{% if action_required %}Action Required
{{ action_required }}
{% endif %} {% if action_url %} {% endif %}This alert was generated automatically by the Maree-CareFlow compliance engine. {% if rule_reference %} Reference: {{ rule_reference }}. {% endif %} Unresolved critical breaches will be escalated to your organisation administrator.
{% endblock %}