aboutsummaryrefslogtreecommitdiffstats
path: root/templates/template.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2023-05-07 22:16:38 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2023-05-07 22:16:38 +0100
commitcb07e37ed72182af33a992d7e0b44f7c7ee4af04 (patch)
tree6576f0cdf1b0a1256b3fcdb94873545e2068699f /templates/template.html.j2
parent1eea185d337eadd7a5309a707d8f0c5cd0d85d9c (diff)
downloadUKGenderPayGap-cb07e37ed72182af33a992d7e0b44f7c7ee4af04.tar.gz
UKGenderPayGap-cb07e37ed72182af33a992d7e0b44f7c7ee4af04.zip
Finished filtering client side
Diffstat (limited to 'templates/template.html.j2')
-rw-r--r--templates/template.html.j27
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/template.html.j2 b/templates/template.html.j2
index 72cf520..b50f721 100644
--- a/templates/template.html.j2
+++ b/templates/template.html.j2
@@ -36,13 +36,13 @@
</form>
{% if filters is defined %}
<h4>Filters</h4>
- <form id="filterform">
+ <form id="filterform" method="POST">
{% for filter_name, filter_content in filters.items() %}
<h5>{{ filter_name }}</h5>
{% if len(filter_content["options"]) > 5 %}
- <button class="collapsetoggle" id="collapsetoggle/{{ filter_name }}" onclick="collapseTogglePress('collapsable/{{ filter_name }}')">
+ <a class="collapsetoggle" id="collapsetoggle/{{ filter_name }}" onclick="collapseTogglePress('collapsable/{{ filter_name }}', 'collapsetoggle/{{ filter_name }}', {{ len(filter_content['options']) }})" href="javascript:void(0);">
{{ "Un-hide %d hidden filters" % len(filter_content["options"]) }}
- </button>
+ </a>
<div class="collapsable" id="collapsable/{{ filter_name }}">
{% endif %}
{% for option in filter_content["options"] %}
@@ -65,6 +65,7 @@
</div>
{% endif %}
{% endfor %}
+ <input type="submit" value="Apply" id="apply_btn">
</form>
{% endif %}
</aside>