{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{{ title }} - {% translate "Escalation Rules" %} - PX360{% endblock %} {% block content %}
{% csrf_token %} {% if request.user.is_px_admin %}
{% if form.hospital.errors %}
{{ form.hospital.errors.0 }}
{% endif %}
{% endif %}
{% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %}
{% if form.escalation_level.errors %}
{{ form.escalation_level.errors.0 }}
{% endif %}
{% if form.trigger_hours.errors %}
{{ form.trigger_hours.errors.0 }}
{% else %}
{% translate "Hours after complaint creation to trigger escalation" %}
{% endif %}
{% if form.escalate_to_role.errors %}
{{ form.escalate_to_role.errors.0 }}
{% endif %}
{% if form.escalate_to_user.errors %}
{{ form.escalate_to_user.errors.0 }}
{% else %}
{% translate "Overrides role if specified" %}
{% endif %}
{% if form.severity.errors %}
{{ form.severity.errors.0 }}
{% else %}
{% translate "Leave empty to apply to all severities" %}
{% endif %}
{% if form.priority.errors %}
{{ form.priority.errors.0 }}
{% else %}
{% translate "Leave empty to apply to all priorities" %}
{% endif %}
{% translate "Only active rules will be triggered" %}
{% if form.description.errors %}
{{ form.description.errors.0 }}
{% endif %}
{% translate "Help" %}
{% translate "Understanding Escalation Rules" %}

{% translate "Escalation rules automatically reassign complaints to higher-level staff when they exceed specified time thresholds." %}

  • {% translate "Level 1: Escalate to department head" %}
  • {% translate "Level 2: Escalate to hospital admin" %}
  • {% translate "Level 3: Escalate to PX admin" %}

{% translate "Escalation Flow" %}
  1. {% translate "Complaint created" %}
  2. {% translate "Trigger hours pass" %}
  3. {% translate "Rule checks severity/priority" %}
  4. {% translate "Complaint reassigned automatically" %}
  5. {% translate "Notification sent to new assignee" %}
{% endblock %}