summaryrefslogtreecommitdiff
path: root/templates/document_details.html
blob: a078e460900e111fb39e3e7b85430050b416dec0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{.SearchResults.id}} - {{.GlobalVars.Name}}</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
    <script src="https://kit.fontawesome.com/32c297b57b.js" crossorigin="anonymous"></script>
  </head>
  <body>

    <section class="hero is-small is-primary">
        <div class="hero-body">
          <h1 class="title">
            DogeKnows
          </h1>
          <p class="subtitle">
            Full-text search FDA 510(k) database
          </p>
        </div>
      </section>
      <section class="section">
        <nav class="breadcrumb" aria-label="breadcrumbs">
            <ul>
              <li><a href="/">{{.GlobalVars.Name}}</a></li>
              <li class="is-active"><a href="#" aria-current="page">{{.SearchResults.id}}</a></li>
            </ul>
          </nav>
          <div class="container">
            <div class="container">
                <form action="/search" method="GET">
                  <div class="field has-addons">
                    <div class="control is-expanded has-icons-left">
                      <input class="input" type="text" name="query" placeholder="Query" spellcheck="false">
                      <span class="icon is-left">
                        <i class="fa-regular fa-magnifying-glass"></i>
                      </span>
                    </div>
                    <div class="control">
                      <input class="button is-primary" type="submit" value="Search">
                    </div>
                  </div>
                </form>
              </div>
            </div>
    </section>

    <section class="section">
        <div class="container">
            <div class="table-container">
            <table class="table">
                <tbody>
                    <tr>
                        <th>510(k) Number</th>
                        <td><a href="https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfPMN/pmn.cfm?ID={{.SearchResults.id}}">{{ .SearchResults.id }}</a></td>
                    </tr>
                    <tr>
                        <th>Title</th>
                        <td>{{.SearchResults.title}}</td>
                    </tr>
                    <tr>
                        <th>Applicant</th>
                        <td>{{.SearchResults.applicant}}</td>
                    </tr>
                    <tr>
                        <th>Contact</th>
                        <td>
                            {{.SearchResults.contact}}<br>
                            {{.SearchResults.STREET1}} {{.SearchResults.STREET2}}<br>
                            {{.SearchResults.CITY}}, {{.SearchResults.STATE}} {{.SearchResults.ZIP}}<br>
                            {{.SearchResults.COUNTRY_CODE}}
                        </td>
                    </tr>
                    <tr>
                        <th>Decision</th>
                        <td>{{.SearchResults.decision}}</td>
                    </tr>
                    <tr>
                        <th>Decision Date</th>
                        <td>{{.SearchResults.decision_date}}</td>
                    </tr>
                    <tr>
                        <th>Submission Date</th>
                        <td>{{.SearchResults.submission_date}}</td>
                    </tr>
                    <tr>
                        <th>Predicates</th>
                        <td>{{ range .SearchResults.predicates}}
                            <a href="/dbentry?id={{.}}">{{ . }}</a>&#32; 
                        {{ end }}</td>
                    </tr>
                    <tr>
                        <th>Decision</th>
                        <td>{{.SearchResults.decision}}</td>
                    </tr>
                    <tr>
                        <th>Product Code</th>
                        <td>{{.SearchResults.PRODUCTCODE}}</td>
                    </tr>
                    <tr>
                        <th>SSP Indicator</th>
                        <td>{{.SearchResults.SSPINDICATOR}}</td>
                    </tr>
                    <tr>
                        <th>Type</th>
                        <td>{{.SearchResults.TYPE}}</td>
                    </tr>
                    <tr>
                        <th>Reviewed by Third Party</th>
                        <td>{{.SearchResults.THIRDPARTY}}</td>
                    </tr>
                    <tr>
                        <th>Summary</th>
                        <td>
                            <a href="{{.SummaryPDF}}">Summary</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    </section>
    
</body>
</html>