{% from "_forms.html" import quickform, parsefield %} {% extends "layout.html" %} {%- macro accordion(title, container_list) -%}
{% for container in container_list %}
{{ title }}: {{container_list|length}}

{% endfor %}
{%- endmacro -%} {% block content %}

Received incidents

Showing all events scheduled between {{ from_date }} and {{ to_date }} {% if matching %} that match {{ matching }} in their identifier {% endif %}
{% if events|length > 0 %}

{% for event in events %}
{{ event['id_string'] }}: {% if event['create'] and event['create']['incidents'] %} {{ event['create']['incidents']|length }} {% else %} 0 {% endif %} - {% if event['in_progress'] and event['in_progress']['incidents'] %} {{ event['in_progress']['incidents']|length }} {% else %} 0 {% endif %} - {% if event['finish'] and event['finish']['incidents'] %} {{ event['finish']['incidents']|length }} {% else %} 0 {% endif %} - {% if event['result'] and event['result']['incidents'] %} {{ event['result']['incidents']|length }} {% else %} 0 {% endif %}

{% for call in ['create', 'in_progress', 'finish', 'result'] %} {% endfor %}
Create
DT#1
In progress
DT#3
Finish
DT#4
Result
DT#5
{% if event[call] and event[call]['incidents'] %} {% for provider,incidents_list in event[call]['incidents_per_provider'].items() %} {{ provider }}
    {% for incident in incidents_list %}
  • {{ incident['provider_info']['pushed'] }}: {{ incident['arguments'] }}
  • {% endfor %}
{% endfor %} {% endif %}

{% endfor %}
{% else %} No incidents came in yet. {% endif %} {% endblock %}