// UI fixs
This commit is contained in:
1 parent
549fa9003c
commit
ba28c5f527
3 files changed
+40
-39
No files matched your search
@@ -33,7 +33,7 @@
|
|||||||
{$smarty.block.parent}
|
{$smarty.block.parent}
|
||||||
{if in_array($input.type, array('radio', 'switch')) && $input.name == 'smarty_cache'}
|
{if in_array($input.type, array('radio', 'switch')) && $input.name == 'smarty_cache'}
|
||||||
<div class="clearfix row-padding-top">
|
<div class="clearfix row-padding-top">
|
||||||
<a href="{$current}&token={$token}&empty_smarty_cache=1" class="btn btn-default" href="">
|
<a href="{$current}&token={$token}&empty_smarty_cache=1" class="btn btn-default">
|
||||||
<i class="icon-eraser"></i>
|
<i class="icon-eraser"></i>
|
||||||
{l s='Clear Smarty cache & Autoload cache'}
|
{l s='Clear Smarty cache & Autoload cache'}
|
||||||
</a>
|
</a>
|
||||||
@@ -97,33 +97,31 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{if $servers}
|
{if $servers}
|
||||||
<div class="row">
|
<div class="form-group">
|
||||||
<div class="form-group">
|
<table class="table">
|
||||||
<table class="table">
|
<thead>
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="fixed-width-xs"><span class="title_box">{l s='ID'}</span></th>
|
|
||||||
<th><span class="title_box">{l s='IP address'}</span></th>
|
|
||||||
<th class="fixed-width-xs"><span class="title_box">{l s='Port'}</span></th>
|
|
||||||
<th class="fixed-width-xs"><span class="title_box">{l s='Weight'}</span></th>
|
|
||||||
<th> </th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{foreach $servers AS $server}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$server.id_memcached_server}</td>
|
<th class="fixed-width-xs"><span class="title_box">{l s='ID'}</span></th>
|
||||||
<td>{$server.ip}</td>
|
<th><span class="title_box">{l s='IP address'}</span></th>
|
||||||
<td>{$server.port}</td>
|
<th class="fixed-width-xs"><span class="title_box">{l s='Port'}</span></th>
|
||||||
<td>{$server.weight}</td>
|
<th class="fixed-width-xs"><span class="title_box">{l s='Weight'}</span></th>
|
||||||
<td align="right">
|
<th> </th>
|
||||||
<a class="btn btn-default" href="{$current}&token={$token}&deleteMemcachedServer={$server.id_memcached_server}" onclick="if (!confirm('{l s='Do you really want to remove the server %s:%s' sprintf=[$server.ip, $server.port] js=1}')) return false;"><i class="icon-minus-sign-alt"></i> {l s='Remove'}</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
</table>
|
{foreach $servers AS $server}
|
||||||
</div>
|
<tr>
|
||||||
|
<td>{$server.id_memcached_server}</td>
|
||||||
|
<td>{$server.ip}</td>
|
||||||
|
<td>{$server.port}</td>
|
||||||
|
<td>{$server.weight}</td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-default" href="{$current}&token={$token}&deleteMemcachedServer={$server.id_memcached_server}" onclick="if (!confirm('{l s='Do you really want to remove the server %s:%s' sprintf=[$server.ip, $server.port] js=1}')) return false;"><i class="icon-minus-sign-alt"></i> {l s='Remove'}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -132,18 +130,19 @@
|
|||||||
|
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
|
|
||||||
function showMemcached()
|
function showMemcached() {
|
||||||
{
|
if ($('input[name="caching_system"]:radio:checked').val() == 'CacheMemcache') {
|
||||||
if ($('input[name="caching_system"]:radio:checked').val() == 'CacheMemcache')
|
|
||||||
{
|
|
||||||
$('#memcachedServers').show();
|
$('#memcachedServers').show();
|
||||||
$('#ps_cache_fs_directory_depth').parent().parent().hide();
|
$('#ps_cache_fs_directory_depth').parent().parent().hide();
|
||||||
}
|
}
|
||||||
else
|
else if ($('input[name="caching_system"]:radio:checked').val() == 'CacheFs') {
|
||||||
{
|
|
||||||
$('#memcachedServers').hide();
|
$('#memcachedServers').hide();
|
||||||
$('#ps_cache_fs_directory_depth').parent().parent().show();
|
$('#ps_cache_fs_directory_depth').parent().parent().show();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$('#memcachedServers').hide();
|
||||||
|
$('#ps_cache_fs_directory_depth').parent().parent().hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|||||||
@@ -74,13 +74,15 @@ function check_all_shop() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="assoShop">
|
<div class="assoShop">
|
||||||
<table class="table" cellpadding="0" cellspacing="0" width="100%">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>{l s='Shop'}</th>
|
<th>{l s='Shop'}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label class="t"><input class="input_all_shop" type="checkbox" /> <b>{l s='All shops'}</b></label>
|
<label>
|
||||||
|
<input class="input_all_shop" type="checkbox" />{l s='All shops'}
|
||||||
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{foreach $input.values as $groupID => $groupData}
|
{foreach $input.values as $groupID => $groupData}
|
||||||
@@ -88,13 +90,13 @@ function check_all_shop() {
|
|||||||
<tr {if $input.type == 'shop'}class="alt_row"{/if}>
|
<tr {if $input.type == 'shop'}class="alt_row"{/if}>
|
||||||
<td>
|
<td>
|
||||||
<img style="vertical-align:middle;" alt="" src="../img/admin/lv2_b.gif" />
|
<img style="vertical-align:middle;" alt="" src="../img/admin/lv2_b.gif" />
|
||||||
<label class="t">
|
<label>
|
||||||
<input class="input_shop_group"
|
<input class="input_shop_group"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="checkBoxShopGroupAsso_{$table}[{$groupID}]"
|
name="checkBoxShopGroupAsso_{$table}[{$groupID}]"
|
||||||
value="{$groupID}"
|
value="{$groupID}"
|
||||||
{if $groupChecked} checked="checked"{/if} />
|
{if $groupChecked} checked="checked"{/if} />
|
||||||
<b>{l s='Group:'} {$groupData['name']}</b>
|
{l s='Group:'} {$groupData['name']}
|
||||||
</label>
|
</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
'title' => $this->l('Optional features'),
|
'title' => $this->l('Optional features'),
|
||||||
'icon' => 'icon-puzzle-piece'
|
'icon' => 'icon-puzzle-piece'
|
||||||
),
|
),
|
||||||
'hint' => $this->l('Some features can be disabled in order to improve performance.'),
|
'description' => $this->l('Some features can be disabled in order to improve performance.'),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
array(
|
array(
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
@@ -195,7 +195,7 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
'title' => $this->l('CCC (Combine, Compress and Cache)'),
|
'title' => $this->l('CCC (Combine, Compress and Cache)'),
|
||||||
'icon' => 'icon-fullscreen'
|
'icon' => 'icon-fullscreen'
|
||||||
),
|
),
|
||||||
'hint' => $this->l('CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop 1.4+. Otherwise, CCC will cause problems.'),
|
'description' => $this->l('CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop 1.4+. Otherwise, CCC will cause problems.'),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
array(
|
array(
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
@@ -305,7 +305,7 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
'title' => $this->l('Media servers (use only with CCC)'),
|
'title' => $this->l('Media servers (use only with CCC)'),
|
||||||
'icon' => 'icon-link'
|
'icon' => 'icon-link'
|
||||||
),
|
),
|
||||||
'hint' => $this->l('You must enter another domain, or subdomain, in order to use cookieless static content.'),
|
'description' => $this->l('You must enter another domain, or subdomain, in order to use cookieless static content.'),
|
||||||
'input' => array(
|
'input' => array(
|
||||||
array(
|
array(
|
||||||
'type' => 'hidden',
|
'type' => 'hidden',
|
||||||
|
|||||||
Reference in new issue
Block a user