[+] BO Images / Marketing / Spe. Prices Rules

This commit is contained in:
Kevin Granger
2013-08-01 14:42:43 +02:00
parent e4878ba393
commit 5defc39def
5 changed files with 78 additions and 64 deletions
@@ -26,30 +26,33 @@
{$content}
{if isset($display_regenerate)}
<h2 class="space">{l s='Regenerate thumbnails'}</h2>
{l s='Regenerates thumbnails for all existing images'}<br /><br />
<div class="width4">
<div class="alert alert-block">
{l s='Please be patient. This can take several minutes.'}<br />
{l s='Be careful! Manually uploaded thumbnails will be erased and replaced by automatically generated thumbnails.'}
</div>
</div>
<form action="{$current}&token={$token}" method="post">
<fieldset class="width4">
<legend><img src="../img/admin/picture.gif" /> {l s='Regenerate thumbnails'}</legend><br />
<label>{l s='Select an image'}</label>
<div class="margin-form">
<select name="type" onchange="changeFormat(this)">
<option value="all">{l s='All'}</option>
{foreach $types AS $k => $type}
<option value="{$k}">{$type}</option>
{/foreach}
</select>
<form class="form-horizontal" action="{$current}&token={$token}" method="post">
<fieldset>
<h3 class="space">{l s='Regenerate thumbnails'}</h3>
<div class="alert alert-info">
{l s='Regenerates thumbnails for all existing images'}<br />
{l s='Please be patient. This can take several minutes.'}<br />
{l s='Be careful! Manually uploaded thumbnails will be erased and replaced by automatically generated thumbnails.'}
</div>
<div class="row">
<label class="control-label col-lg-3">{l s='Select an image'}</label>
<div class="col-lg-9">
<select name="type" onchange="changeFormat(this)">
<option value="all">{l s='All'}</option>
{foreach $types AS $k => $type}
<option value="{$k}">{$type}</option>
{/foreach}
</select>
</div>
</div>
<div class="row">
{foreach $types AS $k => $type}
<label class="second-select format_{$k}" style="display:none;">{l s='Select a format'}</label>
<div class="second-select margin-form format_{$k}" style="display:none;">
<label class="control-label col-lg-3 second-select format_{$k}" style="display:none;">{l s='Select a format'}</label>
<div class="col-lg-9 second-select margin-form format_{$k}" style="display:none;">
<select class="second-select format_{$k}" name="format_{$k}">
<option value="all">{l s='All'}</option>
{foreach $formats[$k] AS $format}
@@ -58,6 +61,8 @@
</select>
</div>
{/foreach}
</div>
<script>
function changeFormat(elt)
{ldelim}
@@ -65,36 +70,49 @@
$('.format_' + $(elt).val()).show();
{rdelim}
</script>
<label>{l s='Erase previous images'}</label>
<div class="margin-form">
<input name="erase" type="checkbox" value="1" checked="checked" />
<p>{l s='Deselect this checkbox only if your server timed out and you need to resume the regeneration.'}</p>
<div class="row">
<label class="control-label col-lg-3">
{l s='Erase previous images'}
</label>
<div class="col-lg-9">
<div class="radio">
<label>
<input name="erase" type="checkbox" value="1" checked="checked" />
{l s='Deselect this checkbox only if your server timed out and you need to resume the regeneration.'}
</label>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-9 col-push-3">
<input type="Submit" name="submitRegenerate{$table}" value="{l s='Regenerate thumbnails'}" class="btn btn-primary" onclick="return confirm('{l s='Are you sure?'}');" />
</div>
</div>
<div class="clear"></div>
<center><input type="Submit" name="submitRegenerate{$table}" value="{l s='Regenerate thumbnails'}" class="button space" onclick="return confirm('{l s='Are you sure?'}');" /></center>
</fieldset>
</form>
{/if}
{if isset($display_move) && $display_move}
<br /><h2 class="space">{l s='Move images'}</h2>
{l s='PrestaShop now uses a new storage system for product images. It offers better performance if your shop has a large number of products.'}<br />
<br />
<h2 class="space">{l s='Move images'}</h2>
{l s='PrestaShop now uses a new storage system for product images. It offers better performance if your shop has a large number of products.'}
{if $safe_mode}
<div class="alert alert-block">
<div class="alert alert-info">
{l s='PrestaShop has detected that your server configuration is not compatible with the new storage system (directive "safe_mode" is activated). You should therefore continue to use the existing system.'}
</div>
{else}
<form action="{$current}&token={$token}" method="post">
<fieldset class="width4">
<legend><img src="../img/admin/picture.gif" /> {l s='Move images'}</legend><br />
{l s='You can choose to keep your images stored in the previous system. There\'s nothing wrong with that.'}<br />
{l s='You can also decide to move your images to the new storage system. In this case, click on the "Move images" button below. Please be patient. This can take several minutes.'}
<br /><br />
<div class="alert alert-info" style="display: block;">&nbsp;
<h3><img src="../img/admin/picture.gif" /> {l s='Move images'}</h3>
<div class="alert alert-info" >
{l s='You can choose to keep your images stored in the previous system. There\'s nothing wrong with that.'}<br />
{l s='You can also decide to move your images to the new storage system. In this case, click on the "Move images" button below. Please be patient. This can take several minutes.'}<br />
{l s='After moving all of your product images, set the "Use the legacy image filesystem" option above to "No" for best performance.'}
</div>
<center><input type="Submit" name="submitMoveImages{$table}" value="{l s='Move images'}" class="button space" onclick="return confirm('{l s='Are you sure?'}');" /></center>
<input type="Submit" name="submitMoveImages{$table}" value="{l s='Move images'}" class="button space" onclick="return confirm('{l s='Are you sure?'}');" />
</fieldset>
</form>
{/if}
@@ -75,7 +75,7 @@
{/if}
{block name="label"}
{if isset($field['title']) && isset($field['hint'])}
<label class="control-label col-lg-3">
<label class="control-label col-lg-3 {if isset($field['required']) && $field['required'] && $field['type'] != 'radio'}required{/if}">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{$field['hint']}">
{$field['title']}
</span>
@@ -273,9 +273,6 @@
{/if}
{if isset($field['required']) && $field['required'] && $field['type'] != 'radio'}
<sup>*</sup>
{/if}
{/block}{* end block input *}
{if $field['is_invisible']}