This commit is contained in:
Aevann1 2022-03-19 18:19:02 +02:00
parent b3cfda5274
commit b19c26f45a
33 changed files with 123 additions and 114 deletions

View file

@ -74,9 +74,9 @@
<a role="button" class="btn btn-secondary" onclick="document.getElementById('linkbtn').classList.toggle('d-none');">Link Accounts</a>
<form action="/admin/link_accounts" method="post">
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
<input autocomplete="off" type="hidden" name="u1" value="{{u1.id}}">
<input autocomplete="off" type="hidden" name="u2" value="{{u2.id}}">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="u1" value="{{u1.id}}">
<input type="hidden" name="u2" value="{{u2.id}}">
<input autocomplete="off" type="submit" id="linkbtn" class="btn btn-primary d-none" value="Confirm Link: {{u1.username}} and {{u2.username}}">
</form>

View file

@ -19,7 +19,7 @@
<div class="body w-lg-100">
<label for="edit-{{app.id}}-author" class="mb-0 w-lg-25">User</label>
<input autocomplete="off" id="edit-{{app.id}}-author" class="form-control" type="text" name="name" value="{{app.author.username}}" readonly=readonly>
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}" readonly=readonly>

View file

@ -36,7 +36,7 @@
<h5>User Award Grant</h5>
<form action="/admin/awards", method="post">
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<label for="input-username">Username</label><br>
<input autocomplete="off" id="input-username" class="form-control mb-3" type="text" name="username" required>

View file

@ -36,7 +36,7 @@
<h5>Badge Grant</h5>
<form action="/admin/badge_grant", method="post">
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<label for="input-username">Username</label><br>

View file

@ -36,7 +36,7 @@
<h5>Badge Remove</h5>
<form action="/admin/badge_remove", method="post">
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<label for="input-username">Username</label><br>

View file

@ -28,7 +28,7 @@
<form action="/admin/banned_domains" method="post">
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<input autocomplete="off" name="domain" placeholder="Enter domain here.." class="form-control" required>
<input autocomplete="off" name="reason" placeholder="Enter ban reason here.." oninput="document.getElementById('ban-submit').disabled=false" class="form-control">
<input autocomplete="off" id="ban-submit" type="submit" class="btn btn-primary" value="Toggle ban" disabled>

View file

@ -26,7 +26,7 @@
<div class="body d-lg-flex">
<div class="w-lg-100">
<form id="profile-settings" action="/admin/sidebar" method="post">
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<textarea autocomplete="off" maxlength="10000" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Enter sidebar here..." rows="50" name="sidebar" form="profile-settings">{% if sidebar %}{{sidebar}}{% endif %}</textarea>
<div class="d-flex mt-2">