{% extends 'base.html' %} {% load static %} {% block title %}Notification Rules{% endblock %} {% block content %}

Notification Rules

Notification Rules

{% for rule in rules %} {% empty %} {% endfor %}
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.
{% if rules.has_other_pages %}
Showing {{ rules.start_index }} to {{ rules.end_index }} of {{ rules.paginator.count }} rules
{% if rules.has_previous %} Previous {% endif %} {% if rules.has_next %} Next {% endif %}
{% endif %}
{% endblock %}