blob: 7ca8ee9bfd744abaf335445ab49caf67db980584 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{% extends "base.htm" %}
{% block title %}Administration{% endblock %}
{% block content %}
<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="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
-->
|