[FIX] Store Notification OFF settings

This commit is contained in:
Sebastian Grewe 2014-03-01 20:06:00 +01:00
parent 1c529c891d
commit 00e901f919

View File

@ -5,7 +5,6 @@
<i class="fa fa-gear fa-fw"></i> Notification Settings <i class="fa fa-gear fa-fw"></i> Notification Settings
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form action="{$smarty.server.SCRIPT_NAME}" method="POST" role="form"> <form action="{$smarty.server.SCRIPT_NAME}" method="POST" role="form">
<input type="hidden" name="page" value="{$smarty.request.page|escape}"> <input type="hidden" name="page" value="{$smarty.request.page|escape}">
<input type="hidden" name="action" value="{$smarty.request.action|escape}"> <input type="hidden" name="action" value="{$smarty.request.action|escape}">
@ -17,22 +16,23 @@
<label>IDLE Worker</label> <label>IDLE Worker</label>
</td> </td>
<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> <script>
$("[name='data[idle_worker]']").bootstrapSwitch(); $("[id='idle_worker']").bootstrapSwitch();
</script> </script>
</td> </td>
</tr> </tr>
{if $DISABLE_BLOCKNOTIFICATIONS|default:"" != 1} {if $DISABLE_BLOCKNOTIFICATIONS|default:"" != 1}
<tr> <tr>
<td> <td>
<label>New Blocks</label> <label>New Blocks</label>
</td> </td>
<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> <script>
$("[name='data[new_block]']").bootstrapSwitch(); $("[id='new_block']").bootstrapSwitch();
</script> </script>
</td> </td>
</tr> </tr>
@ -42,9 +42,10 @@
<label>Payout</label> <label>Payout</label>
</td> </td>
<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> <script>
$("[name='data[payout]']").bootstrapSwitch(); $("[id='payout']").bootstrapSwitch();
</script> </script>
</td> </td>
</tr> </tr>
@ -53,9 +54,10 @@
<label>Successful Login</label> <label>Successful Login</label>
</td> </td>
<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> <script>
$("[name='data[success_login]']").bootstrapSwitch(); $("[id='success_login']").bootstrapSwitch();
</script> </script>
</td> </td>
</tr> </tr>
@ -76,7 +78,6 @@
<i class="fa fa-clock-o fa-fw"></i> Notification History <i class="fa fa-clock-o fa-fw"></i> Notification History
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered table-hover"> <table class="table table-striped table-bordered table-hover">
<thead> <thead>