// Remove start_field and end_field blocks from options helper tpl

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14050 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-03-12 16:26:47 +00:00
parent 0e194d83b3
commit ffeb21db50
6 changed files with 129 additions and 137 deletions
@@ -25,7 +25,7 @@
*}
{extends file="helpers/options/options.tpl"}
{block name="start_field_block"}
{block name="field"}
{if $field['type'] == 'checkbox_table'}
<div class="margin-form" style="float: left; padding-left: 0; width: 317px; margin-top: 6px; height: 300px; overflow-y: auto;">
<table class="table" cellspacing="0">
@@ -44,18 +44,18 @@
{/foreach}
</tbody>
</table>
{elseif $field['type'] == 'textarea_newlines'}
<div class="margin-form">
<textarea name={$key} cols="{$field['cols']}" rows="{$field['rows']}">{$field['value']|replace:';':"\n"|escape:'htmlall':'UTF-8'}</textarea>
</div>
<div class="clear"></div>
<br />
{else}
<div class="margin-form">
{$smarty.block.parent}
{/if}
{/block}
{block name="end_field_block"}
{if $field['type'] == 'checkbox_table'}
<div class="clear"></div>
<br />
{block name="input"}
{if $field['type'] == 'textarea_newlines'}
<textarea name={$key} cols="{$field['cols']}" rows="{$field['rows']}">{$field['value']|replace:';':"\n"|escape:'htmlall':'UTF-8'}</textarea>
{else}
{$smarty.block.parent}
{/if}
</div>
{/block}
{/block}
@@ -25,13 +25,12 @@
*}
{extends file="helpers/options/options.tpl"}
{block name="start_field_block"}
{block name="input"}
{if $field['type'] == 'maintenance_ip'}
<div class="margin-form">
{$field['script_ip']}
<input type="text"{if isset($field['id'])} id="{$field['id']}"{/if} size="{if isset($field['size'])}{$field['size']|intval}{else} 5{/if}" name="{$key}" value="{$field['value']|escape:'htmlall':'UTF-8'|htmlentities}" />
{$field['link_remove_ip']}
{$field['script_ip']}
<input type="text"{if isset($field['id'])} id="{$field['id']}"{/if} size="{if isset($field['size'])}{$field['size']|intval}{else} 5{/if}" name="{$key}" value="{$field['value']|escape:'htmlall':'UTF-8'|htmlentities}" />
{$field['link_remove_ip']}
{else}
<div class="margin-form">
{$smarty.block.parent}
{/if}
{/block}
@@ -25,8 +25,7 @@
*}
{extends file="helpers/options/options.tpl"}
{block name="start_field_block"}
<div class="margin-form">
{block name="input"}
{if $field['type'] == 'rewriting_settings'}
{if $field['mod_rewrite']}
<label class="t" for="{$key}_on"><img src="../img/admin/enabled.gif" alt="{l s='Yes'}" title="{l s='Yes'}" /></label>
@@ -39,5 +38,7 @@
<span class="warning_mod_rewrite" style="display:block;height:15px">{l s='URL rewriting (mod_rewrite) is not active on your server. If you want to use Friendly URL you have to active this mod.'}</span>
<div class="clear"></div>
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}
@@ -25,18 +25,10 @@
*}
{extends file="helpers/options/options.tpl"}
{block name="start_field_block"}
{block name="input"}
{if $field['type'] == 'disabled'}
<div class="margin-form">
{$field['disabled']}
{$field['disabled']}
{else}
<div class="margin-form">
{$smarty.block.parent}
{/if}
{/block}
{block name="end_field_block"}
{if $field['type'] == 'checkbox_table'}
<div class="clear"></div>
<br />
{/if}
{/block}