diff options
author | navanchauhan <navanchauhan@gmail.com> | 2022-09-19 18:19:17 -0600 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2022-09-19 18:19:17 -0600 |
commit | bec4e596415c623d7294ec87680bc029e407fc23 (patch) | |
tree | 8e2289cb05cf47ee85056783bfcbabca811640eb /index.html | |
parent | 4bc3152e479a18fe4a5ac5dc8de34c661418c52c (diff) |
initial v0.1
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..0759bd3 --- /dev/null +++ b/index.html @@ -0,0 +1,30 @@ + <h1>DogeKnows</h1> + <form method="POST"> + <label>Query:</label><br /> + <input type="text" name="query"><br /> + <input type="submit"> + </form> +{{if .Success}} +<h2>Search Results</h2> + <table border="1"> + <tr> + <th>510(k) Number</th> + <th>Title</th> + <th>Applicant</th> + <th>Submission Date</th> + <th>Predicates</th> + </tr> + {{ range .SearchResults }} + <tr> + <td><a href="https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfPMN/pmn.cfm?ID={{.id}}">{{ .id }}</a></td> + <td>{{ .title }}</td> + <td>{{ .applicant }}</td> + <td>{{ .submission_date }}</td> + <td>{{ range .predicates}} + <a href="https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfPMN/pmn.cfm?ID={{.}}">{{ . }}</a>, + {{ end }} + </td> + </tr> + {{ end }} + </table> +{{end}}
\ No newline at end of file |