{% load static %}

Automation Rules

{% csrf_token %}
{% if automation_rules %}
{% for rule in automation_rules %} {% endfor %}
Name Trigger Actions Active Delete
{{ rule.name }} When status becomes {% if rule.trigger_status %} {{ rule.trigger_status.name }} {% else %} any {% endif %} {% for action in rule.actions %} {% if action.type == 'assign_user' %} Assign{% elif action.type == 'change_status' %} Change status{% elif action.type == 'notify_in_app' %} Notify{% elif action.type == 'send_email' %} Email{% else %}{{ action.type }}{% endif %} {% empty %} none {% endfor %}
{% csrf_token %}
{% csrf_token %}
{% else %}

No automation rules configured yet. Add one above.

{% endif %}