diff options
author | Alan Pearce | 2024-06-08 20:34:37 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-08 20:42:48 +0200 |
commit | 408aed03d3454330120475ca53838a2f4fe28ea3 (patch) | |
tree | 78d0bb27634154a4ac956c851ea12b71db9ac6b9 /frontend/templates/blocks/search.gotmpl | |
parent | d40c0e188a7fe1b36887f59c4a9958faa81b3d44 (diff) | |
download | searchix-408aed03d3454330120475ca53838a2f4fe28ea3.tar.lz searchix-408aed03d3454330120475ca53838a2f4fe28ea3.tar.zst searchix-408aed03d3454330120475ca53838a2f4fe28ea3.zip |
feat: display results in a table, showing details on click
Diffstat (limited to 'frontend/templates/blocks/search.gotmpl')
-rw-r--r-- | frontend/templates/blocks/search.gotmpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl index 9320376..93ae545 100644 --- a/frontend/templates/blocks/search.gotmpl +++ b/frontend/templates/blocks/search.gotmpl @@ -16,9 +16,14 @@ <button>Search</button> </fieldset> </form> - {{- if .Results }} - {{ block "results" . }}{{ end }} - {{- end }} + <section id="results" role="list" aria-label="search results"> + {{- if .Results }} + {{ block "results" . }}{{ end }} + {{- end }} + </section> + <dialog id="dialog"> + <button autofocus>Close</button> + </dialog> {{- end }} {{- define "head" }} |