// 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
@@ -30,31 +30,24 @@
{if $input.type == 'color'}
<div id="colorAttributeProperties" style="display:{if $colorAttributeProperties}block{else}none{/if}";>
{/if}
{if isset($input.label)}
<label>{$input.label} </label>
{/if}
{$smarty.block.parent}
{/block}
{block name="start_field_block"}
<div class="margin-form">
{if $input.name == 'current_texture'}
{block name="field_block"}
{if $input.name == 'current_texture'}
<div class="margin-form">
{if isset($imageTextureExists) && $imageTextureExists}
<img src="{$imageTexture}" alt="{l s='Texture'}" />
{else}
{l s='None'}
{/if}
{/if}
{/block}
{block name="end_field_block"}
{if $input.type == 'text' && $input.name == 'texture'}
</div>
{/if}
</div>
{if $input.name == 'name'}
{hook h="displayAttributeForm" id_attribute=$form_id}
{/if}
</div>
{else}
{$smarty.block.parent}
{/if}
{if $input.name == 'name'}
{hook h="displayAttributeForm" id_attribute=$form_id}
{/if}
{/block}
{block name="script"}
@@ -71,5 +64,4 @@
displayColorFieldsOption();
$('#id_attribute_group').change(displayColorFieldsOption);
{/block}