forked from MarseyWorld/MarseyWorld
allow me to give more than 10 awards at a time
parent
b201d7d28a
commit
c2ea38ec68
|
@ -377,7 +377,7 @@ def admin_userawards_post(v):
|
|||
|
||||
if value:
|
||||
|
||||
if int(value) > 10: abort(403)
|
||||
if int(value) > 10 and v.id != AEVANN_ID: abort(403)
|
||||
|
||||
if int(value): notify_awards[key] = int(value)
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<tr>
|
||||
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
||||
<td>{{a['title']}}</td>
|
||||
<td><input autocomplete="off" type="number" class="form-control" name="{{a['kind']}}" min="0" max="10" placeholder="Enter number..."></td>
|
||||
<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>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue