forked from rDrama/rDrama
fix
parent
9dfecf7aae
commit
4874cada19
|
@ -68,14 +68,10 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<pre></pre>
|
|
||||||
<pre></pre>
|
|
||||||
<h5>User Award Grant</h5>
|
|
||||||
|
|
||||||
<form id="awards-form" action="/admin/awards", method="post">
|
<form id="awards-form" action="/admin/awards", method="post">
|
||||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label for="input-username">Username</label><br>
|
<label for="input-username" class="label">Username</label>
|
||||||
<input id="input-username" class="form-input mb-3" type="text" name="username" required oninput="document.getElementById('submit-btn').disabled = false">
|
<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">
|
<table class="w-full table table-striped">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
|
@ -87,22 +83,20 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for a in awards %}
|
{% for a in awards %}
|
||||||
<tr>
|
<tr class="odd:bg-gray-300 dark:odd:bg-white/10">
|
||||||
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
<td>
|
||||||
<td style="font-weight: bold">{{a['title']}}</td>
|
<i class="{{a['icon']}} {{a['color']}}" text-lg></i>
|
||||||
<td><input type="number" class="form-input" name="{{a['kind']}}" value="0" min="0" max="10" placeholder="Enter amount..." ></td>
|
</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>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<input class="btn btn-green mt-3" type="submit" value="Grant Awards">
|
|
||||||
|
|
||||||
</form>
|
</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>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -67,7 +67,7 @@
|
||||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
<label for="input-username" class="label">Username</label>
|
<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>
|
<label for="input-url" class="label">URL</label>
|
||||||
<input id="input-url" class="form-input mb-2" type="text" name="url" placeholder="Optional">
|
<input id="input-url" class="form-input mb-2" type="text" name="url" placeholder="Optional">
|
||||||
|
|
Loading…
Reference in New Issue