blob: cae794701e3f4e01dbab431c065e3476482e0cb7 (
plain)
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>Manage User</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/assets/site.css" />
<script type="text/javascript" src="/assets/site.js"></script>
</head>
<body>
<div id="api-error"><p>Error communicating with the API.</p><p class="sub-message"></p></div>
<div id="api-success">Saved!</div>
<h1>Manage User</h1>
<form method="PUT" action="/api/user" id="user-form">
<ol>
<li>
<label for="username">Username:</label>
<input type="text" id="username" name="username" />
</li>
<li>
<label for="is_admin">Admin:</label>
<input type="checkbox" id="is_admin" name="is_admin" />
</li>
<li>
<label for="is_service">Service User:</label>
<input type="checkbox" id="is_service" name="is_service" />
</li>
<li class="submit">
<button id="back">Back</button>
<button id="submit-form">Save</button>
</li>
</ol>
</form>
<script type="text/javascript">
window.addEventListener('load', setupUserPage);
</script>
</body>
</html>
|