-
Notifications
You must be signed in to change notification settings - Fork 5
/
issuer.html
126 lines (119 loc) · 6.65 KB
/
issuer.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
<!DOCTYPE html>
<html>
<head>
<title>SolidVC Issuer</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"/>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" type="./img/png" href="./img/favicon.png"/>
<link rel="stylesheet" href="./css/styles.css">
</head>
<body class="container">
<!-- Body Header -->
<div>
<img style="vertical-align:middle" src="./img/favicon.png" alt="Solid logo" height=80 width=80>
<div style="vertical-align:middle; display:inline">
<h1 style="display:inline">SolidVC Issuer</h1>
</div>
<div>
<button id="nav-home">Home</button>
<button id="nav-subject">Subject</button>
<button id="nav-issuer" style="color:#C0C0C0" disabled>Issuer</button>
<button id="nav-verifier">Verifier</button>
<!--<button id="nav-inbox">Inbox</button>-->
<button id="switch-acct">Switch Accounts</button>
</div>
</div>
<!-- Personal Profile -->
<div id="profile" class="hidden">
<h3 id="name"></h3>
<div>
<img id="image" height="100" width="100">
</div>
</div>
<!-- Tab Template -->
<div class="tab">
<button class="tablinks" id="issue-tab-link">Issue</button>
<button class="tablinks" id="review-tab-link">Review</button>
<button class="tablinks" id="revoke-tab-link">Revoke</button>
</div>
<!-- Modal Template -->
<div id="msg-modal" class="modal">
<!-- Modal content -->
<div class="msg-modal-content">
<span id="msg-modal-close" class="close">×</span>
<!--<button id="msg-modal-close" class="close">×</button>-->
<div id="msg-modal-text" style="white-space: pre-wrap"></div>
</div>
</div>
<!-- Credential Request Review Tab -->
<div class="tabcontent" id="review-tab-cnt">
<h3>Review Credential Requests</h3>
<table id="msg-board" border=1 frame=void rules=rows style="width:100%"></table>
</div>
<!-- Credential Revocation Tab -->
<div class="tabcontent" id="revoke-tab-cnt">
<h3>Revoke Credential</h3>
<form id="revoke-form">
<fieldset>
<div>
<label for="revoke-cred-id">Provide Credential ID:</label>
<input type="text" placeholder="e.g., https://VERIFIER.solid.community/public/svc/rev/cred-4" style="width: 50%" id="revoke-cred-id">
<div id="revoke-cred-id-note" style="white-space: nowrap" style="width:30">
<pre style="white-space: normal; width: 523px; overflow: auto">
NOTE: This does not necessarily have to be a dereferenceable URL
</pre>
</div>
<textarea id="revoke-cred-reason" rows=15 cols=100 form="revoke-form"></textarea>
<input type="submit" value="Revoke Credential" id="revoke-cred">
</div>
</fieldset>
</form>
</div>
<!-- Credential Issuance Tab -->
<div class="tabcontent" id="issue-tab-cnt">
<h3>Issue New Credential</h3>
<div>
<form id="issue-form">
<fieldset>
<!--Credential: <input type="file" accept=".json" id="credential" required><br>
<input type="submit" value="Issue Credential" id="issue-cred">-->
<!--Public Key: <input type="file" placeholder="e.g., http://example.com/people/peter/keys/23" size="40" id="creator" required><br>-->
<!--Signature: <input type="file" id="signature" required><br>-->
<!--<input type="text" id="subject"><br>
<input type="text" id="predicate"><br>
<input type="text" id="object"><br>
<button id="add-stmt">Add Statement</button>-->
<div>
<label for="cred-domain">Select Credential Domain:</label>
<select id="cred-domain">
<option value="">Select "General" if unsure</option>
<option value="EDUCATION">Education</option>
<option value="FINANCE">Finance</option>
<option value="GENERAL">General</option>
<option value="GOVERNMENT">Government</option>
<option value="HEALTH">Health</option>
<option value="LAW">Law</option>
<option value="MEDICINE">Medicine</option>
<option value="PROFESSION">Profession</option>
<option value="TRANSPORTATION">Transportation</option>
<option value="TRAVEL">Travel</option>
</select>
</div>
<div>
<label for="subject-id">Provide Credential Subject ID:</label>
<input type="text" placeholder="e.g., https://SUBJECT.solid.community/profile/card#me" style="width: 46%" id="subject-id"><br>
</div>
<textarea id="cred-plain" rows=15 cols=100 form="issue-form"></textarea>
<input type="submit" value="Issue Credential" id="issue-cred">
</fieldset>
</form>
</div>
</div>
<div>Icons made by <a href="https://www.flaticon.com/authors/smashicons" title="Smashicons" target="_blank">Smashicons</a> from <a href="https://www.flaticon.com/" title="Flaticon" target="_blank">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
</body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="./app/dist/app.bundle.js" charset="utf-8"></script>
</html>