rewards acp - ability to set amount of times a user can claim reward

v1.18.x
psychobunny 10 years ago
parent 5a6457ec7c
commit bb35950a5a

@ -1,5 +1,5 @@
#rewards { #rewards {
.well { .well, .panel-body {
vertical-align: top; vertical-align: top;
min-height: 100px; min-height: 100px;

@ -135,11 +135,12 @@ define('admin/extend/rewards', function() {
active: [{ active: [{
id: id ? parseInt(id, 10) + 1 : 0, id: id ? parseInt(id, 10) + 1 : 0,
disabled: true, disabled: true,
value: '' value: '',
claimable: 1
}], }],
conditions: conditions, conditions: conditions,
conditionals: conditionals, conditionals: conditionals,
rewards: available rewards: available,
}; };
templates.parse('admin/extend/rewards', 'active', data, function(li) { templates.parse('admin/extend/rewards', 'active', data, function(li) {

@ -37,8 +37,17 @@
<form class="rewards inline-block"> <form class="rewards inline-block">
<div class="inputs well inline-block"></div> <div class="inputs well inline-block"></div>
</form> </form>
<div class="clearfix"></div>
<div class="well inline-block pull-right"> <div class="pull-right">
<div class="panel-body inline-block">
<form class="main">
<label for="claimable">Amount of times reward is claimable</label><br />
<input type="text" name="claimable" value="{active.claimable}" placeholder="1" />
<small>Enter 0 for infinite</small>
</form>
</div>
<div class="panel-body inline-block">
<button class="btn btn-danger delete">Delete</button> <button class="btn btn-danger delete">Delete</button>
<!-- IF active.disabled --> <!-- IF active.disabled -->
<button class="btn btn-success toggle">Enable</button> <button class="btn btn-success toggle">Enable</button>
@ -46,6 +55,7 @@
<button class="btn btn-warning toggle">Disable</button> <button class="btn btn-warning toggle">Disable</button>
<!-- ENDIF active.disabled --> <!-- ENDIF active.disabled -->
</div> </div>
</div>
<div class="clearfix"></div> <div class="clearfix"></div>
</li> </li>
<!-- END active --> <!-- END active -->

Loading…
Cancel
Save