This repository has been archived by the owner on Feb 7, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog_rest_device.html
114 lines (103 loc) · 4.62 KB
/
dialog_rest_device.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>VSCP REST remote host</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="./node_modules/@primer/octicons/build/build.css">
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="./node_modules/animate.css/animate.min.css">
</head>
<body class="bg-light">
<div class="container">
<div class="col-sm-12" align="center">
<h2>Remote VSCP Server</h2>
</div>
<form action="/action_page.php" class="needs-validation" novalidate>
<div class="form-group">
<label class="font-weight-bold" for="description">Description:</label>
<input type="text" class="form-control form-control-sm" id="description" placeholder="Enter description" name="description"
required>
<div class="valid-feedback"></div>
<div class="invalid-feedback">There must be a descriptive string.</div>
</div>
<div class="form-group">
<label class="font-weight-bold" for="host">Server (host:port):</label>
<input type="text" class="form-control form-control-sm" id="host" placeholder="Enter host:port" name="host" required>
<div class="valid-feedback"></div>
<div class="invalid-feedback">There must be a remote host specified (and port) on the form host:port. Default
port 9598.</div>
</div>
<div class="form-group">
<label class="font-weight-bold" for="username">Username:</label>
<input type="password" class="form-control form-control-sm" id="username" placeholder="Enter username" name="username" required>
</div>
<div class="form-group">
<label class="font-weight-bold" for="pwd">Password:</label>
<input type="password" class="form-control form-control-sm" id="pwd" placeholder="Enter password" name="pswd" required>
</div>
<div class="form-group">
<label class="font-weight-bold" for="interface">Interface:</label>
<input type="text" class="form-control form-control-sm" id="interface" placeholder="Enter interface GUID" name="interface">
</div>
<div class="form-group form-check form-inline">
<label class="font-weight-bold" for="pwd">Options:</label>
<div class="col-sm-2">
<label class="font-weight-bold" class="form-check-label">
<input class="form-check-input form-control-sm" type="checkbox" name="bssl"> SSL </label>
</div>
<div class="col-sm-5">
<label class="font-weight-bold" class="form-check-label">
<input class="form-check-input" type="checkbox" name="blevel2"> Full level II
</label>
</div>
<div class="col-sm-5">
</div>
</div>
<div>
<hr />
</div>
<div class="col-sm-12" align="center">
<button type="button" class="btn btn-warning">Set filter</button>
<button type="button" class="btn btn-warning">Test connection</button>
<button type="button" class="btn btn-warning">Get interfaces</button></div>
<div>
<hr />
</div>
<div class="row">
<div class="col-sm-12" align="center">
<button type="submit" class="btn-sm btn-default">Cancel</button>
<button type="submit" class="btn-sm btn-default"><span class="octicon octicon-check" aria-hidden="true"></span>OK</button>
<i class="opticon octicon-mark-github"></i>
</div>
</div>
</form>
</div>
<!-- Bootstrap Optional JavaScript -->
<!-- jQuery first, then popper.js, then Bootstrap JS -->
<script>let $ = jQuery = require('./node_modules/jquery/dist/jquery.min.js');</script>
<script>require('./node_modules/@popperjs/core/dist/cjs/popper.js');</script>
<script>require('./node_modules/bootstrap/dist/js/bootstrap.min.js');</script>
<script>
// Disable form submissions if there are invalid fields
(function () {
'use strict';
window.addEventListener('load', function () {
// Get the forms we want to add validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function (form) {
form.addEventListener('submit', function (event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
</script>
</body>
</html>