Frontend improvements
This commit is contained in:
@ -13,7 +13,8 @@
|
||||
<form action="/adduser" method="post">
|
||||
<div class="input-group">
|
||||
<div class="form-floating">
|
||||
<input type="text" class="form-control" id="select-add-user" name="select-add-user" placeholder="Username:">
|
||||
<input type="text" class="form-control" id="select-add-user" name="select-add-user"
|
||||
placeholder="Username:">
|
||||
<label for="select-add-user">Username:</label>
|
||||
</div>
|
||||
|
||||
@ -23,41 +24,47 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mt-2">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Registered Users</h5>
|
||||
{% if users | length > 0 %}
|
||||
<div class="card mt-2">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Registered Users</h5>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
{% for user in users %}
|
||||
<li class="list-group-item">{{ user.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul class="list-group list-group-flush">
|
||||
{% for user in users %}
|
||||
<li class="list-group-item">{{ user.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mt-2">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Delete User</h5>
|
||||
<div class="card mt-2">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Delete User</h5>
|
||||
|
||||
<form action="/deleteuser" method="post">
|
||||
<div class="input-group">
|
||||
<select class="form-control form-select" aria-label="select-delete-user" name="select-delete-user">
|
||||
<option selected="selected">Select User</option>
|
||||
{% for user in users %}
|
||||
<option value="{{ user.name }}">{{ user.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<form action="/deleteuser" method="post">
|
||||
<div class="input-group">
|
||||
<select class="form-control form-select" aria-label="select-delete-user"
|
||||
name="select-delete-user">
|
||||
<option selected="selected" disabled="disabled" hidden="hidden">Select User</option>
|
||||
{% for user in users %}
|
||||
<option value="{{ user.name }}">{{ user.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<input type="submit" class="form-control btn btn-danger" value="Delete" style="max-width: 200px;">
|
||||
</div>
|
||||
<input type="submit" class="form-control btn btn-danger" value="Delete"
|
||||
style="max-width: 200px;">
|
||||
</div>
|
||||
|
||||
<div class="form-text">
|
||||
"Deleting" a user just hides it from the user interface without deleting any inputs, your "pERsoNaL
|
||||
DaTa" belongs to ME now.<br>
|
||||
Re-adding a user with the same name will "restore" it. That doesn't mean you're allowed to remove everyone though.
|
||||
</div>
|
||||
</form>
|
||||
<div class="form-text">
|
||||
"Deleting" a user just hides it from the user interface without deleting any inputs, your
|
||||
"pERsoNaL
|
||||
DaTa" belongs to ME now.<br>
|
||||
Re-adding a user with the same name will "restore" it. That doesn't mean you're allowed to
|
||||
remove everyone though.
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock body %}
|
||||
|
||||
Reference in New Issue
Block a user