Revert "Add GOVUK Frontend details component"

This commit is contained in:
Tom Byers
2019-12-16 16:20:03 +00:00
committed by GitHub
parent 60fe9d3400
commit de6281bc0e
10 changed files with 269 additions and 115 deletions

View File

@@ -6,7 +6,6 @@
{% from "components/message-count-label.html" import message_count_label %}
{% from "components/table.html" import mapping_table, field, stats_fields, row_group, row, right_aligned_field_heading, hidden_field_heading, text_field %}
{% from "components/form.html" import form_wrapper %}
{% from "components/details/macro.njk" import govukDetails %}
{% macro stats_fields(channel, data) -%}
@@ -102,21 +101,16 @@
{{ page_title|capitalize }}
</h1>
{% set details_content %}
{% 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") }}
{{ checkbox(form.include_from_test_key) }}
</br>
<button type="submit" class="button">Filter</button>
{% endcall %}
{% endset %}
{{ govukDetails({
"summaryText": "Apply filters",
"html": details_content
}) }}
<details>
<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") }}
{{ checkbox(form.include_from_test_key) }}
</br>
<button type="submit" class="button">Filter</button>
{% endcall %}
</details>
{% include "views/platform-admin/_global_stats.html" %}