// Refactoring helper forms with new blocks

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13937 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-03-07 16:34:25 +00:00
parent dde5fbb33e
commit 93a7ded19e
9 changed files with 339 additions and 342 deletions
@@ -25,8 +25,7 @@
*}
{extends file="helpers/form/form.tpl"}
{block name="start_field_block"}
<div class="margin-form">
{block name="input_block"}
{if $input.type == 'select_theme'}
<select name="{$input.name}" id="{$input.name}" {if isset($input.multiple)}multiple="multiple" {/if}{if isset($input.onchange)}onchange="{$input.onchange}"{/if}>
{foreach $input.options.query AS $option}
@@ -42,7 +41,8 @@
>{$option|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
{if isset($input.hint)}<span class="hint" name="help_box">{$input.hint}<span class="hint-pointer">&nbsp;</span></span>{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}