{% extends 'base.html' %} {% load static %} {% block title %}Notification Rules{% endblock %} {% block content %}
| Rule | Type | Condition | Target Roles | Status | Actions |
|---|---|---|---|---|---|
|
{{ rule.name }}
Priority: {{ rule.priority }}
{% if rule.description %}
{{ rule.description|truncatechars:50 }}
{% endif %}
|
{{ rule.notification_type|title|replace:"_":" " }} |
{{ rule.condition_field }} {{ rule.get_operator_display|lower }} {{ rule.condition_value|truncatechars:20 }}
{{ rule.get_condition_type_display }}
|
{% for role in rule.target_roles %}
{{ role|title|replace:"_":" " }}
{% endfor %}
{% if rule.escalation_roles %}
Escalates to: {{ rule.escalation_roles|join:", " }}
{% endif %}
|
{% if rule.is_active %}Active{% else %}Inactive{% endif %} |
|
| No notification rules found. | |||||