summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2022-10-04 02:13:05 -0600
committernavanchauhan <navanchauhan@gmail.com>2022-10-04 02:13:05 -0600
commit0e2444e6afd9df38b740bd6fdcaff0f95321c325 (patch)
tree5fa2fc4b1c2d632c74ed76dbf49473dce18f78dd /index.html
parentbec4e596415c623d7294ec87680bc029e407fc23 (diff)
rewrite
Diffstat (limited to 'index.html')
-rw-r--r--index.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.html b/index.html
index 0759bd3..2c2c279 100644
--- a/index.html
+++ b/index.html
@@ -1,11 +1,13 @@
<h1>DogeKnows</h1>
<form method="POST">
<label>Query:</label><br />
- <input type="text" name="query"><br />
+ <input type="text" name="query" {{if .Success }} value="{{.OriginalQuery.Query}}" {{end}}><br />
+ <input name="offset" value="{{.Offset}}" type="hidden"><br />
<input type="submit">
</form>
{{if .Success}}
<h2>Search Results</h2>
+<p>Showing {{.NumResults}} of {{.TotalResults}}</p>
<table border="1">
<tr>
<th>510(k) Number</th>
@@ -27,4 +29,7 @@
</tr>
{{ end }}
</table>
-{{end}} \ No newline at end of file
+ {{ if .MoreResults }}
+ <p>Load More</p>
+ {{ end }}
+{{end}}