mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Search now applies to current filters
Combined search into the same form as filters. Closes #133
This commit is contained in:
parent
8a37baba14
commit
a802cbee74
5 changed files with 42 additions and 11 deletions
|
|
@ -24,13 +24,10 @@
|
|||
</h3>
|
||||
{% endif %}
|
||||
|
||||
{% if supports_search %}
|
||||
<form action="/{{ database }}-{{ database_hash }}/{{ table|quote_plus }}" method="get">
|
||||
<p><input type="search" name="_search" value="{{ search }}"> <input type="submit" value="Search"></p>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
<form class="filters" action="/{{ database }}-{{ database_hash }}/{{ table|quote_plus }}" method="get">
|
||||
{% if supports_search %}
|
||||
<div class="search-row"><label for="_search">Search:</label><input id="_search" type="search" name="_search" value="{{ search }}"></div>
|
||||
{% endif %}
|
||||
{% for column, lookup, value in filters.selections() %}
|
||||
<div class="filter-row">
|
||||
<div class="select-wrapper">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue