mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 01:04:00 -04:00
Revert "Add GOVUK Frontend details component"
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
{% 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 %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Platform admin
|
||||
@@ -15,21 +14,15 @@
|
||||
<h1 class="heading-large">
|
||||
Summary
|
||||
</h1>
|
||||
|
||||
{% set details_content %}
|
||||
<details {% if form.errors %}open{% endif %}>
|
||||
<summary>Apply filters</summary>
|
||||
{% call form_wrapper(method="get") %}
|
||||
{{ textbox(form.start_date, hint="Enter start date in format YYYY-MM-DD") }}
|
||||
{{ textbox(form.end_date, hint="Enter end date in format YYYY-MM-DD") }}
|
||||
</br>
|
||||
<button type="submit" class="button">Filter</button>
|
||||
{% endcall %}
|
||||
{% endset %}
|
||||
|
||||
{{ govukDetails({
|
||||
"summaryText": "Apply filters",
|
||||
"html": details_content,
|
||||
"open": form.errors | convert_to_boolean
|
||||
}) }}
|
||||
</details>
|
||||
|
||||
<div class="grid-row bottom-gutter">
|
||||
{% for noti_type in global_stats %}
|
||||
|
||||
Reference in New Issue
Block a user