2021-10-15 14:08:27 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Grant User Award</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagetype %}message{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if error %}
|
|
|
|
<div class="alert alert-danger alert-dismissible fade show my-3" role="alert">
|
|
|
|
<i class="fas fa-exclamation-circle my-auto"></i>
|
|
|
|
<span>
|
|
|
|
{{error}}
|
|
|
|
</span>
|
2021-12-30 05:27:22 +00:00
|
|
|
<button role="button" class="close" data-bs-dismiss="alert" aria-label="Close">
|
2021-10-15 14:08:27 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if msg %}
|
|
|
|
<div class="alert alert-success alert-dismissible fade show my-3" role="alert">
|
|
|
|
<i class="fas fa-check-circle my-auto" aria-hidden="true"></i>
|
|
|
|
<span>
|
|
|
|
{{msg}}
|
|
|
|
</span>
|
2021-12-30 05:27:22 +00:00
|
|
|
<button role="button" class="close" data-bs-dismiss="alert" aria-label="Close">
|
2021-10-15 14:08:27 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<pre></pre>
|
|
|
|
<pre></pre>
|
|
|
|
<h5>User Award Grant</h5>
|
|
|
|
|
2021-10-20 14:37:46 +00:00
|
|
|
<form action="/admin/awards", method="post">
|
2021-12-28 12:41:26 +00:00
|
|
|
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
2021-10-27 20:12:16 +00:00
|
|
|
<label for="input-username">Username</label><br>
|
2021-12-28 12:41:26 +00:00
|
|
|
<input autocomplete="off" id="input-username" class="form-control mb-3" type="text" name="username" required>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-12-31 16:51:53 +00:00
|
|
|
<div class="overflow-x-auto"><table class="table table-striped">
|
2021-10-27 20:12:16 +00:00
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Icon</th>
|
|
|
|
<th scope="col">Title</th>
|
|
|
|
<th scope="col">Amount</th>
|
|
|
|
</tr>
|
|
|
|
</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>
|
2021-12-28 12:41:26 +00:00
|
|
|
<td><input autocomplete="off" type="number" class="form-control" name="{{a['kind']}}" value="0" min="0" max="10" placeholder="Enter amount..." ></td>
|
2021-10-27 20:12:16 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-12-28 12:41:26 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary mt-3" type="submit" value="Grant Awards">
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<pre></pre>
|
2021-11-15 22:13:29 +00:00
|
|
|
{% if 'rdrama.net' not in request.host or v.admin_level > 2 %}
|
2021-12-31 13:03:39 +00:00
|
|
|
<div><a class="btn btn-danger" role="button" onclick="post_toast('/admin/monthly')">Grant Monthly Marseybux</a></div>
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endif %}
|
2021-09-10 05:49:22 +00:00
|
|
|
{% endblock %}
|