- View my cases.
-
+ View my cases.
{% include "generic/partials/page_size_form.html" %}
+ {% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
{% endblock %}
diff --git a/generic/templates/generic/partials/filter_bar.html b/generic/templates/generic/partials/filter_bar.html
new file mode 100644
index 00000000..ae66af45
--- /dev/null
+++ b/generic/templates/generic/partials/filter_bar.html
@@ -0,0 +1,165 @@
+
+
+
+
+ {# show active filters count if available via GET params #}
+ {% comment %} Compute active filters count (excluding 'page') using supported template tags {% endcomment %}
+ {% with request.GET|length as param_count %}
+ {% if param_count > 0 %}
+ {% if request.GET.page %}
+ {% with param_count|add:"-1" as active_count %}
+ {# active_count may be a string; only show badge when not zero #}
+ {% if active_count != "0" %}
+ {{ active_count }}
+ {% endif %}
+ {% endwith %}
+ {% else %}
+ {{ param_count }}
+ {% endif %}
+ {% endif %}
+ {% endwith %}
+
+
+
+
+
+
+
+
+
+
Filters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/question_table_view.html b/templates/question_table_view.html
index b93c85cd..e6f9dd36 100644
--- a/templates/question_table_view.html
+++ b/templates/question_table_view.html
@@ -37,172 +37,9 @@
+{% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
-
-
-
- {# show active filters count if available via GET params #}
- {% comment %} Compute active filters count (excluding 'page') using supported template tags {% endcomment %}
- {% with request.GET|length as param_count %}
- {% if param_count > 0 %}
- {% if request.GET.page %}
- {% with param_count|add:"-1" as active_count %}
- {# active_count may be a string; only show badge when not zero #}
- {% if active_count != "0" %}
- {{ active_count }}
- {% endif %}
- {% endwith %}
- {% else %}
- {{ param_count }}
- {% endif %}
- {% endif %}
- {% endwith %}
-