// performance
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
{block name="label"}
|
||||
{if $input.type == 'text' && $input.name == 'ps_cache_fs_directory_depth'}
|
||||
<div id="directory_depth">
|
||||
<div id="directory_depth" class="col-lg-9 col-lg-push-3">
|
||||
<div class="alert alert-warning">{l s='The CacheFS system should be used only when the infrastructure contains one front-end server. If you are not sure, ask your hosting company.'}</div>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
@@ -45,13 +45,13 @@
|
||||
{block name="description"}
|
||||
{$smarty.block.parent}
|
||||
{if $input.type == 'radio' && $input.name == 'combination'}
|
||||
<ul style="list-style-type:disc;margin:0 0 0 30px;">
|
||||
<ul>
|
||||
<li>{l s='Combinations tab on product page'}</li>
|
||||
<li>{l s='Value'}</li>
|
||||
<li>{l s='Attribute'}</li>
|
||||
</ul>
|
||||
{elseif $input.type == 'radio' && $input.name == 'feature'}
|
||||
<ul style="list-style-type:disc;margin:0 0 0 30px;">
|
||||
<ul>
|
||||
<li>{l s='Features tab on product page'}</li>
|
||||
<li>{l s='Feature'}</li>
|
||||
<li>{l s='Feature value'}</li>
|
||||
@@ -69,39 +69,54 @@
|
||||
{block name="other_input"}
|
||||
{if $key == 'memcachedServers'}
|
||||
<div id="memcachedServers">
|
||||
<div class="margin-form">
|
||||
<a id="addMemcachedServer" class="button" href="#" ><img src="../img/admin/add.gif" />{l s='Add server'}</a>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-9 col-lg-push-3">
|
||||
<button id="addMemcachedServer" class="btn btn-default" type="button" >
|
||||
<i class="icon-plus-sign-alt"></i> {l s='Add server'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="formMemcachedServer" style="margin-top: 10px; display:none;">
|
||||
<form action="{$current}&token={$token}" method="post">
|
||||
<label>{l s='IP Address'} </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="memcachedIp" />
|
||||
<div id="formMemcachedServer" style="display:none;">
|
||||
<form action="{$current}&token={$token}" method="post" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">{l s='IP Address'} </label>
|
||||
<div class="col-lg-9">
|
||||
<input class="form-control" type="text" name="memcachedIp" />
|
||||
</div>
|
||||
</div>
|
||||
<label>{l s='Port'} </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="memcachedPort" value="11211" />
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">{l s='Port'} </label>
|
||||
<div class="col-lg-9">
|
||||
<input class="form-control" type="text" name="memcachedPort" value="11211" />
|
||||
</div>
|
||||
</div>
|
||||
<label>{l s='Weight'} </label>
|
||||
<div class="margin-form">
|
||||
<input type="text" name="memcachedWeight" value="1" />
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">{l s='Weight'} </label>
|
||||
<div class="col-lg-9">
|
||||
<input class="form-control" type="text" name="memcachedWeight" value="1" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="margin-form">
|
||||
<input type="submit" value="{l s=' Add Server '}" name="submitAddServer" class="button" />
|
||||
<input type="button" value="{l s=' Test Server '}" id="testMemcachedServer" class="button" />
|
||||
<div class="form-group">
|
||||
<div class="col-lg-9 col-lg-push-3">
|
||||
<input type="submit" value="{l s='Add Server'}" name="submitAddServer" class="btn btn-default" />
|
||||
<input type="button" value="{l s='Test Server'}" id="testMemcachedServer" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{if $servers}
|
||||
<div class="margin-form">
|
||||
<table style="width: 320px;" cellspacing="0" cellpadding="0" class="table">
|
||||
<tr>
|
||||
<th style="width: 20px; text-align: center">{l s='ID'}</th>
|
||||
<th style="width: 200px; text-align: center">{l s='IP address'}</th>
|
||||
<th style="width: 50px; text-align: center">{l s='Port'}</th>
|
||||
<th style="width: 30px; text-align: right; font-weight: bold;">{l s='Weight'}</th>
|
||||
<th style="width: 20px; text-align: right;"> </th>
|
||||
</tr>
|
||||
<div class="form-group">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th >{l s='ID'}</th>
|
||||
<th >{l s='IP address'}</th>
|
||||
<th >{l s='Port'}</th>
|
||||
<th >{l s='Weight'}</th>
|
||||
<th > </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $servers AS $server}
|
||||
<tr>
|
||||
<td>{$server.id_memcached_server}</td>
|
||||
@@ -109,12 +124,11 @@
|
||||
<td>{$server.port}</td>
|
||||
<td>{$server.weight}</td>
|
||||
<td>
|
||||
<a href="{$current}&token={$token}&deleteMemcachedServer={$server.id_memcached_server}" >
|
||||
<img src="../img/admin/delete.gif" />
|
||||
</a>
|
||||
<a class="btn btn-default" href="{$current}&token={$token}&deleteMemcachedServer={$server.id_memcached_server}" ><i class="icon-minus-sign-alt"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -232,23 +232,14 @@
|
||||
{foreach $input.values as $value}
|
||||
|
||||
<div class="radio {if isset($input.class)}"{$input.class}"{/if}">
|
||||
<div class="label">
|
||||
<label>
|
||||
<input type="radio" name="{$input.name}"id="{$value.id}" value="{$value.value|escape:'htmlall':'UTF-8'}"
|
||||
{if $fields_value[$input.name] == $value.value}checked="checked"{/if}
|
||||
{if isset($input.disabled) && $input.disabled}disabled="disabled"{/if} />
|
||||
{if isset($input.is_bool) && $input.is_bool == true}
|
||||
{if $value.value == 1}
|
||||
<img src="../img/admin/enabled.gif" alt="{$value.label}" title="{$value.label}" />
|
||||
{else}
|
||||
<img src="../img/admin/disabled.gif" alt="{$value.label}" title="{$value.label}" />
|
||||
{/if}
|
||||
{else}
|
||||
{$value.label}
|
||||
{/if}
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
{*if isset($input.br) && $input.br}<br />{/if*}
|
||||
{*if isset($value.p) && $value.p}<p>{$value.p}</p>{/if*}
|
||||
{if isset($value.p) && $value.p}<p class="help-block">{$value.p}</p>{/if}
|
||||
{/foreach}
|
||||
{elseif $input.type == 'switch'}
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user