_facet selections persist through table form, refs #255

This commit is contained in:
Simon Willison 2018-05-15 07:28:48 -03:00 committed by Simon Willison
commit f4943ca89b
2 changed files with 19 additions and 0 deletions

View file

@ -81,6 +81,9 @@
</div>
<label class="sort_by_desc"><input type="checkbox" name="_sort_by_desc"{% if sort_desc %} checked{% endif %}> descending</label>
{% endif %}
{% for facet in facet_results %}
<input type="hidden" name="_facet" value="{{ facet }}">
{% endfor %}
<input type="submit" value="Apply">
</div>
</form>