-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
199 lines (197 loc) · 7.38 KB
/
index.html
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
{% autoescape true %}
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
<!-- Bootstrap core CSS -->
<link href="/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class='form-input'>
<div class='container'>
<ul>
<li><a href="#enroll_bottle">Enroll Bottle</a></li>
<li><a href="/connect">Sign Up</a></li>
<li><a href="#">Log In</a></li>
<li><a href="#">Help</a></li>
</ul>
</div>
</div>
<hr>
<div class='bottle-list'>
<div class='container'>
{% if bottles %}
{% for bottle in bottles %}
<li><a href='/bottle/{{bottle.name}}'> {{bottle.name}}</a></li>
<div class='bottle-info'>
<div class='container'>
<li>{{bottle.vintage}}</li>
<li>{{bottle.producer}}</li>
<li>{{bottle.name}}</li>
<li>{{bottle.fingerprint}}</li>
</div>
</div>
{%- endfor %}
{%else%}
<br>No Bottles found
{%endif%}
</div>
</div>
<div class='container'>
<H1>Enroll Bottle</H1>
<div class='bottle-form'>
<H2>Bottle Details</H2>
<div class='row'>
<div class='col-md-2'>Vintage</div>
<div class='col-md-2'>
<input type='text' id='vintage' />
</div>
<div class='col-md-8'></div>
</div>
<div class='row'>
<div class='col-md-2'>Producer</div>
<div class='col-md-2'>
<input type='text' id='producer'/>
</div>
<div class='col-md-8'></div>
</div>
<div class='row'>
<div class='col-md-2'>Name</div>
<div class='col-md-2'>
<input type='text' id='name'/>
</div>
<div class='col-md-8'></div>
</div>
<div class='row'>
<div class='col-md-2'></div>
<div class='col-md-4'>
<button type="button" class="btn btn-default" id='enroll-btn'>Enroll</button>
</div>
<div class='col-md-6'></div>
</div>
</div>
</div>
<div class='container'>
<H1>Bottle Identity</H1>
<div class='bottle-identity'>
<div class='row'>
<div class='col-md-2'><span class="label label-default title">bottle code</span></div>
<div class='col-md-8'>
<div class='well well-sm bottle-code'>
</div>
</div>
<div class='col-md-2'></div>
</div>
<div class='row'>
<div class='col-md-2'><span class="label label-default title">enclosure signature</span></div>
<div class='col-md-8'>
<div class='well well-sm enclosure-signature'>
</div>
</div>
<div class='col-md-2'></div>
</div>
<div class='row'>
<div class='col-md-2'><span class="label label-default title">bottle verification key</span></div>
<div class='col-md-8'>
<div class='well well-sm bottle-verification-key'>
</div>
</div>
<div class='col-md-2'></div>
</div>
<div class='row'>
<div class='col-md-2'><span class="label label-default title">enclosure verification key</span></div>
<div class='col-md-8'>
<div class='well well-sm enclosure-verification-key'>
</div>
</div>
<div class='col-md-2'></div>
</div>
<div class='row'>
<div class='col-md-2'><span class="label label-default title">bottle signature</span></div>
<div class='col-md-8'>
<div class='well well-sm bottle-signature'>
</div>
</div>
<div class='col-md-2'></div>
</div>
<div class='row'>
<div class='col-md-2'><span class="label label-default title">enclosure code</span></div>
<div class='col-md-8'>
<div class='well well-sm enclosure-code'>
</div>
</div>
<div class='col-md-2'></div>
</div>
<div class='row'>
<div class='col-md-2'><span class="label label-default title">fingerprint</span></div>
<div class='col-md-8'>
<div class='well well-sm fingerprint'>
</div>
</div>
<div class='col-md-2'></div>
</div>
</div>
</div>
<div class='container'>
<H1>Identity Verification</H1>
<div class='identity-verification'>
<div class='row'>
<div class='col-md-6'>
<input type="text" class="form-control bottle-code" placeholder="Bottle Code" aria-describedby="sizing-addon1">
</div>
<div class='col-md-6'></div>
</div>
<div class='row'>
<div class='col-md-6'>
<input type="text" class="form-control enclosure-signature" placeholder="Enclosure Signature" aria-describedby="sizing-addon1">
</div>
<div class='col-md-6'></div>
</div>
<div class='row'>
<div class='col-md-6'>
<input type="text" class="form-control bottle-verification-key" placeholder="Bottle Verification Key" aria-describedby="sizing-addon1">
</div>
<div class='col-md-6'></div>
</div>
<div class='row'>
<div class='col-md-6'>
<input type="text" class="form-control enclosure-verification-key" placeholder="Enclosure Verification Key" aria-describedby="sizing-addon1">
</div>
<div class='col-md-6'></div>
</div>
<div class='row'>
<div class='col-md-6'>
<input type="text" class="form-control bottle-signature" placeholder="Bottle Signature" aria-describedby="sizing-addon1">
</div>
<div class='col-md-6'></div>
</div>
<div class='row'>
<div class='col-md-6'>
<input type="text" class="form-control enclosure-code" placeholder="Enclosure Code" aria-describedby="sizing-addon1">
</div>
<div class='col-md-6'></div>
</div>
<div class='row'>
<div class='col-md-2'></div>
<div class='col-md-4'>
<button type="button" class="btn btn-default" id='validate-btn'>Validate Identity</button>
</div>
<div class='col-md-6'></div>
</div>
</div>
</div>
<!-- Set the Javascript client endpoint security -->
<script src="https://apis.google.com/js/client.js?onload=init"></script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="/js/base58/lib/bs58.js"></script>
<script src="/js/crypto/common.js"></script>
<script src="/js/app.js"></script>
</body>
</html>
{% endautoescape %}