diff options
author | LarsVomMars | 2020-07-30 20:16:54 +0200 |
---|---|---|
committer | LarsVomMars | 2020-07-30 20:16:54 +0200 |
commit | f02c4054984fb8c12bfa4af9560a5b2be38810c0 (patch) | |
tree | d4519a92b739640e061847831d221e3e2488a83c /src/views/admin.ejs | |
parent | 86c68c3648c94ca9f66f3eb408973368bed28681 (diff) |
Added views and server setup
Diffstat (limited to 'src/views/admin.ejs')
-rw-r--r-- | src/views/admin.ejs | 32 |
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> |