diff options
| author | Jokler <github@jokler.xyz> | 2026-10-05 16:07:20 +0200 |
|---|---|---|
| committer | Jokler <github@jokler.xyz> | 2026-10-05 22:25:43 +0200 |
| commit | 625ea9193202f678ab2799283ddfe2b282ba1e90 (patch) | |
| tree | ccb98fdfca95b0787b730d5e9a3d3c9146eabf9a /templates/admin.htm | |
| parent | 0fed68e150b028b9ad62e75e0472a34224042501 (diff) | |
| download | joklerpoints-625ea9193202f678ab2799283ddfe2b282ba1e90.tar.gz joklerpoints-625ea9193202f678ab2799283ddfe2b282ba1e90.zip | |
Add user creation
Diffstat (limited to 'templates/admin.htm')
| -rw-r--r-- | templates/admin.htm | 26 |
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 |
