2022-01-24 01:20:29 +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>
|
2022-02-01 02:20:25 +00:00
|
|
|
<button class="close" data-bs-dismiss="alert" aria-label="Close">
|
2022-09-08 17:24:00 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
2022-01-24 01:20:29 +00:00
|
|
|
</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>
|
2022-02-01 02:20:25 +00:00
|
|
|
<button class="close" data-bs-dismiss="alert" aria-label="Close">
|
2022-09-08 17:24:00 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
2022-01-24 01:20:29 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<pre></pre>
|
|
|
|
<pre></pre>
|
|
|
|
<h5>User Award Grant</h5>
|
|
|
|
|
|
|
|
<form action="/admin/awards", method="post">
|
2022-03-19 16:19:02 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
2022-01-24 01:20:29 +00:00
|
|
|
<label for="input-username">Username</label><br>
|
|
|
|
<input autocomplete="off" id="input-username" class="form-control mb-3" type="text" name="username" required>
|
|
|
|
|
|
|
|
<div class="overflow-x-auto"><table class="table table-striped">
|
|
|
|
<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>
|
2022-02-24 12:03:28 +00:00
|
|
|
<td>{{a['title']}}</td>
|
2022-08-17 06:24:59 +00:00
|
|
|
<td><input autocomplete="off" type="number" class="form-control" name="{{a['kind']}}" min="0" {% if v.id != AEVANN_ID %}max="10"{% endif %} placeholder="Enter number..."></td>
|
2022-01-24 01:20:29 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2022-06-24 02:53:31 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary mt-3" type="submit" onclick="disable(this)" value="Grant Awards">
|
2022-01-24 01:20:29 +00:00
|
|
|
|
|
|
|
</form>
|
2022-06-18 00:35:27 +00:00
|
|
|
|
|
|
|
<pre></pre>
|
|
|
|
|
2022-01-24 01:20:29 +00:00
|
|
|
{% endblock %}
|