Skip to content

Commit 125279f

Browse files
committed
Filter as you type
1 parent 9818aae commit 125279f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

caterva2/services/templates/path_list.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ <h5>Datasets:</h5>
33
{# Used in root_list.html #}
44
<input type="hidden" id="query-search" name="search" value="{{ search_text }}">
55

6-
<!-- Search box -->
7-
<form class="d-flex mt-1" hx-get="{{ search_url }}" hx-target="#path-list">
8-
<input class="form-control me-2" name="search" type="search"
9-
placeholder="Search" aria-label="Search" value="{{ search_text }}">
10-
<button class="btn btn-outline-success" type="submit">Search</button>
11-
</form>
6+
<!-- Filter box -->
7+
<input class="form-control me-2" name="search" type="search"
8+
placeholder="Filter" aria-label="Filter" value="{{ search_text }}"
9+
hx-get="{{ search_url }}" hx-target="#path-list" hx-trigger="input changed delay:1s"
10+
hx-ext="morph" hx-swap="morph:innerHTML"
11+
>
1212

1313
<!-- Datasets list -->
1414
<div class="h-75 overflow-scroll mt-1" id="dataset-list">

0 commit comments

Comments
 (0)