diff options
author | navanchauhan <navanchauhan@gmail.com> | 2022-10-16 23:55:15 -0600 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2022-10-16 23:55:15 -0600 |
commit | 5044a3a51e1d809735b33e20c09b48354b03c7d0 (patch) | |
tree | d0161b958429f675fd4ce2a17047da16cd5c00ac /templates | |
parent | ca4e9de09c5f0e65c4c26ba5248de3eab203e71e (diff) |
changed to card group
Diffstat (limited to 'templates')
-rw-r--r-- | templates/search_results.html | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/templates/search_results.html b/templates/search_results.html index 4bacc47..fd82112 100644 --- a/templates/search_results.html +++ b/templates/search_results.html @@ -39,6 +39,32 @@ </div> </section> <section class="section"> + <div class="container"> + {{ range .SearchResults }} + <div class="card mb-4"> + <header class="card-header"> + <p class="card-header-title"> + {{.applicant}}</p> + </header> + <div class="card-content"> + <div class="media"> + <div class="media-content"> + <p class="title is-4">{{ .title }}</p> + </div> + </div> + <div class="content"> + {{.submission_date }} - {{unescapeHTML ._formatted.full_text}} + </div> + </div> + <footer class="card-footer"> + {{ range .predicates}} + <a href="https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfPMN/pmn.cfm?ID={{.}}" class="card-footer-item">{{ . }}</a> + {{ end }} + </footer> + </div> + {{ end }} + </div> + <!-- <div class="table-container"> <table class="table"> <tr> @@ -63,7 +89,7 @@ </tr> {{ end }} </table> -</div> +</div>--> </section> {{ if .MoreResults }} <a href="/2.0/search?query={{.OriginalQuery.Query}}&offset={{.LastOffset}}"> <p>Previous Page</p></a> |