[FIX] Store Notification OFF settings
This commit is contained in:
parent
1c529c891d
commit
00e901f919
@ -5,7 +5,6 @@
|
||||
<i class="fa fa-gear fa-fw"></i> Notification Settings
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<form action="{$smarty.server.SCRIPT_NAME}" method="POST" role="form">
|
||||
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
|
||||
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
|
||||
@ -17,22 +16,23 @@
|
||||
<label>IDLE Worker</label>
|
||||
</td>
|
||||
<td>
|
||||
<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="hidden" name="data[idle_worker]" value="0" />
|
||||
<input type="checkbox" data-size="mini" name="data[idle_worker]" id="idle_worker" value="1"{nocache}{if $SETTINGS['idle_worker']|default:"0" == 1}checked{/if}{/nocache} />
|
||||
<script>
|
||||
$("[name='data[idle_worker]']").bootstrapSwitch();
|
||||
$("[id='idle_worker']").bootstrapSwitch();
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $DISABLE_BLOCKNOTIFICATIONS|default:"" != 1}
|
||||
<tr>
|
||||
<td>
|
||||
<label>New Blocks</label>
|
||||
</td>
|
||||
<td>
|
||||
<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} />
|
||||
<input type="hidden" name="data[new_block]" value="0" />
|
||||
<input type="checkbox" data-size="mini" name="data[new_block]" id="new_block" value="1"{nocache}{if $SETTINGS['new_block']|default:"0" == 1}checked{/if}{/nocache} />
|
||||
<script>
|
||||
$("[name='data[new_block]']").bootstrapSwitch();
|
||||
$("[id='new_block']").bootstrapSwitch();
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
@ -42,9 +42,10 @@
|
||||
<label>Payout</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" data-size="mini" name="data[payout]" id="data[payout]" value="1"{nocache}{if $SETTINGS['payout']|default:"0" == 1}checked{/if}{/nocache} />
|
||||
<input type="hidden" name="data[payout]" value="0" />
|
||||
<input type="checkbox" data-size="mini" name="data[payout]" id="payout" value="1"{nocache}{if $SETTINGS['payout']|default:"0" == 1}checked{/if}{/nocache} />
|
||||
<script>
|
||||
$("[name='data[payout]']").bootstrapSwitch();
|
||||
$("[id='payout']").bootstrapSwitch();
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
@ -53,9 +54,10 @@
|
||||
<label>Successful Login</label>
|
||||
</td>
|
||||
<td>
|
||||
<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} />
|
||||
<input type="hidden" name="data[success_login]" value="0" />
|
||||
<input type="checkbox" data-size="mini" name="data[success_login]" id="success_login" value="1"{nocache}{if $SETTINGS['success_login']|default:"0" == 1}checked{/if}{/nocache} />
|
||||
<script>
|
||||
$("[name='data[success_login]']").bootstrapSwitch();
|
||||
$("[id='success_login']").bootstrapSwitch();
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
@ -76,7 +78,6 @@
|
||||
<i class="fa fa-clock-o fa-fw"></i> Notification History
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<thead>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user