forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-31 09:30:52 -06:00
parent 9dfecf7aae
commit 4874cada19
2 changed files with 13 additions and 19 deletions

View File

@ -68,14 +68,10 @@
</div>
{% endif %}
<pre></pre>
<pre></pre>
<h5>User Award Grant</h5>
<form id="awards-form" action="/admin/awards", method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}">
<label for="input-username">Username</label><br>
<input id="input-username" class="form-input mb-3" type="text" name="username" required oninput="document.getElementById('submit-btn').disabled = false">
<label for="input-username" class="label">Username</label>
<input autocomplete="off" id="input-username" class="form-input mb-2" type="text" name="username" required placeholder="Enter a username" oninput="document.getElementById('submit-btn').disabled = false">
<table class="w-full table table-striped">
<thead class="bg-primary text-white">
@ -87,22 +83,20 @@
</thead>
<tbody>
{% for a in awards %}
<tr>
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
<td style="font-weight: bold">{{a['title']}}</td>
<td><input type="number" class="form-input" name="{{a['kind']}}" value="0" min="0" max="10" placeholder="Enter amount..." ></td>
<tr class="odd:bg-gray-300 dark:odd:bg-white/10">
<td>
<i class="{{a['icon']}} {{a['color']}}" text-lg></i>
</td>
<td class="font-bold">
{{a['title']}}
</td>
<td>
<input type="number" class="form-input" name="{{a['kind']}}" value="0" min="0" max="10" placeholder="Enter amount..." >
</td>
</tr>
{% endfor %}
</table>
<input class="btn btn-green mt-3" type="submit" value="Grant Awards">
</form>
<pre></pre>
{% if 'rdrama.net' not in request.host or v.admin_level > 2 %}
<div><a class="btn btn-green mt-3" href="javascript:void(0)" onclick="post_toast('/admin/monthly')">Grant Monthly Marseybux</a></div>
{% endif %}
</div>
{% endblock %}

View File

@ -67,7 +67,7 @@
<input type="hidden" name="formkey" value="{{v.formkey}}">
<label for="input-username" class="label">Username</label>
<input id="input-username" class="form-input mb-2" type="text" name="username" required placeholder="Enter a username">
<input autocomplete="off" id="input-username" class="form-input mb-2" type="text" name="username" required placeholder="Enter a username">
<label for="input-url" class="label">URL</label>
<input id="input-url" class="form-input mb-2" type="text" name="url" placeholder="Optional">