diff options
Diffstat (limited to 'frontend/templates')
-rw-r--r-- | frontend/templates/blocks/search.gotmpl | 10 | ||||
-rw-r--r-- | frontend/templates/index.gotmpl | 2 |
2 files changed, 8 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 }} diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl index 77e1265..d4a46da 100644 --- a/frontend/templates/index.gotmpl +++ b/frontend/templates/index.gotmpl @@ -12,6 +12,8 @@ <nav> <h1><a href="/">Searchix</a></h1> <a href="/search/nixos">NixOS</a> + <a href="/search/darwin">Darwin</a> + <a href="/search/home-manager">Home Manager</a> </nav> </header> <main> |