[+] BO : Products tab fieldset

This commit is contained in:
Jerome Nadaud committed 2013-08-19 13:30:18 +02:00
1 parent 21d5322e16
commit 4a2e545bc4
4 files changed
+47 -42

No files matched your search

@@ -22,9 +22,9 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
<fieldset>
<input type="hidden" name="submitted_tabs[]" value="Associations" /> <input type="hidden" name="submitted_tabs[]" value="Associations" />
<div class="Associations"> <div class="Associations">
<h3>{l s='Associations'}</h3> <h3>{l s='Associations'}</h3>
@@ -113,4 +113,5 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</fieldset>
@@ -22,16 +22,16 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
<fieldset>
<script type="text/javascript"> <script type="text/javascript">
var msg_combination_1 = '{l s='Please choose an attribute.'}'; var msg_combination_1 = '{l s='Please choose an attribute.'}';
var msg_combination_2 = '{l s='Please choose a value.'}'; var msg_combination_2 = '{l s='Please choose a value.'}';
var msg_combination_3 = '{l s='You can only add one combination per attribute type.'}'; var msg_combination_3 = '{l s='You can only add one combination per attribute type.'}';
var msg_new_combination = '{l s='New combination'}'; var msg_new_combination = '{l s='New combination'}';
var msg_cancel_combination = '{l s='Cancel combination'}'; var msg_cancel_combination = '{l s='Cancel combination'}';
</script> </script>
{if isset($product->id) && !$product->is_virtual} {if isset($product->id) && !$product->is_virtual}
<input type="hidden" name="submitted_tabs[]" value="Combinations" /> <input type="hidden" name="submitted_tabs[]" value="Combinations" />
<script type="text/javascript"> <script type="text/javascript">
var attrs = new Array(); var attrs = new Array();
@@ -64,7 +64,7 @@
{/if} {/if}
<div id="add_new_combination" class="panel" style="display: none;"> <div id="add_new_combination" class="panel" style="display: none;">
<div class="panel-heading">{l s='Add or modify combinations for this product.'}</div> <div class="panel-heading">{l s='Add or modify combinations for this product.'}</div>
@@ -378,8 +378,9 @@
</button> </button>
</span> </span>
</div> </div>
</div> </div>
{$list} {$list}
{/if} {/if}
</fieldset>
@@ -22,12 +22,13 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
<input type="hidden" name="submitted_tabs[]" value="Seo" /> <fieldset>
<h3>{l s='SEO'}</h3> <input type="hidden" name="submitted_tabs[]" value="Seo" />
<h3>{l s='SEO'}</h3>
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Seo"} {include file="controllers/products/multishop/check_fields.tpl" product_tab="Seo"}
<div class="row"> <div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="meta_title" type="default" multilang="true"} {include file="controllers/products/multishop/checkbox.tpl" field="meta_title" type="default" multilang="true"}
<label class="control-label col-lg-3" for="meta_title_{$id_lang}"> <label class="control-label col-lg-3" for="meta_title_{$id_lang}">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
@@ -43,9 +44,9 @@
input_value=$product->meta_title} input_value=$product->meta_title}
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="meta_description" type="default" multilang="true"} {include file="controllers/products/multishop/checkbox.tpl" field="meta_description" type="default" multilang="true"}
<label class="control-label col-lg-3" for="meta_description_{$id_lang}"> <label class="control-label col-lg-3" for="meta_description_{$id_lang}">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
@@ -62,9 +63,9 @@
} }
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="meta_keywords" type="default" multilang="true"} {include file="controllers/products/multishop/checkbox.tpl" field="meta_keywords" type="default" multilang="true"}
<label class="control-label col-lg-3" for="meta_keywords_{$id_lang}"> <label class="control-label col-lg-3" for="meta_keywords_{$id_lang}">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
@@ -79,9 +80,9 @@
input_name='meta_keywords'} input_name='meta_keywords'}
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
{include file="controllers/products/multishop/checkbox.tpl" field="link_rewrite" type="default" multilang="true"} {include file="controllers/products/multishop/checkbox.tpl" field="link_rewrite" type="default" multilang="true"}
<label class="control-label col-lg-3" for="link_rewrite_{$id_lang}"> <label class="control-label col-lg-3" for="link_rewrite_{$id_lang}">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
@@ -105,13 +106,14 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-lg-9 col-offset-3"> <div class="col-lg-9 col-offset-3">
<div class="alert alert-block"> <div class="alert alert-block">
<i class="icon-link"></i> {l s='The product link will look like this:'} <i class="icon-link"></i> {l s='The product link will look like this:'}
{$curent_shop_url|escape:'htmlall':'UTF-8'}lang/{if isset($product->id)}{$product->id}{else}<b>id_product</b>{/if}-<span id="friendly-url">{$product->link_rewrite[$default_language]}</span>.html {$curent_shop_url|escape:'htmlall':'UTF-8'}lang/{if isset($product->id)}{$product->id}{else}<b>id_product</b>{/if}-<span id="friendly-url">{$product->link_rewrite[$default_language]}</span>.html
</div> </div>
</div> </div>
</div> </div>
</fieldset>
@@ -22,51 +22,51 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
<fieldset>
<input type="hidden" name="submitted_tabs[]" value="Shipping" />
<h3>{l s='Shipping'}</h3>
<input type="hidden" name="submitted_tabs[]" value="Shipping" /> {if isset($display_common_field) && $display_common_field}
<h3>{l s='Shipping'}</h3>
{if isset($display_common_field) && $display_common_field}
<div class="alert alert-info">{l s='Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product' sprintf=$bullet_common_field}</div> <div class="alert alert-info">{l s='Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product' sprintf=$bullet_common_field}</div>
{/if} {/if}
<div class="row"> <div class="row">
<label class="control-label col-lg-5" for="width">{l s='Width (package):'}</label> <label class="control-label col-lg-5" for="width">{l s='Width (package):'}</label>
<div class="input-group col-lg-2"> <div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_dimension_unit}</span> <span class="input-group-addon">{$ps_dimension_unit}</span>
<input maxlength="6" id="width" name="width" type="text" value="{$product->width}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" /> <input maxlength="6" id="width" name="width" type="text" value="{$product->width}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{$bullet_common_field} {$bullet_common_field}
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<label class="control-label col-lg-5" for="height">{l s='Height (package):'}</label> <label class="control-label col-lg-5" for="height">{l s='Height (package):'}</label>
<div class="input-group col-lg-2"> <div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_dimension_unit}</span> <span class="input-group-addon">{$ps_dimension_unit}</span>
<input maxlength="6" id="height" name="height" type="text" value="{$product->height}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" /> <input maxlength="6" id="height" name="height" type="text" value="{$product->height}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{$bullet_common_field} {$bullet_common_field}
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<label class="control-label col-lg-5" for="depth">{l s='Depth (package):'}</label> <label class="control-label col-lg-5" for="depth">{l s='Depth (package):'}</label>
<div class="input-group col-lg-2"> <div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_dimension_unit}</span> <span class="input-group-addon">{$ps_dimension_unit}</span>
<input maxlength="6" id="depth" name="depth" type="text" value="{$product->depth}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" /> <input maxlength="6" id="depth" name="depth" type="text" value="{$product->depth}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{$bullet_common_field} {$bullet_common_field}
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<label class="control-label col-lg-5" for="weight">{l s='Weight (package):'}</label> <label class="control-label col-lg-5" for="weight">{l s='Weight (package):'}</label>
<div class="input-group col-lg-2"> <div class="input-group col-lg-2">
<span class="input-group-addon">{$ps_weight_unit}</span> <span class="input-group-addon">{$ps_weight_unit}</span>
<input maxlength="6" id="weight" name="weight" type="text" value="{$product->weight}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" /> <input maxlength="6" id="weight" name="weight" type="text" value="{$product->weight}" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
{$bullet_common_field} {$bullet_common_field}
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<label class="control-label col-lg-5" for="additional_shipping_cost"> <label class="control-label col-lg-5" for="additional_shipping_cost">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='A carrier tax will be applied.'}"> title="{l s='A carrier tax will be applied.'}">
@@ -78,9 +78,9 @@
<span class="input-group-addon">{$currency->prefix}{$currency->suffix} {if $country_display_tax_label}({l s='tax excl.'}){/if}</span> <span class="input-group-addon">{$currency->prefix}{$currency->suffix} {if $country_display_tax_label}({l s='tax excl.'}){/if}</span>
<input type="text" id="additional_shipping_cost" name="additional_shipping_cost" onchange="this.value = this.value.replace(/,/g, '.');" value="{$product->additional_shipping_cost|htmlentities}" /> <input type="text" id="additional_shipping_cost" name="additional_shipping_cost" onchange="this.value = this.value.replace(/,/g, '.');" value="{$product->additional_shipping_cost|htmlentities}" />
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<label class="control-label col-lg-5" for="availableCarriers">{l s='Carriers:'}</label> <label class="control-label col-lg-5" for="availableCarriers">{l s='Carriers:'}</label>
<div class="input-group col-lg-7"> <div class="input-group col-lg-7">
<div class="row"> <div class="row">
@@ -108,4 +108,5 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</fieldset>