aboutsummaryrefslogtreecommitdiff
path: root/templates/user.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user.tpl')
-rw-r--r--templates/user.tpl38
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/user.tpl b/templates/user.tpl
new file mode 100644
index 0000000..cae7947
--- /dev/null
+++ b/templates/user.tpl
@@ -0,0 +1,38 @@
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <title>Manage User</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <link rel="stylesheet" type="text/css" href="/assets/site.css" />
7 <script type="text/javascript" src="/assets/site.js"></script>
8 </head>
9 <body>
10 <div id="api-error"><p>Error communicating with the API.</p><p class="sub-message"></p></div>
11 <div id="api-success">Saved!</div>
12
13 <h1>Manage User</h1>
14 <form method="PUT" action="/api/user" id="user-form">
15 <ol>
16 <li>
17 <label for="username">Username:</label>
18 <input type="text" id="username" name="username" />
19 </li>
20 <li>
21 <label for="is_admin">Admin:</label>
22 <input type="checkbox" id="is_admin" name="is_admin" />
23 </li>
24 <li>
25 <label for="is_service">Service User:</label>
26 <input type="checkbox" id="is_service" name="is_service" />
27 </li>
28 <li class="submit">
29 <button id="back">Back</button>
30 <button id="submit-form">Save</button>
31 </li>
32 </ol>
33 </form>
34 <script type="text/javascript">
35 window.addEventListener('load', setupUserPage);
36 </script>
37 </body>
38</html>