aboutsummaryrefslogtreecommitdiff
path: root/src/views/admin.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/admin.ejs')
-rw-r--r--src/views/admin.ejs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/views/admin.ejs b/src/views/admin.ejs
new file mode 100644
index 0000000..009b029
--- /dev/null
+++ b/src/views/admin.ejs
@@ -0,0 +1,32 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport"
+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>Admin</title>
+</head>
+<body>
+<% if (initial) { %>
+ <form id="setup-form">
+ <div>
+ <label for="username">Username:</label>
+ <input type="text" name="username" id="username">
+ </div>
+ <div>
+ <label for="email">Email:</label>
+ <input type="email" name="email" id="email">
+ </div>
+ <div>
+ <label for="password">Password:</label>
+ <input type="password" name="password" id="password">
+ </div>
+ <input type="submit" value="Setup">
+ </form>
+ <script src="/js/setup.js"></script>
+<% } else { %>
+ <!-- TODO: Render default admin page -->
+<% } %>
+</body>
+</html>