aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-19 13:16:40 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-19 13:16:40 +0100
commit228376c1089033e1ee643db0e93d12580d5494d1 (patch)
treedf96bff470daddd14cf2944869d5fefd1e65722d /templates
parenta3db0a3cdfaba887bdcec1748d341bd8ebf6ac47 (diff)
downloadrocket-blog-228376c1089033e1ee643db0e93d12580d5494d1.tar.gz
rocket-blog-228376c1089033e1ee643db0e93d12580d5494d1.tar.bz2
rocket-blog-228376c1089033e1ee643db0e93d12580d5494d1.zip
Implement new/create user logic.
Diffstat (limited to 'templates')
-rw-r--r--templates/new_user.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/new_user.html b/templates/new_user.html
new file mode 100644
index 0000000..29aa20f
--- /dev/null
+++ b/templates/new_user.html
@@ -0,0 +1,31 @@
+<h1>Create a new user</h1>
+<form id="new_user" name="user" method="post" action="/users/create">
+ <div class="field">
+ <label>Username:</label>
+ <input type="text" name="username" value="{{ user.username }}">
+ </div>
+
+ <div class="field">
+ <label>Real Name:</label>
+ <input type="text" name="realname" value="{{ realname() }}">
+ </div>
+
+ <div class="field">
+ <label>Email:</label>
+ <input type="text" name="email" value="{{ email() }}">
+ </div>
+
+ <div class="field">
+ <label>Password:</label>
+ <input type="text" name="password" value="">
+ </div>
+
+ <div class="field">
+ <label>Confirm password:</label>
+ <input type="text" name="email" value="">
+ </div>
+
+ <div class="actions">
+ <input type="submit" value="Create user">
+ </div>
+</form>