Select option for removing filters

This commit is contained in:
Simon Willison 2017-11-23 12:32:54 -08:00
commit ef3eacf622
No known key found for this signature in database
GPG key ID: FBB38AFE227189DB
4 changed files with 44 additions and 21 deletions

View file

@ -34,6 +34,7 @@
<div class="filter-row">
<div class="select-wrapper">
<select name="_filter_column_{{ loop.index }}">
<option value="">- remove filter -</option>
{% for c in display_columns %}
{% if c != 'rowid' %}
<option{% if c == column %} selected{% endif %}>{{ c }}</option>