forked from rDrama/rDrama
1
0
Fork 0

Revert "Revert "move username in badge_admin.html to the bottom with the other fields""

This reverts commit 655f238156.
master
Aevann 2023-08-03 07:34:46 +03:00
parent fcd9937995
commit 47cfa0d922
1 changed files with 5 additions and 6 deletions

View File

@ -8,15 +8,11 @@
{% if error %}{{macros.alert(error, true)}}{% endif %}
{% if msg %}{{macros.alert(msg, false)}}{% endif %}
<h5 class="mt-2">{{title}}</h5>
{% set form_action = "/admin/badge_grant" if grant else "/admin/badge_remove" %}
<form action="{{form_action}}" method="post">
<input hidden name="formkey" value="{{v|formkey}}">
<label for="input-username">Username</label>
<input autocomplete="off" id="input-username" class="form-control" type="text" name="username" required>
<div class="overflow-x-auto"><table class="table table-striped">
<thead class="bg-primary text-white">
<tr>
@ -45,11 +41,14 @@
</tr>
{% endfor %}
</table>
<label for="input-username">Username</label>
<input autocomplete="off" id="input-username" class="form-control" type="text" name="username" required>
{% if grant %}
<label class="mb-0 pb-0" for="input-url">URL</label>
<label class="mt-2" for="input-url">URL</label>
<input autocomplete="off" id="input-url" class="form-control" type="text" name="url" type="url" placeholder="Optional">
<label class="mt-2 mb-0 pb-0" for="input-description">Custom description</label>
<label class="mt-2" for="input-description">Custom description</label>
<input autocomplete="off" id="input-description" class="form-control" type="text" name="description" placeholder="Leave blank for badge default">
{% endif %}
<input autocomplete="off" class="btn btn-primary mt-3" type="submit">