diff --git a/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl index b73c3ffe0..ddd556ec4 100644 --- a/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/addresses/helpers/form/form.tpl @@ -27,12 +27,28 @@ {extends file="helpers/form/form.tpl"} {block name="label"} + {if $input.name == 'vat_number'} + {if $vat == 'is_applicable'} +
+ {else if $vat == 'management'} +
+ {else} +
+ {/if} + {else if $input.name == 'id_state'} +
+ {/if} + + {if $input.type == 'text_customer' && !isset($customer)} + + {else} + {$smarty.block.parent} + {/if} {/block} -{block name="start_field_block"} +{block name="field_block"} {if $input.type == 'text_customer'} {if isset($customer)} - @@ -71,34 +87,13 @@ } }); -
*
{/if} - {else} - {if $input.name == 'vat_number'} - {if $vat == 'is_applicable'} -
- {else if $vat == 'management'} -
- {else} -
- {/if} - {else if $input.name == 'id_state'} -
- {/if} - -
+ {else} + {$smarty.block.parent} {/if} -{/block} - -{block name="end_field_block"} - {* close div margin-form *} - {if $input.type != 'text_customer'} -
- {/if} - {* close hidden div *} {if $input.name == 'vat_number' || $input.name == 'id_state'}
{/if} diff --git a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl index 4f2af17cf..cb479207a 100644 --- a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl @@ -30,31 +30,24 @@ {if $input.type == 'color'}
{/if} - {if isset($input.label)} - - {/if} + {$smarty.block.parent} {/block} - -{block name="start_field_block"} -
- {if $input.name == 'current_texture'} +{block name="field_block"} + {if $input.name == 'current_texture'} +
{if isset($imageTextureExists) && $imageTextureExists} {l s='Texture'} {else} {l s='None'} {/if} - {/if} -{/block} - -{block name="end_field_block"} - {if $input.type == 'text' && $input.name == 'texture'} -
- {/if} -
- {if $input.name == 'name'} - {hook h="displayAttributeForm" id_attribute=$form_id} - {/if} +
+ {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} diff --git a/admin-dev/themes/default/template/controllers/cms/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/cms/helpers/form/form.tpl index e518b11ea..f7850e858 100644 --- a/admin-dev/themes/default/template/controllers/cms/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/cms/helpers/form/form.tpl @@ -66,12 +66,13 @@
{/block} -{block name="start_field_block"} -
+{block name="input_block"} {if $input.type == 'select_category'} + {else} + {$smarty.block.parent} {/if} {/block} diff --git a/admin-dev/themes/default/template/controllers/cms_categories/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/cms_categories/helpers/form/form.tpl index b13bd9d98..44338b070 100644 --- a/admin-dev/themes/default/template/controllers/cms_categories/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/cms_categories/helpers/form/form.tpl @@ -26,12 +26,13 @@ {extends file="helpers/form/form.tpl"} -{block name="start_field_block"} -
+{block name="input_block"} {if $input.type == 'select_category'} + {else} + {$smarty.block.parent} {/if} {/block} diff --git a/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl index 5258a3787..397cb965e 100644 --- a/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl @@ -25,9 +25,9 @@ *} {extends file="helpers/form/form.tpl"} -{block name="start_field_block"} -
- {if $input.type == 'address_layout'} +{block name="field_block"} + {if $input.type == 'address_layout'} +
@@ -46,7 +46,10 @@ {l s='Clean layout'}
- {/if} +
+ {else} + {$smarty.block.parent} + {/if} {/block} {block name=script} diff --git a/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl index 481316424..a6e863bd4 100644 --- a/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl @@ -25,8 +25,7 @@ *} {extends file="helpers/form/form.tpl"} -{block name="start_field_block"} -
+{block name="input_block"} {if $input.type == 'select_theme'} - {if isset($input.hint)}{$input.hint} {/if} + {else} + {$smarty.block.parent} {/if} {/block} diff --git a/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl index 3fe9a236d..c5c24c0e8 100644 --- a/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl @@ -43,7 +43,7 @@ {/block} -{block name="start_field_block"} +{block name="field_block"} {if $input['type'] == 'group_discount_category'}
- {/literal} - {/if} - {assign var='value_text' value=$fields_value[$input.name][$language.id_lang]} - - {if isset($input.hint)}{$input.hint} {/if} -
- {/foreach} -
- {else} - {if $input.type == 'tags'} - {literal} - - {/literal} - {/if} - {assign var='value_text' value=$fields_value[$input.name]} - - {if isset($input.suffix)}{$input.suffix}{/if} - {if isset($input.hint)}{$input.hint} {/if} - {/if} - {elseif $input.type == 'select'} - {if isset($input.options.query) && !$input.options.query && isset($input.empty_message)} - {$input.empty_message} - {$input.required = false} - {$input.desc = null} - {else} - + {if isset($input.hint)}{$input.hint} {/if} +
+ {/foreach} +
+ {else} + {if $input.type == 'tags'} + {literal} + + {/literal} {/if} - {if isset($input.options.optiongroup)} - {foreach $input.options.optiongroup.query AS $optiongroup} - - {foreach $optiongroup[$input.options.options.query] as $option} -
+
+ {/block} + {if $input.name == 'id_state'} +
{/if} - {if isset($input.required) && $input.required && $input.type != 'radio'} *{/if} - {if isset($input.desc)} -

- {if is_array($input.desc)} - {foreach $input.desc as $p} - {if is_array($p)} - {$p.text}
- {else} - {$p}
- {/if} - {/foreach} - {else} - {$input.desc} - {/if} -

- {/if} - {if isset($input.lang) && isset($languages)}
{/if} - {block name="end_field_block"} -
-
{/block} {/if} - {if $input.name == 'id_state'} -
- {/if} {/foreach} {hook h='displayAdminForm'} {if isset($name_controller)}