{*
* 2007-2022 ETS-Soft
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs, please contact us for extra customization service at an affordable price
*
*  @author ETS-Soft <etssoft.jsc@gmail.com>
*  @copyright  2007-2022 ETS-Soft
*  @license    Valid for 1 website (or project) for each purchase of license
*  International Registered Trademark & Property of ETS-Soft
*}
<td>
	<svg class="ets_hd_arrow_move h_14 w_14" width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"/></svg>

</td>
<td class="left">
	<div class="">
		{if isset($fields) && is_array($fields) && count($fields) > 0}
			{foreach from=$fields item='input'}
				<div class="form-group">
					{if isset($input.label) && $input.type!='hidden'}
						<label for class="control-label col-lg-3{if isset($input.required) && $input.required && $input.type != 'radio'} required{/if}">
							{$input.label|escape:'html':'UTF-8'}
						</label>
					{/if}
					<div class="col-lg-9">
						{if $input.type=='hidden' && $input.name != 'default'}
							<input name="option[{$id|escape:'quotes':'UTF-8'}][{$input.name|escape:'html':'UTF-8'}]" type="hidden" value="{if isset($fields_value[$input.name])}{$fields_value[$input.name]|escape:'html':'UTF-8'}{else}0{/if}"/>
						{elseif $input.type == 'text'}
							{if isset($input.lang) AND $input.lang}
								{if $languages|count > 1}
									<div class="form-group">
								{/if}
								{foreach $languages as $language}
									{assign var='value_text' value="{if isset($fields_value[$input.name])}{$fields_value[$input.name][$language.id_lang] nofilter}{/if}"}
									{if $languages|count > 1}
										<div class="translatable-field lang-{$language.id_lang|intval}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
										<div class="col-lg-9">
									{/if}
									<input type="text"
										   name="option[{$id|escape:'quotes':'UTF-8'}][{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}]"
										   class="{if isset($input.class)}{$input.class|escape:'html':'UTF-8'}{/if}"
										   maxlength="255"
                                           value="{$value_text|escape:'html':'UTF-8'}"
										   onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
											{if isset($input.required) && $input.required} required="required" {/if}
											{if isset($input.placeholder) && $input.placeholder} placeholder="{$input.placeholder|escape:'html':'UTF-8'}"{/if}
									/>
									{*if isset($input.size) && $input.size}
										<p class="help-block help-block-character"><span class="ets_hd_number_of_character" data-lang="{$language.id_lang|intval}" data-size="{$input.size|intval}">{$value_text|strlen|intval}</span>/{$input.size|escape:'html':'UTF-8'}</p>
									{/if*}
									{if $languages|count > 1}
										</div>
										<div class="col-lg-2">
											<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">{$language.iso_code|escape:'html':'UTF-8'}<i class="ets_icon">
													<svg class="w_14 h_14" width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1408 704q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45z"/></svg>
												</i></button>
											<ul class="dropdown-menu">
												{foreach from=$languages item=language}
													<li><a href="javascript:hideOtherLanguage({$language.id_lang|intval});" tabindex="-1">{$language.name|escape:'html':'UTF-8'}</a></li>
												{/foreach}
											</ul>
										</div>
										</div>
									{/if}
								{/foreach}
								{if $languages|count > 1}
									</div>
								{/if}
							{else}
								{assign var='value_text' value="{if isset($fields_value[$input.name])}{$fields_value[$input.name] nofilter}{/if}"}
								<input type="text"
									   name="option[{$id|escape:'quotes':'UTF-8'}][{$input.name|escape:'html':'UTF-8'}]"
									   value="{$value_text|escape:'html':'UTF-8'}"
                                       maxlength="255"
									   class="{if isset($input.class)}{$input.class|escape:'html':'UTF-8'}{/if}"
										{if isset($input.required) && $input.required } required="required" {/if}
										{if isset($input.placeholder) && $input.placeholder } placeholder="{$input.placeholder|escape:'html':'UTF-8'}"{/if}
								/>
							{/if}
						{/if}
					</div>
				</div>
			{/foreach}
		{/if}
	</div>
</td>
<td class="center ets_hd_radio_checkbox">
	<input type="{if $type|trim == 'checkbox'}checkbox{else}radio{/if}" name="option[{$id|escape:'quotes':'UTF-8'}][default]" value="1" {if isset($fields_value['default']) && $fields_value['default']} checked{/if} tabindex="-1"/>
</td>
<td class="text-right">
	<div class="btn-group pull-right">
		<span class="ets_hd_delete_option">
			<i class="ets_svg_fill_gray lh_18">
				<svg class="w_16 h_16" width="16" height="16" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M704 736v576q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-576q0-14 9-23t23-9h64q14 0 23 9t9 23zm256 0v576q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-576q0-14 9-23t23-9h64q14 0 23 9t9 23zm256 0v576q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-576q0-14 9-23t23-9h64q14 0 23 9t9 23zm128 724v-948h-896v948q0 22 7 40.5t14.5 27 10.5 8.5h832q3 0 10.5-8.5t14.5-27 7-40.5zm-672-1076h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/></svg>
			</i>
		</span>
	</div>
</td>
