[UPDATE] settings layouts
This commit is contained in:
parent
9fa4055cf8
commit
3b84458443
@ -1,42 +1,44 @@
|
||||
<article class="module width_full">
|
||||
<form method="POST">
|
||||
<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" />
|
||||
<header>
|
||||
<h3 class="tabs_involved">Settings</h3>
|
||||
<ul style="margin: 10px 20px 0px 0px;" class="tabs">
|
||||
{foreach item=TAB from=array_keys($SETTINGS)}
|
||||
<li><a href="#{$TAB}">{$TAB|capitalize}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</header>
|
||||
<div class="tab_container">
|
||||
{foreach item=TAB from=array_keys($SETTINGS)}
|
||||
<div class="tab_content module_content" id="{$TAB}">
|
||||
<br />
|
||||
{section name=setting loop=$SETTINGS.$TAB}
|
||||
<fieldset>
|
||||
<label>{$SETTINGS.$TAB[setting].display}</label>
|
||||
{if $SETTINGS.$TAB[setting].tooltip|default}<span style="font-size: 10px;">{$SETTINGS.$TAB[setting].tooltip}</span>{/if}
|
||||
{if $SETTINGS.$TAB[setting].type == 'select'}
|
||||
{html_options name="data[{$SETTINGS.$TAB[setting].name}]" options=$SETTINGS.$TAB[setting].options selected=$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}
|
||||
{else if $SETTINGS.$TAB[setting].type == 'text'}
|
||||
<input type="text" size="{$SETTINGS.$TAB[setting].size}" name="data[{$SETTINGS.$TAB[setting].name}]" value="{$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default|escape:"html"}" />
|
||||
{else if $SETTINGS.$TAB[setting].type == 'textarea'}
|
||||
<textarea name="data[{$SETTINGS.$TAB[setting].name}]" cols="{$SETTINGS.$TAB[setting].size|default:"1"}" rows="{$SETTINGS.$TAB[setting].height|default:"1"}">{$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}</textarea>
|
||||
{else}
|
||||
Unknown option type: {$SETTINGS.$TAB[setting].type}
|
||||
{/if}
|
||||
</fieldset>
|
||||
{/section}
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Settings
|
||||
</div>
|
||||
<form 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" />
|
||||
<div class="panel-body">
|
||||
<ul class="nav nav-pills">
|
||||
{foreach item=TAB from=array_keys($SETTINGS)}
|
||||
<li {if $TAB == 'website'}class="active"{/if}><a href="#{$TAB}" data-toggle="tab">{$TAB|capitalize}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{foreach item=TAB from=array_keys($SETTINGS)}
|
||||
<div class="tab-pane fade in {if $TAB == 'website'}active{/if}" id="{$TAB}">
|
||||
<br />
|
||||
{section name=setting loop=$SETTINGS.$TAB}
|
||||
<div class="form-group">
|
||||
<label>{$SETTINGS.$TAB[setting].display}</label>
|
||||
{if $SETTINGS.$TAB[setting].tooltip|default}<span style="font-size: 10px;">{$SETTINGS.$TAB[setting].tooltip}</span>{/if}
|
||||
{if $SETTINGS.$TAB[setting].type == 'select'}
|
||||
{html_options class="form-control" name="data[{$SETTINGS.$TAB[setting].name}]" options=$SETTINGS.$TAB[setting].options selected=$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}
|
||||
{else if $SETTINGS.$TAB[setting].type == 'text'}
|
||||
<input class="form-control" type="text" size="{$SETTINGS.$TAB[setting].size}" name="data[{$SETTINGS.$TAB[setting].name}]" value="{$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default|escape:"html"}" />
|
||||
{else if $SETTINGS.$TAB[setting].type == 'textarea'}
|
||||
<textarea class="form-control" name="data[{$SETTINGS.$TAB[setting].name}]" cols="{$SETTINGS.$TAB[setting].size|default:"1"}" rows="{$SETTINGS.$TAB[setting].height|default:"1"}">{$SETTINGS.$TAB[setting].value|default:$SETTINGS.$TAB[setting].default}</textarea>
|
||||
{else}
|
||||
Unknown option type: {$SETTINGS.$TAB[setting].type}
|
||||
{/if}
|
||||
</div>
|
||||
{/section}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<input type="submit" value="Save" class="btn btn-outline btn-success btn-lg btn-block">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<footer>
|
||||
<div class="submit_link">
|
||||
<input type="submit" value="Save" class="alt_btn">
|
||||
</div>
|
||||
</footer>
|
||||
</form>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
@ -1,28 +1,33 @@
|
||||
<article class="module width_full">
|
||||
<header><h3>General Statistics</h3></header>
|
||||
<div class="module_content">
|
||||
<table class="" width="50%" style="font-size:14px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="leftheader">Pool Hash Rate</td>
|
||||
<td>{$GLOBAL.hashrate} {$GLOBAL.hashunits.pool}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftheader">Current Total Miners</td>
|
||||
<td>{$GLOBAL.workers}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftheader">Current Block</td>
|
||||
<td><a href="{$GLOBAL.website.blockexplorer.url}{$CURRENTBLOCK}" target="_new">{$CURRENTBLOCK}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftheader">Current Difficulty</td>
|
||||
<td><a href="http://allchains.info/" target="_new">{$DIFFICULTY}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="col-lg-6">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
General Statistics
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="leftheader">Pool Hash Rate</td>
|
||||
<td>{$GLOBAL.hashrate} {$GLOBAL.hashunits.pool}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftheader">Current Total Miners</td>
|
||||
<td>{$GLOBAL.workers}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftheader">Current Block</td>
|
||||
<td><a href="{$GLOBAL.website.blockexplorer.url}{$CURRENTBLOCK}" target="_new">{$CURRENTBLOCK}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftheader">Current Difficulty</td>
|
||||
<td><a href="http://allchains.info/" target="_new">{$DIFFICULTY}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
{if !$GLOBAL.website.api.disabled}<ul><li>These stats are also available in JSON format <a href="{$smarty.server.SCRIPT_NAME}?page=api&action=public" target="_api">HERE</a></li>{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
{if !$GLOBAL.website.api.disabled}<ul><li>These stats are also available in JSON format <a href="{$smarty.server.SCRIPT_NAME}?page=api&action=public" target="_api">HERE</a></li>{/if}
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
||||
@ -50,8 +50,6 @@
|
||||
<i class="fa fa-trophy fa-fw"></i> 2% or more Donation
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.panel -->
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user