diff options
author | Alan Pearce | 2024-05-07 21:04:13 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-07 21:04:13 +0200 |
commit | 32c4f1ddd704984dad79ad059619b127dcc7de2f (patch) | |
tree | f4d3c1bc0805ca715d54d80c74364d17d02793a2 /frontend/templates/blocks/search.gotmpl | |
parent | 48b22d9ad78e4f3bdb6ca5bbd5ab642b1f991715 (diff) | |
download | searchix-32c4f1ddd704984dad79ad059619b127dcc7de2f.tar.lz searchix-32c4f1ddd704984dad79ad059619b127dcc7de2f.tar.zst searchix-32c4f1ddd704984dad79ad059619b127dcc7de2f.zip |
style: show pages for different sources
Diffstat (limited to 'frontend/templates/blocks/search.gotmpl')
-rw-r--r-- | frontend/templates/blocks/search.gotmpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl index 5482e6b..b03410c 100644 --- a/frontend/templates/blocks/search.gotmpl +++ b/frontend/templates/blocks/search.gotmpl @@ -2,10 +2,12 @@ {{- template "js" . }} {{- define "main" }} - <label for="query">Search</label> - <form id="search" action="/options/results"> - <input id="query" name="query" type="search" value="{{ .Query }}" /> - <button>Search</button> + <form id="search" action="/options/{{ .Source }}/results"> + <label for="query">{{ sourceName .Source }} option search</label> + <fieldset> + <input id="query" name="query" type="search" value="{{ .Query }}" /> + <button>Search</button> + </fieldset> </form> {{- with .Results }} {{ block "results" . }}{{ end }} |