forked from bspk/cr_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·390 lines (352 loc) · 18 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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Consent Receipt Generator</title>
<meta name="description" content="Demonstration website for a consent receipt generation service">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body {
padding-top: 50px;
padding-bottom: 20px;
}
#sig {
padding: 15px;
border: 1px #cccccc solid;
}
</style>
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/main.css">
<script type="text/javascript">
var exports = {};
</script>
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
<script src="js/vendor/jsrsasign.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-barcode"></span> Consent Receipt Generator</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/doc/">API Documentation</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div>
</nav>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>Example Consent Receipt Generator</h1>
<p>This page demonstrates a Consent Receipt generation function. The data in the form is sent to an API that generates a signed receipt in a JSON Web Token Format. This page then renders the resulting signed receipt and lets you download the raw receipt object.</p>
<div class="cis">
<img id="cis" src="img/cis.png" />
</div>
<div class="cis">
This is a product of the Consent and Information Sharing<br> Working Group within the Kantara Initiative.
</div>
</div>
</div>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-5">
<h2>Receipt Input</h2>
<p>Form values are suggestion for reference.</p>
<div class="container">
<div class="row">
<form role="form">
<div class="col-lg-6">
<div class="well well-sm"><strong><span class="glyphicon glyphicon-asterisk"></span>Required Field</strong></div>
<div class="form-group">
<label for="jurisdiction">Jurisdiction of organisation</label>
<div class="input-group">
<input type="text" class="form-control" name="jurisdiction" id="jurisdiction" placeholder="Example: US" value="US" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
</div>
<div class="form-group">
<label for="InputEmail">Id of natural person</label>
<div class="input-group">
<input type="text" class="form-control" id="sub" name="sub" placeholder="Example: [email protected]" value="[email protected]" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
</div>
<div class="form-group" id="svc">
<label>Service Title</label>
<div class="input-group">
<button type="button" class="btn btn-add">+ Add New Field</button>
</div>
</div>
<div class="form-group">
<label>Privacy Policy Link</label>
<div class="input-group">
<input type="text" class="form-control" id="policy_uri" name="policy_uri" placeholder="Example: http://example.com/policy" value="http://example.com/policy" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
</div>
<div class="form-group">
<label>Link to Short Privacy Notice</label>
<div class="input-group">
<input type="text" class="form-control" id="notice" name="notice" placeholder="Example: http://example.com/notice" value="http://example.com/notice" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
</div>
<div class="form-group">
<label>Data Controller</label><br>
<div class="input-group">
<input type="checkbox" id="data_controller_on_behalf"> Is acting on behalf of company taking consent?<br>
</div><br>
Contact Name
<div class="input-group">
<input type="text" class="form-control" id="data_controller_contact" placeholder="Example: Contact Name" value="Contact Name" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Company Name
<div class="input-group">
<input type="text" class="form-control" id="data_controller_company" placeholder="Example: Company Name" value="Company Name" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Address
<div class="input-group">
<input type="text" class="form-control" id="data_controller_address" placeholder="Example: Address" value="Address" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Contact Email
<div class="input-group">
<input type="text" class="form-control" id="data_controller_email" placeholder="Example: [email protected]" value="[email protected]" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
<br>
Phone Number
<div class="input-group">
<input type="text" class="form-control" id="data_controller_phone" placeholder="Example: 00-000-000-0000" value="00-000-000-0000" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
</div>
<div class="form-group">
<label>Consent Transaction Data</label><br>
Subject:
<div class="input-group">
<input type="text" class="form-control" id="consent_payload1" name="consent_payload1" placeholder="Example: Privacy Policy" value="Privacy Policy" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Consent:
<div class="input-group">
<input type="text" class="form-control" id="consent_payload2" name="consent_payload2" placeholder="Example: agree" value="agree" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Subject:
<div class="input-group">
<input type="text" class="form-control" id="consent_payload3" name="consent_payload3" placeholder="Example: Terms of Service" value="Terms of Service" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Consent:
<div class="input-group">
<input type="text" class="form-control" id="consent_payload4" name="consent_payload4" placeholder="Example: agree" value="agree" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
</div>
<div class="form-group" id="purpose">
<label>Purposes</label>
<div class="input-group">
<button type="button" class="btn btn-add">+ Add New Field</button>
</div>
</div>
<div class="form-group">
<label>PII Categories</label><br>
Category:
<div class="input-group">
<input type="text" class="form-control" id="pii_collected1" name="pii_collected1" placeholder="Example: name" value="name" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Value:
<div class="input-group">
<input type="text" class="form-control" id="pii_collected2" name="pii_collected2" placeholder="Example: Alice" value="Alice" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Category:
<div class="input-group">
<input type="text" class="form-control" id="pii_collected3" name="pii_collected3" placeholder="Example: email" value="email" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div><br>
Value:
<div class="input-group">
<input type="text" class="form-control" id="pii_collected4" name="pii_collected4" placeholder="Example: [email protected]" value="[email protected]" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
</div>
</div>
<div class="form-group" id="sensitive">
<label>Sensitive Information</label>
<div class="input-group">
<button type="button" class="btn btn-add">+ Add New Field</button>
</div>
</div>
<div class="form-group" id="sharing">
<label>3rd party sharing of personal information</label>
<div class="input-group">
<button type="button" class="btn btn-add">+ Add New Field</button>
</div>
</div>
<div class="form-group" id="context">
<label>Consent Context</label>
<div class="input-group">
<button type="button" class="btn btn-add">+ Add New Field</button>
</div>
</div>
<div class="form-group">
<label>Resource Server Identifier</label>
<div class="input-group">
<input type="text" class="form-control" id="aud" name="aud" placeholder="Example: http://example.com/protected" value="http://example.com/protected" required><span class="input-group-addon"></span>
</div><br>
</div>
<div class="form-group">
<label>Oauth Scopes</label>
<div class="input-group">
<input type="text" class="form-control" id="scope" name="scope" placeholder="Example: read update" value="read update" required><span class="input-group-addon"></span>
</div><br>
</div>
</div>
</form>
</div>
<button id="submit" class="btn btn-primary">Create Receipt »</button>
</div>
</div>
<div class="col-md-2">
</div>
<div class="col-md-5 well receipt">
<h2>Receipt Contents</h2>
<p id="receipt">The unencoded contents of your receipt will appear here after you submit the form. </p>
<div id="rhidden">
<p></p>
<p>
<button type="button" class="btn btn-info btn-xs">Jurisdiction of organisation</button>
</p>
<p id="rjurisdiction" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Id of natural person</button>
</p>
<p id="rsub" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Service Title</button>
</p>
<p id="rsvc" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Privacy Policy Link</button>
</p>
<p id="rpolicy_uri" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Link to Short Privacy Notice</button>
</p>
<p id="rnotice" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Data Controller</button>
</p>
<p class="rindent">
is acting on behalf of company: <span id="rdata_controller_on_behalf"></span><br>
Contact Name: <span id="rdata_controller_contact"></span><br>
Company Name: <span id="rdata_controller_company"></span><br>
Address: <span id="rdata_controller_address"></span><br>
Contact Email: <span id="rdata_controller_email"></span><br>
Phone Number: <span id="rdata_controller_phone"></span><br>
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Consent Transaction Data</button>
</p>
<p class="rindent">
Subject: <span id="rconsent_payload1"></span><br>
Consent: <span id="rconsent_payload2"></span>
</p>
<p class="rindent">
Subject: <span id="rconsent_payload3"></span><br>
Consent: <span id="rconsent_payload4"></span>
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Purposes</button>
</p>
<p id="rpurpose" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">PII Categories</button>
</p>
<p class="rindent">
Category: <span id="rpii_collected1"></span><br>
Value: <span id="rpii_collected2"></span>
</p>
<p class="rindent">
Category: <span id="rpii_collected3"></span><br>
Value: <span id="rpii_collected4"></span>
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Sensitive Information</button>
</p>
<p id="rsensitive" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">3rd party sharing of personal information</button>
</p>
<p id="rsharing" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Consent Context</button>
</p>
<p id="rcontext" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Resource Server Identifier</button>
</p>
<p id="raud" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Oauth Scopes</button>
</p>
<p id="rscope" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Issuer</button>
</p>
<p id="riss" class="rindent">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Transaction Number</button>
</p>
<p id="rjti" class="rindent wrap">
</p>
<p>
<button type="button" class="btn btn-info btn-xs">Timestamp</button>
</p>
<p id="riat" class="rindent wrap">
</p>
<p id="sig" class="bg-warning">Checking signature...</p>
</div>
<p id="receiptdl" ><a class="btn btn-primary" href="#" download role="button" disabled="disabled">Download Receipt »</a></p>
</script>
</div>
</div>
<hr>
<footer>
</footer>
</div> <!-- /container -->
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>