php-mpos/templates/bluemoon/account/notifications/default.tpl
2016-07-06 14:37:49 +02:00

122 lines
4.6 KiB
Smarty

<div class="row">
<form class="col-lg-4" method="POST" role="form">
<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="save">
<input type="hidden" name="ctoken" value="{$CTOKEN|escape|default:""}">
<div class="widget">
<div class="widget-header">
<div class="title">
Notification Settings
</div>
<span class="tools">
<i class="fa fa-gear"></i>
</span>
</div>
<div class="widget-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
{if $DISABLE_IDLEWORKERNOTIFICATIONS|default:"" != 1}
<tr>
<td>
<label>Idle Worker</label>
</td>
<td>
<input type="hidden" name="data[idle_worker]" value="0" />
<input type="checkbox" class="switch" data-size="mini" name="data[idle_worker]" id="idle_worker" value="1"{nocache}{if $SETTINGS['idle_worker']|default:"0" == 1}checked{/if}{/nocache} />
</td>
</tr>
{/if}
{if $DISABLE_BLOCKNOTIFICATIONS|default:"" != 1}
<tr>
<td>
<label>New Blocks</label>
</td>
<td>
<input type="hidden" name="data[new_block]" value="0" />
<input type="checkbox"class="switch" data-size="mini" name="data[new_block]" id="new_block" value="1"{nocache}{if $SETTINGS['new_block']|default:"0" == 1}checked{/if}{/nocache} />
</td>
</tr>
{/if}
<tr>
<td>
<label>Payout</label>
</td>
<td>
<input type="hidden" name="data[payout]" value="0" />
<input type="checkbox" class="switch" data-size="mini" name="data[payout]" id="payout" value="1"{nocache}{if $SETTINGS['payout']|default:"0" == 1}checked{/if}{/nocache} />
</td>
</tr>
<tr>
<td>
<label>Successful Login</label>
</td>
<td>
<input type="hidden" name="data[success_login]" value="0" />
<input type="checkbox" class="switch" data-size="mini" name="data[success_login]" id="success_login" value="1"{nocache}{if $SETTINGS['success_login']|default:"0" == 1}checked{/if}{/nocache} />
</td>
</tr>
{if $DISABLE_POOLNEWSLETTER|default:"" != 1}
<tr>
<td>
<label>Pool Newsletter</label>
</td>
<td>
<input type="hidden" name="data[newsletter]" value="0" />
<input type="checkbox"class="switch" data-size="mini" name="data[newsletter]" id="new_block" value="1"{nocache}{if $SETTINGS['newsletter']|default:"1" == 1}checked{/if}{/nocache} />
</td>
</tr>
{/if}
</table>
</div>
<input type="submit" value="Update" class="btn btn-success btn-sm">
</div>
</form>
</div>
<div class="col-lg-8">
<div class="widget">
<div class="widget-header">
<div class="title">
Notification History
</div>
<span class="tools">
<i class="fa fa-clock-o"></i>
</span>
</div>
<div class="widget-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>ID</th>
<th>Time</th>
<th>Type</th>
<th>Active</th>
</tr>
</thead>
<tbody>
{section notification $NOTIFICATIONS}
<tr>
<td>{$NOTIFICATIONS[notification].id}</td>
<td>{$NOTIFICATIONS[notification].time}</td>
<td>
{if $NOTIFICATIONS[notification].type == new_block}New Block
{else if $NOTIFICATIONS[notification].type == payout}Payout
{else if $NOTIFICATIONS[notification].type == idle_worker}Idle Worker
{else if $NOTIFICATIONS[notification].type == success_login}Successful Login
{/if}
</td>
<td>
<i class="fa fa-{if $NOTIFICATIONS[notification].active}check{else}times{/if} fa-fw"></i>
</td>
</tr>
{/section}
<tbody>
</table>
</div>
</div>
</div>
</div>
</div>