Add date filter for platform admin page.

This commit is contained in:
Rebecca Law
2017-01-03 10:45:06 +00:00
parent 5572d0f25f
commit 2e69d3c680
3 changed files with 24 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/checkbox.html" import checkbox %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/big-number.html" import big_number, big_number_with_status %}
{% from "components/message-count-label.html" import message_count_label %}
@@ -89,14 +90,16 @@
Platform admin
</h1>
<p class="bottom-gutter-2">
Showing stats for today&emsp;
{% if include_from_test_key %}
Including test keys (<a href="{{ url_for('.platform_admin', include_from_test_key=False) }}">change</a>)
{% else %}
Excluding test keys (<a href="{{ url_for('.platform_admin') }}">change</a>)
{% endif %}
</p>
<details>
<summary>Apply filters</summary>
<form autocomplete="off" 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>
<input type="submit" class="button">
</form>
</details>
<div class="grid-row bottom-gutter">
<div class="column-half">