mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-23 11:51:05 -05:00
When we converted textboxes on Notify to govuk-frontend design system
style with @tombye , we did not remove the imports.
This work is now done in this commit.
Some things that will still stay in our repo for now:
textbox macro in our components folder and associated css
textboxes which are really textarea fields (🤷 how do they work)
textboxes on the styleguide page
We should revisit this when we convert textarea fields
to govuk-frontend.
67 lines
2.1 KiB
HTML
67 lines
2.1 KiB
HTML
{% extends "views/platform-admin/_base_template.html" %}
|
|
{% from "components/big-number.html" import big_number_simple %}
|
|
{% from "components/message-count-label.html" import message_count_label %}
|
|
{% from "components/status-box.html" import status_box %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
{% from "components/details/macro.njk" import govukDetails %}
|
|
{% from "components/button/macro.njk" import govukButton %}
|
|
|
|
{% block per_page_title %}
|
|
Platform admin
|
|
{% endblock %}
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
<h1 class="heading-medium">
|
|
Summary
|
|
</h1>
|
|
|
|
{% set details_content %}
|
|
{% call form_wrapper(method="get") %}
|
|
{{ 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>
|
|
{{ govukButton({ "text": "Filter" }) }}
|
|
{% endcall %}
|
|
{% endset %}
|
|
|
|
{{ govukDetails({
|
|
"summaryText": "Apply filters",
|
|
"html": details_content,
|
|
"open": form.errors | convert_to_boolean
|
|
}) }}
|
|
|
|
<div class="govuk-grid-row bottom-gutter">
|
|
{% for noti_type in global_stats %}
|
|
<div class="govuk-grid-column-one-third">
|
|
{{ big_number_simple(
|
|
noti_type.black_box.number,
|
|
message_count_label(noti_type.black_box.number, noti_type.black_box.notification_type)
|
|
) }}
|
|
|
|
{% 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>
|
|
|
|
<div class="govuk-grid-row bottom-gutter">
|
|
{% for noti_type in global_stats %}
|
|
<div class="govuk-grid-column-one-third">
|
|
<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>
|
|
|
|
{% endblock %}
|