Add "clear all" option for applied filters

This commit is contained in:
jeremystretch 2021-08-13 13:50:11 -04:00
parent 9f59f99663
commit 90a820e0cf
4 changed files with 9 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -34,3 +34,7 @@ a[type='button'] {
.form-control {
font-size: inherit;
}
.badge {
font-size: $font-size-xs;
}

View File

@ -5,5 +5,10 @@
<i class="mdi mdi-close"></i> {{ filter.link_text }}
</a>
{% endfor %}
{% if applied_filters|length > 1 %}
<a href="?" class="badge rounded-pill bg-danger text-decoration-none me-1">
<i class="mdi mdi-tag-off"></i> Clear all
</a>
{% endif %}
</div>
{% endif %}