Fix Notification Switches and Worker Add Button

This commit is contained in:
rog1121 2014-03-01 16:28:57 -07:00
parent 36e23aa735
commit 7e4d891915
2 changed files with 10 additions and 9 deletions

View File

@ -17,7 +17,7 @@
</td>
<td>
<input type="hidden" name="data[idle_worker]" value="0" />
<input type="checkbox" data-size="small" name="data[idle_worker]" id="idle_worker" value="1"{nocache}{if $SETTINGS['idle_worker']|default:"0" == 1}checked{/if}{/nocache} />
<input type="checkbox" class="switch" data-size="small" name="data[idle_worker]" id="idle_worker" value="1"{nocache}{if $SETTINGS['idle_worker']|default:"0" == 1}checked{/if}{/nocache} />
<script>
$("[id='idle_worker']").bootstrapSwitch();
</script>
@ -30,7 +30,7 @@
</td>
<td>
<input type="hidden" name="data[new_block]" value="0" />
<input type="checkbox" data-size="small" name="data[new_block]" id="new_block" value="1"{nocache}{if $SETTINGS['new_block']|default:"0" == 1}checked{/if}{/nocache} />
<input type="checkbox"class="switch" data-size="small" name="data[new_block]" id="new_block" value="1"{nocache}{if $SETTINGS['new_block']|default:"0" == 1}checked{/if}{/nocache} />
<script>
$("[id='new_block']").bootstrapSwitch();
</script>
@ -52,7 +52,7 @@
</td>
<td>
<input type="hidden" name="data[success_login]" value="0" />
<input type="checkbox" data-size="small" name="data[success_login]" id="success_login" value="1"{nocache}{if $SETTINGS['success_login']|default:"0" == 1}checked{/if}{/nocache} />
<input type="checkbox" class="switch" data-size="small" name="data[success_login]" id="success_login" value="1"{nocache}{if $SETTINGS['success_login']|default:"0" == 1}checked{/if}{/nocache} />
<script>
$("[id='success_login']").bootstrapSwitch();
</script>

View File

@ -1,11 +1,10 @@
<div class="row">
<div class="col-lg-3">
<form class="col-lg-3" action="{$smarty.server.SCRIPT_NAME}" method="post" role="form">
<div class="panel panel-info">
<div class="panel-heading">
<i class="fa fa-plus-square-o fa-fw"></i> Add New Worker
</div>
<form action="{$smarty.server.SCRIPT_NAME}" method="post" role="form">
<div class="panel-body">
<input type="hidden" name="page" value="{$smarty.request.page|escape}">
<input type="hidden" name="action" value="{$smarty.request.action|escape}">
<input type="hidden" name="do" value="add">
@ -19,11 +18,13 @@
<label>Worker Password</label>
<input class="form-control" type="text" name="password" value="password" size="10" maxlength="20" required>
</div>
<input type="submit" value="Add New Worker" class="btn btn-outline btn-success btn-lg btn-block">
</div>
</form>
</div>
<div class="panel-footer">
<input type="submit" value="Add New Worker" class="btn btn-success">
</div>
</div>
</div>
</form>
<div class="col-lg-9">
<div class="panel panel-info">