Files
drmaterac.pl/modules/xmlfeeds/views/templates/admin/element/fieldsSettingsBox.tpl
2025-01-06 20:47:25 +01:00

114 lines
7.1 KiB
Smarty

{*
* 2010-2023 Bl Modules.
*
* If you wish to customize this module for your needs,
* please contact the authors first for more information.
*
* It's not allowed selling, reselling or other ways to share
* this file or any other module files without author permission.
*
* @author Bl Modules
* @copyright 2010-2023 Bl Modules
* @license
*}
<div class="table_name">{$block_name|escape:'htmlall':'UTF-8'}</div>
<div class="cb"></div>
<div class="field-settings-{$blockClass|escape:'htmlall':'UTF-8'} cn_table{$scrollClass|escape:'htmlall':'UTF-8'}">
<div class="cn_top">
<div class="cn_name">
{l s='Prestashop field' mod='xmlfeeds'}
</div>
{if empty($only_checkbox)}
<div class="cn_name_xml">
{l s='XML tag name' mod='xmlfeeds'}
</div>
{/if}
{if !empty($s.feed_mode) && ($s.feed_mode == 'pub' || $s.feed_mode == 'twi') && empty($only_checkbox)}
<div class="cn_status">
{l s='Product' mod='xmlfeeds'}
</div>
<div class="cn_status" style="margin-left: 20px;">
{l s='Offer' mod='xmlfeeds'}
</div>
{else}
<div class="cn_status">
{l s='Status' mod='xmlfeeds'}
</div>
{/if}
</div>
{foreach $fields as $f}
<div class="cn_line">
<div class="cn_name">
{$f.title|escape:'htmlall':'UTF-8'}
</div>
{if empty($f.is_only_checkbox)}
{if $f.field_name == 'id_product+product'}
<div class="cn_name_xml">
<input style="width: 80px;" type="text" name="product_id_prefix" value="{if !empty($f.product_id_prefix)}{$f.product_id_prefix|escape:'htmlall':'UTF-8'}{/if}" placeholder="prefix"/>
<input style="width: 150px;" type="text" name="{$f.field_name|escape:'htmlall':'UTF-8'}" value="{$f.value|escape:'htmlall':'UTF-8'}" size="30"{if !empty($f.placeholder)} placeholder="{$f.placeholder|escape:'htmlall':'UTF-8'}"{/if}/>
</div>
{elseif $f.field_name == 'additional_reference+bl_extra'}
<div class="cn_name_xml">
<input style="width: 80px;" type="text" name="reference_prefix" value="{if !empty($f.reference_prefix)}{$f.reference_prefix|escape:'htmlall':'UTF-8'}{/if}" placeholder="prefix"/>
<input style="width: 150px;" type="text" name="{$f.field_name|escape:'htmlall':'UTF-8'}" value="{$f.value|escape:'htmlall':'UTF-8'}" size="30"{if !empty($f.placeholder)} placeholder="{$f.placeholder|escape:'htmlall':'UTF-8'}"{/if}/>
</div>
{elseif $f.field_name == 'additional_ean13_with_prefix+bl_extra'}
<div class="cn_name_xml">
<input style="width: 80px;" type="text" name="ean_prefix" value="{if !empty($f.ean_prefix)}{$f.ean_prefix|escape:'htmlall':'UTF-8'}{/if}" placeholder="prefix"/>
<input style="width: 150px;" type="text" name="{$f.field_name|escape:'htmlall':'UTF-8'}" value="{$f.value|escape:'htmlall':'UTF-8'}" size="30"{if !empty($f.placeholder)} placeholder="{$f.placeholder|escape:'htmlall':'UTF-8'}"{/if}/>
</div>
{elseif $f.field_name == 'product_categories_tree+bl_extra'}
<div class="cn_name_xml">
<input style="width: 150px;" type="text" name="{$f.field_name|escape:'htmlall':'UTF-8'}" value="{$f.value|escape:'htmlall':'UTF-8'}" size="30"{if !empty($f.placeholder)} placeholder="{$f.placeholder|escape:'htmlall':'UTF-8'}"{/if}/>
<input style="width: 80px;" type="text" name="category_tree_separator" value="{if !empty($f.category_tree_separator)}{$f.category_tree_separator|escape:'htmlall':'UTF-8'}{/if}" placeholder="separator"/>
</div>
{elseif !empty($f.isEditPriceField)}
<div class="cn_name_xml">
<input style="width: 120px;" type="text" name="{$f.field_name|escape:'htmlall':'UTF-8'}" value="{$f.value|escape:'htmlall':'UTF-8'}" size="30"{if !empty($f.placeholder)} placeholder="{$f.placeholder|escape:'htmlall':'UTF-8'}"{/if}/>
<span style="cursor: pointer; text-decoration: underline; color: #0077a4; font-size: 12px;" class="open-edit-price-action" data-pid="{$f.field_name_safe|escape:'htmlall':'UTF-8'}">
{l s='Edit price' mod='xmlfeeds'}
</span>
{if !empty($f.editPriceValue)}
<span class="edit-price-value">
{$f.editPriceActionName|escape:'htmlall':'UTF-8'}{$f.editPriceValue|escape:'htmlall':'UTF-8'}
</span>
{/if}
<div id="edit-price-box_{$f.field_name_safe|escape:'htmlall':'UTF-8'}" style="display: none;">
<select name="edit_price_type[{$f.field_name|escape:'htmlall':'UTF-8'}]" style="display: inline-block; width: 110px;">
{foreach $f.editPriceTypeList as $epId => $epVal}
<option value="{$epId|escape:'htmlall':'UTF-8'}" {if $f.editPriceType == $epId}selected{/if} >{$epVal|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
<input style="width: 90px;" type="text" name="edit_price_value[{$f.field_name|escape:'htmlall':'UTF-8'}]" placeholder="value" value="{$f.editPriceValue|escape:'htmlall':'UTF-8'}">
</div>
</div>
{else}
<div class="cn_name_xml">
<input type="text" name="{$f.field_name|escape:'htmlall':'UTF-8'}" value="{$f.value|escape:'htmlall':'UTF-8'}" size="30"{if !empty($f.placeholder)} placeholder="{$f.placeholder|escape:'htmlall':'UTF-8'}"{/if}/>
</div>
{/if}
{/if}
{if !empty($s.feed_mode) && ($s.feed_mode == 'pub' || $s.feed_mode == 'twi') && empty($only_checkbox)}
<div class="cn_status">
<label>
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id=$f.status_name name=$f.status_name status=$f.status_value}
</label>
</div>
<div class="cn_status" style="margin-left: 46px;">
<label>
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id=$f.status_name|cat:"_offer" name=$f.status_name|cat:"_offer" status=$f.field_name|in_array:$s.field_status_offers}
</label>
</div>
{else}
<div class="cn_status">
<label>
{include file="{$tpl_dir}/views/templates/admin/helper/status.tpl" id=$f.status_name name=$f.status_name status=$f.status_value}
</label>
</div>
{/if}
<div class="cb"></div>
</div>
{/foreach}
</div>
<div class="cb"></div>