[UPDATE] notification switches
This commit is contained in:
parent
2cccba09f3
commit
42dff8a612
@ -11,56 +11,60 @@
|
|||||||
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
|
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
|
||||||
<input type="hidden" name="do" value="save">
|
<input type="hidden" name="do" value="save">
|
||||||
<input type="hidden" name="ctoken" value="{$CTOKEN|escape|default:""}" />
|
<input type="hidden" name="ctoken" value="{$CTOKEN|escape|default:""}" />
|
||||||
|
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Type</th>
|
|
||||||
<th>Active</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>IDLE Worker</td>
|
|
||||||
<td>
|
<td>
|
||||||
<label for="data[idle_worker]">
|
<label>IDLE Worker</label>
|
||||||
<input type="hidden" name="data[idle_worker]" value="0" />
|
</td>
|
||||||
<input type="checkbox" name="data[idle_worker]" id="data[idle_worker]" value="1"{nocache}{if $SETTINGS['idle_worker']|default:"0" == 1}checked{/if}{/nocache} />
|
<td>
|
||||||
</label>
|
<input type="checkbox" data-size="mini" name="data[idle_worker]" value="1"{nocache}{if $SETTINGS['idle_worker']|default:"0" == 1}checked{/if}{/nocache} />
|
||||||
<input type="checkbox" checked data-size="large">
|
<script>
|
||||||
|
$("[name='data[idle_worker]']").bootstrapSwitch();
|
||||||
|
</script>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{if $DISABLE_BLOCKNOTIFICATIONS|default:"" != 1}
|
{if $DISABLE_BLOCKNOTIFICATIONS|default:"" != 1}
|
||||||
<tr>
|
<tr>
|
||||||
<td>New Blocks</td>
|
|
||||||
<td>
|
<td>
|
||||||
<label for="data[new_block]">
|
<label>New Blocks</label>
|
||||||
<input type="hidden" name="data[new_block]" value="0" />
|
</td>
|
||||||
<input type="checkbox" name="data[new_block]" id="data[new_block]" value="1"{nocache}{if $SETTINGS['new_block']|default:"0" == 1}checked{/if}{/nocache} />
|
<td>
|
||||||
</label>
|
<input type="checkbox" data-size="mini" name="data[new_block]" id="data[new_block]" value="1"{nocache}{if $SETTINGS['new_block']|default:"0" == 1}checked{/if}{/nocache} />
|
||||||
|
<script>
|
||||||
|
$("[name='data[new_block]']").bootstrapSwitch();
|
||||||
|
</script>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
<tr>
|
<tr>
|
||||||
<td>Payout</td>
|
|
||||||
<td>
|
<td>
|
||||||
<label for="data[payout]">
|
<label>Payout</label>
|
||||||
<input type="hidden" name="data[payout]" value="0" />
|
</td>
|
||||||
<input type="checkbox" name="data[payout]" id="data[payout]" value="1"{nocache}{if $SETTINGS['payout']|default:"0" == 1}checked{/if}{/nocache} />
|
<td>
|
||||||
</label>
|
<input type="checkbox" data-size="mini" name="data[payout]" id="data[payout]" value="1"{nocache}{if $SETTINGS['payout']|default:"0" == 1}checked{/if}{/nocache} />
|
||||||
|
<script>
|
||||||
|
$("[name='data[payout]']").bootstrapSwitch();
|
||||||
|
</script>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Successful Login</td>
|
|
||||||
<td>
|
<td>
|
||||||
<span class="toggle">
|
<label>Successful Login</label>
|
||||||
<label for="data[success_login]">
|
</td>
|
||||||
<input type="hidden" name="data[success_login]" value="0" />
|
<td>
|
||||||
<input type="checkbox" class="ios-switch" name="data[success_login]" id="data[success_login]" value="1"{nocache}{if $SETTINGS['success_login']|default:"0" == 1}checked{/if}{/nocache} />
|
<input type="checkbox" data-size="mini" name="data[success_login]" id="data[success_login]" value="1"{nocache}{if $SETTINGS['success_login']|default:"0" == 1}checked{/if}{/nocache} />
|
||||||
<div class="switch"></div>
|
<script>
|
||||||
</label>
|
$("[name='data[success_login]']").bootstrapSwitch();
|
||||||
</span>
|
</script>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<input type="submit" value="Update" class="btn btn-outline btn-success btn-lg btn-block">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<input type="submit" value="Update" class="btn btn-outline btn-success btn-lg btn-block">
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user