Files
notifications-admin/app/templates/views/platform-admin/index.html
T

66 lines
2.0 KiB
HTML
Raw Normal View History

{% extends "views/platform-admin/_base_template.html" %}
2018-07-10 14:39:54 +01:00
{% from "components/big-number.html" import big_number_simple %}
{% from "components/status-box.html" import status_box %}
2018-09-19 12:39:36 +01:00
{% from "components/form.html" import form_wrapper %}
2023-08-30 11:07:38 -04:00
{% from "components/components/details/macro.njk" import usaDetails %}
{% from "components/components/button/macro.njk" import usaButton %}
2017-02-13 10:45:15 +00:00
{% block per_page_title %}
2021-12-30 16:13:49 +00:00
Summary
2016-05-24 15:52:44 +01:00
{% endblock %}
{% block platform_admin_content %}
2016-05-24 15:52:44 +01:00
2023-08-16 12:49:36 -04:00
<h1 class="font-body-2xl">
2017-07-31 11:33:39 +01:00
Summary
</h1>
2019-11-14 16:22:06 +00:00
{% set details_content %}
2018-09-19 12:39:36 +01:00
{% call form_wrapper(method="get") %}
2020-08-07 10:24:56 +01:00
{{ form.start_date(param_extensions={"hint": {"text":"Enter start date in format YYYY-MM-DD"}}) }}
{{ form.end_date(param_extensions={"hint": {"text":"Enter end date in format YYYY-MM-DD"}}) }}
</br>
2023-08-30 11:07:38 -04:00
{{ usaButton({ "text": "Filter", "classes": "margin-y-2" }) }}
2018-09-19 12:39:36 +01:00
{% endcall %}
2019-11-14 16:22:06 +00:00
{% endset %}
2023-08-30 11:07:38 -04:00
{{ usaDetails({
2019-12-13 09:41:34 +00:00
"summaryText": "Apply filters",
2019-11-14 16:22:06 +00:00
"html": details_content,
"open": form.errors | convert_to_boolean
}) }}
2023-08-23 16:18:25 -04:00
<div class="grid-row bottom-gutter">
2018-07-10 14:39:54 +01:00
{% for noti_type in global_stats %}
2023-08-23 16:18:25 -04:00
<div class="grid-col-6">
2018-07-10 14:39:54 +01:00
{{ big_number_simple(
noti_type.black_box.number,
noti_type.black_box.number|message_count_label(noti_type.black_box.notification_type)
2018-07-10 14:39:54 +01:00
) }}
{% for item in noti_type.other_data %}
{{ status_box(
number=item.number,
label=item.label,
failing=item.failing,
percentage=item.percentage,
url=item.url)
}}
{% endfor %}
</div>
{% endfor %}
</div>
2023-08-23 16:18:25 -04:00
<div class="grid-row bottom-gutter">
2018-07-10 14:39:54 +01:00
{% for noti_type in global_stats %}
2023-08-23 16:18:25 -04:00
<div class="grid-col-6">
2018-07-10 14:39:54 +01:00
<div class="bordered-text-box">
<span class="big-number-number">{{ "{:,}".format(noti_type.test_data.number) }}</span>
{{ noti_type.test_data.label }}
</div>
</div>
{% endfor %}
</div>
2016-05-25 16:51:09 +01:00
2016-05-24 15:52:44 +01:00
{% endblock %}