forked from mirrors/bookwyrm
Adds search filter to UI
This commit is contained in:
parent
4b788f5df1
commit
3b54852536
2 changed files with 9 additions and 0 deletions
bookwyrm/templates/book
|
@ -1,6 +1,7 @@
|
|||
{% extends 'snippets/filters_panel/filters_panel.html' %}
|
||||
|
||||
{% block filter_fields %}
|
||||
{% include 'book/search_filter.html' %}
|
||||
{% include 'book/language_filter.html' %}
|
||||
{% include 'book/format_filter.html' %}
|
||||
{% endblock %}
|
||||
|
|
8
bookwyrm/templates/book/search_filter.html
Normal file
8
bookwyrm/templates/book/search_filter.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends 'snippets/filters_panel/filter_field.html' %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block filter %}
|
||||
<label class="label" for="id_search">{% trans "Search editions" %}</label>
|
||||
<input type="text" class="input" name="q" value="{{ request.GET.q|default:'' }}" id="id_search">
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in a new issue