// fixs add product informations

This commit is contained in:
Kevin Granger
2013-10-17 18:11:47 +02:00
parent 7189aa9de9
commit d933466d04
3 changed files with 38 additions and 34 deletions
@@ -32,7 +32,7 @@
{/if} {/if}
{$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="row 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" href="">
<i class="icon-eraser"></i> <i class="icon-eraser"></i>
{l s='Clear Smarty cache & Autoload cache'} {l s='Clear Smarty cache & Autoload cache'}
@@ -94,8 +94,10 @@
<div id="warn_virtual_combinations" class="alert alert-warning" style="display:none">{l s='You cannot use combinations with a virtual product.'}</div> <div id="warn_virtual_combinations" class="alert alert-warning" style="display:none">{l s='You cannot use combinations with a virtual product.'}</div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="simple_product">{$bullet_common_field} {l s='Type:'}</label> <label class="control-label col-lg-3" for="simple_product">
{$bullet_common_field} {l s='Type:'}
</label>
<div class="col-lg-9"> <div class="col-lg-9">
<div class="radio"> <div class="radio">
<label for="simple_product"> <label for="simple_product">
@@ -120,7 +122,7 @@
<hr/> <hr/>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3 required" for="name_{$id_lang}"> <label class="control-label col-lg-3 required" for="name_{$id_lang}">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='Invalid characters:'} &lt;&gt;;=#{}"> title="{l s='Invalid characters:'} &lt;&gt;;=#{}">
@@ -128,18 +130,16 @@
</span> </span>
</label> </label>
<div class="col-lg-5"> <div class="col-lg-5">
<div class="row"> {include file="controllers/products/input_text_lang.tpl"
{include file="controllers/products/input_text_lang.tpl" languages=$languages
languages=$languages input_class="{$class_input_ajax}{if !$product->id}copy2friendlyUrl{/if} updateCurrentText"
input_class="{$class_input_ajax}{if !$product->id}copy2friendlyUrl{/if} updateCurrentText" input_value=$product->name
input_value=$product->name input_name="name"
input_name="name" }
}
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="reference"> <label class="control-label col-lg-3" for="reference">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='Special characters allowed:'} .-_#\"> title="{l s='Special characters allowed:'} .-_#\">
@@ -151,7 +151,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="ean13"> <label class="control-label col-lg-3" for="ean13">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='(Europe, Japan)'}"> title="{l s='(Europe, Japan)'}">
@@ -163,7 +163,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="upc"> <label class="control-label col-lg-3" for="upc">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='(US, Canada)'}"> title="{l s='(US, Canada)'}">
@@ -178,7 +178,7 @@
<hr/> <hr/>
{* status informations *} {* status informations *}
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3"> <label class="control-label col-lg-3">
{include file="controllers/products/multishop/checkbox.tpl" field="active" type="radio" onclick=""} {include file="controllers/products/multishop/checkbox.tpl" field="active" type="radio" onclick=""}
{l s='Status:'} {l s='Status:'}
@@ -187,18 +187,20 @@
<span class="switch prestashop-switch"> <span class="switch prestashop-switch">
<input onclick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" type="radio" name="active" id="active_on" value="1" {if $product->active || !$product->isAssociatedToShop()}checked="checked" {/if} /> <input onclick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" type="radio" name="active" id="active_on" value="1" {if $product->active || !$product->isAssociatedToShop()}checked="checked" {/if} />
<label for="active_on" class="radioCheck"> <label for="active_on" class="radioCheck">
<i class="icon-check-sign"></i> {l s='Enabled'} <i class="icon-check-sign text-success"></i>
{l s='Enabled'}
</label> </label>
<input onclick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" type="radio" name="active" id="active_off" value="0" {if !$product->active && $product->isAssociatedToShop()}checked="checked"{/if} /> <input onclick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" type="radio" name="active" id="active_off" value="0" {if !$product->active && $product->isAssociatedToShop()}checked="checked"{/if} />
<label for="active_off" class="radioCheck"> <label for="active_off" class="radioCheck">
<i class="icon-ban-circle"></i> {l s='Disabled'} <i class="icon-ban-circle text-danger"></i>
{l s='Disabled'}
</label> </label>
<span class="slide-button btn btn-default"></span> <span class="slide-button btn btn-default"></span>
</span> </span>
</div> </div>
</div> </div>
<div class="row redirect_product_options" style="display:none"> <div class="form-group redirect_product_options" style="display:none">
<label class="control-label col-lg-3" for="redirect_type"> <label class="control-label col-lg-3" for="redirect_type">
{include file="controllers/products/multishop/checkbox.tpl" field="redirect_type" type="radio" onclick=""} {include file="controllers/products/multishop/checkbox.tpl" field="redirect_type" type="radio" onclick=""}
{l s='Redirect when disabled'} {l s='Redirect when disabled'}
@@ -211,7 +213,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="row redirect_product_options" style="display:none"> <div class="form-group redirect_product_options" style="display:none">
<div class="col-lg-9 col-lg-offset-3"> <div class="col-lg-9 col-lg-offset-3">
<div class="alert alert-info"> <div class="alert alert-info">
{l s='404 Not Found = Do not redirect and display a 404 page'}<br/> {l s='404 Not Found = Do not redirect and display a 404 page'}<br/>
@@ -221,7 +223,7 @@
</div> </div>
</div> </div>
<div class="row redirect_product_options redirect_product_options_product_choise" style="display:none"> <div class="form-group redirect_product_options redirect_product_options_product_choise" style="display:none">
<label class="control-label col-lg-3" for="related_product_autocomplete_input"> <label class="control-label col-lg-3" for="related_product_autocomplete_input">
{include file="controllers/products/multishop/checkbox.tpl" field="id_product_redirected" type="radio" onclick=""} {include file="controllers/products/multishop/checkbox.tpl" field="id_product_redirected" type="radio" onclick=""}
{l s='Related product:'} {l s='Related product:'}
@@ -248,7 +250,7 @@
</script> </script>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="visibility"> <label class="control-label col-lg-3" for="visibility">
{include file="controllers/products/multishop/checkbox.tpl" field="visibility" type="default"} {include file="controllers/products/multishop/checkbox.tpl" field="visibility" type="default"}
{l s='Visibility:'} {l s='Visibility:'}
@@ -263,7 +265,7 @@
</div> </div>
</div> </div>
<div id="product_options" class="row" {if !$product->active}style="display:none"{/if} > <div id="product_options" class="form-group" {if !$product->active}style="display:none"{/if} >
<div class="col-lg-12"> <div class="col-lg-12">
<div class="form-group"> <div class="form-group">
<label class="control-label col-lg-3" for="available_for_order"> <label class="control-label col-lg-3" for="available_for_order">
@@ -347,7 +349,7 @@
</div> </div>
{if $images} {if $images}
<div class="row"> <div class="form-group">
<div class="col-lg-9 col-lg-offset-3"> <div class="col-lg-9 col-lg-offset-3">
<div class="alert alert-info"> <div class="alert alert-info">
{l s='Would you like to add an image in your description?'} {l s='Would you like to add an image in your description?'}
@@ -357,7 +359,7 @@
</div> </div>
<div id="createImageDescription" class="panel" style="display:none"> <div id="createImageDescription" class="panel" style="display:none">
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="smallImage_0">{l s='Select your image:'}</label> <label class="control-label col-lg-3" for="smallImage_0">{l s='Select your image:'}</label>
<div class="col-lg-9"> <div class="col-lg-9">
<ul class="list-inline"> <ul class="list-inline">
@@ -372,7 +374,7 @@
</ul> </ul>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="leftRight_1">{l s='Position:'}</label> <label class="control-label col-lg-3" for="leftRight_1">{l s='Position:'}</label>
<div class="col-lg-5"> <div class="col-lg-5">
<p class="checkbox"> <p class="checkbox">
@@ -385,7 +387,7 @@
</p> </p>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="imageTypes_0">{l s='Select the type of picture:'}</label> <label class="control-label col-lg-3" for="imageTypes_0">{l s='Select the type of picture:'}</label>
<div class="col-lg-5"> <div class="col-lg-5">
{foreach from=$imagesTypes key=key item=type} {foreach from=$imagesTypes key=key item=type}
@@ -398,7 +400,7 @@
{/foreach} {/foreach}
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="resultImage"> <label class="control-label col-lg-3" for="resultImage">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='The tag to copy/paste into the description.'}"> title="{l s='The tag to copy/paste into the description.'}">
@@ -25,12 +25,14 @@
{foreach from=$languages item=language} {foreach from=$languages item=language}
{if $languages|count > 1} {if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang}"> <div class="translatable-field row lang-{$language.id_lang}">
<div class="col-lg-9"> <div class="col-lg-9">
{/if} {/if}
{if isset($maxchar)} {if isset($maxchar)}
<div class="input-group"> <div class="input-group">
<span id="{$input_name}_{$language.id_lang}_counter" class="input-group-addon"><span class="text-count-down">{$maxchar}</span></span> <span id="{$input_name}_{$language.id_lang}_counter" class="input-group-addon">
<span class="text-count-down">{$maxchar}</span>
</span>
{/if} {/if}
<input type="text" <input type="text"
id="{$input_name}_{$language.id_lang}" id="{$input_name}_{$language.id_lang}"
@@ -42,8 +44,8 @@
{if isset($maxchar)} data-maxchar="{$maxchar}"{/if} {if isset($maxchar)} data-maxchar="{$maxchar}"{/if}
{if isset($maxlength)} maxlength="{$maxlength}"{/if} /> {if isset($maxlength)} maxlength="{$maxlength}"{/if} />
{if isset($maxchar)} {if isset($maxchar)}
</div> </div>
{/if} {/if}
{if $languages|count > 1} {if $languages|count > 1}
</div> </div>
<div class="col-lg-2"> <div class="col-lg-2">