Skip to content

Commit b747fec

Browse files
authored
Add a Clear current search query, filters and sorts button on django-filter tables (#4474)
Make it look and work the same as on submission all table.
1 parent 39a9b4c commit b747fec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hypha/apply/funds/templates/funds/includes/table_filter_and_search.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ <h2 class="mb-2 text-xl">{{ heading }}</h2>
5555
{% get_filtered_query request filter.form as filtered_query %}
5656
{% if filtered_query %}
5757
<div class="flex flex-wrap gap-1 mt-3">
58-
<span class="inline-flex items-center py-1 px-2 text-xs font-medium text-blue-800 bg-blue-100 rounded select-none me-2">Filter:</span>
58+
<a
59+
href="./"
60+
class="inline-flex items-center py-1 px-2 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm select-none me-2"
61+
>
62+
{% heroicon_mini "x-mark" aria_hidden="true" fill="currentColor" %}
63+
{% trans "Clear current search query, filters and sorts" %}
64+
</a>
5965
{% for query in filtered_query %}
6066
{% for key, data in query.items %}
6167
<span class="inline-flex items-center py-1 px-2 text-xs font-medium text-blue-800 bg-blue-100 rounded select-none me-2">

0 commit comments

Comments
 (0)