-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.html
72 lines (72 loc) · 2.71 KB
/
options.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Legadilo Options</title>
<link rel="stylesheet" type="text/css" href="./vendor/bootstrap.css" />
</head>
<body>
<form id="options-form">
<div class="mb-3">
<label for="instance-url" class="form-label">
Instance URL <span>*</span>
</label>
<input id="instance-url"
class="form-control"
name="instance-url"
type="url"
required />
</div>
<div class="mb-3">
<label for="user-email" class="form-label">
Email <span>*</span>
</label>
<input id="user-email"
class="form-control"
name="user-email"
type="email"
required />
</div>
<div class="mb-3">
<label for="token-id" class="form-label">
Token id <span>*</span>
</label>
<input id="token-id"
class="form-control"
name="token-id"
type="text"
required />
</div>
<div class="mb-3">
<label for="token-secret" class="form-label">
Token secret <span>*</span>
</label>
<input id="token-secret"
class="form-control"
name="token-secret"
type="text"
required />
</div>
<div class="d-flex justify-content-between">
<div>
<button id="test-options" class="btn btn-outline-secondary" type="button">Test</button>
<button type="submit" class="btn btn-primary">Save</button>
</div>
<div>
<button id="reset-options" class="btn btn-danger" type="button">Reset to default</button>
</div>
</div>
</form>
<p id="status"></p>
<dialog id="confirm-dialog">
<div class="modal-header">
<h2 class="modal-title">Do you confirm?</h2>
</div>
<button id="confirm-dialog-cancel-btn"
class="btn btn-outline-secondary"
type="button">No</button>
<button id="confirm-dialog-confirm-btn" class="btn btn-danger" type="button">Yes</button>
</dialog>
<script src="./options.js" type="module"></script>
</body>
</html>