// Fixed tabs
This commit is contained in:
@@ -43,10 +43,14 @@
|
||||
{elseif $input.type == 'default_tab'}
|
||||
<select name="{$input.name}" id="{$input.name}">
|
||||
{foreach $input.options AS $option}
|
||||
<optgroup label="{$option.name|escape:'htmlall':'UTF-8'}"></optgroup>
|
||||
{foreach $option.children AS $children}
|
||||
<option value="{$children.id_tab}" {if $fields_value[$input.name] == $children.id_tab}selected="selected"{/if}> {$children.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
{if $option.children|@count}
|
||||
<optgroup label="{$option.name|escape:'htmlall':'UTF-8'}"></optgroup>
|
||||
{foreach $option.children AS $children}
|
||||
<option value="{$children.id_tab}" {if $fields_value[$input.name] == $children.id_tab}selected="selected"{/if}> {$children.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
{else}
|
||||
<option value="{$option.id_tab}" {if $fields_value[$input.name] == $option.id_tab}selected="selected"{/if}> {$option.name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
{else}
|
||||
|
||||
Reference in New Issue
Block a user