Files
interblue.pl/modules/pshowimporter/views/templates/helpers/config_matchxml_dbfield.tpl
2024-10-25 14:16:28 +02:00

26 lines
1.1 KiB
Smarty

<select name="matched[{$type}][{$md5}][value]" class="form-control prestashop_field">
<option value="none">{l s='skip' mod='pshowimporter'}</option>
{foreach from=$db_tables item='columns' key='tablename'}
<option disabled>
{if ($tablename == 'product')}
{l s='Product' mod='pshowimporter'}
{elseif ($tablename == 'feature')}
{l s='Feature' mod='pshowimporter'}
{elseif ($tablename == 'category')}
{l s='Category' mod='pshowimporter'}
{elseif ($tablename == 'attributegroup')}
{l s='Attribute' mod='pshowimporter'}
{elseif ($tablename == 'combination')}
{l s='Combination' mod='pshowimporter'}
{/if}
</option>
{foreach from=$columns item='desc' key='key'}
<option value='{$tablename}.{$key}'
{if isset($config['matched'][$type][$md5]['value']) && $config['matched'][$type][$md5]['value'] == $tablename|cat:"."|cat:$key}selected{/if}>
&nbsp;&nbsp;&nbsp;{$desc}
</option>
{/foreach}
{/foreach}
</select>