summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/admin.htm26
1 files changed, 22 insertions, 4 deletions
diff --git a/templates/admin.htm b/templates/admin.htm
index db4aa03..7ca8ee9 100644
--- a/templates/admin.htm
+++ b/templates/admin.htm
@@ -3,19 +3,37 @@
{% block title %}Administration{% endblock %}
{% block content %}
-<h1>User Creation</h1>
-<form class="fixed-form" action="/admin" method="POST">
+<h1>Administration</h1>
+<h2>User Creation</h2>
+{% if success == OperationResult::CreateUser -%}
+ <div class="success">Successfully added</div>
+{% endif -%}
+<form action="/admin/create-user" method="POST">
<label for="user">Username</label>
<input type="text" placeholder="Enter Username" name="user" required>
<label for="password">Password</label>
<input type="password" placeholder="Enter Password" name="password" required>
- <label for="user">Balance</label>
- <input type="text" placeholder="Enter Balance" name="balance" required>
+ <label for="balance">Balance</label>
+ <input type="balance" placeholder="Enter Balance" name="balance" required>
<button type="submit">Create User</button>
</form>
+
+<h2>Change User Password</h2>
+{% if success == OperationResult::ChangePassword -%}
+ <div class="success">Successfully changed</div>
+{% endif -%}
+<form action="/admin/change-password" method="POST">
+ <label for="user">Username</label>
+ <input type="text" placeholder="Enter Username" name="user" required>
+
+ <label for="password">New Password</label>
+ <input type="password" placeholder="Enter Password" name="password" required>
+
+ <button type="submit">Change Password</button>
+</form>
{% endblock %}
<!-- vim: expandtab sw=2 ts=2