-
Notifications
You must be signed in to change notification settings - Fork 5
/
\
98 lines (96 loc) · 4.85 KB
/
\
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
<!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">
<div>
<h1>SolidVC Issuer</h1>
<!--<button id="login" class="btn">Login</button>-->
<button id="switch-acct">Switch Accounts</button>
<button id="switch-role">Switch Roles</button>
</div>
<div class="tab">
<button class="tablinks" id="issue-tab-link">Issue</button>
<button class="tablinks" id="review-tab-link">Review</button>
</div>
<!--<div id="active-tab">
</div>-->
<div class="tabcontent" id="review-tab-cnt">
<h3>Review Credential Requests<h3>
<table style="width:100%">
<tr>
<hr>
<td>Transportation Request from Alice</td>
<hr>
</tr>
<tr>
<td>Education Request from John</td>
<hr>
</tr>
<tr>
<td>Financial Request from Sally</td>
<hr>
</tr>
</table>
</div>
<div class="tabcontent" id="issue-tab-cnt">
<h3>Issue New Credential</h3>
<div>
<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="ie. 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 id="profile" class="hidden">
<h3 id="name"></h3>
<div>
<img id="image" height="100" width="100">
</div>
</div>
<div>
<label for="cred-context">Select Credential Context:</label>
<select id="cred-context">
<option value="">Select "General" if unsure</option>
<option value="svcEdu">Education</option>
<option value="svcFin">Finance</option>
<option value="svcGen">General</option>
<!--<option value="svcGov">Government</option>
<option value="svcHealth">Health</option>
<option value="svcLaw">Law</option>
<option value="svcMed">Medicine</option>
<option value="svcOcc">Occupation</option>-->
<option value="svcTrans">Transportation</option>
<!--<option value="svcTravel">Travel</option>-->
</select>
</div>
<div>
<label for="subject-id">Provide Credential Subject Id:</label>
<input type="text" placeholder="eg.: https://SUBJECT.solid.community/profile/card#me" size=50 id="subject-id"><br>
<label for="subject-pubkey">Provide Credential Subject Public Key:</label>
<input type="text" placeholder="eg.: https://SUBJECT.solid.community/public/svc/keys/1234.txt" size=60 id="subject-pubkey">
</div>
<textarea id="cred-plain" rows=25 cols=100 form="vcform"></textarea>
<input type="submit" value="Issue Credential" id="issue-cred">
<button id="patch-meta">Patch Meta</button>
</fieldset>
</form>
</div>
</div>
<div id=stmts></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>