diff --git a/admin-dev/themes/template/customers/form.tpl b/admin-dev/themes/template/customers/form.tpl deleted file mode 100644 index 1a86eafc9..000000000 --- a/admin-dev/themes/template/customers/form.tpl +++ /dev/null @@ -1,330 +0,0 @@ -{* -* 2007-2011 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 8971 $ -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - -{if $firstCall} - - -{/if} - -{if $show_toolbar} - {include file="toolbar.tpl" toolbar_btn=$toolbar_btn} -{/if} -{if isset($fields.title)}

{$fields.title}

{/if} -
- {if $form_id} - - {/if} -
- {foreach $fields as $key => $field} - {if $key == 'legend'} - - {if isset($field.image)}{$field.title}{/if} - {$field.title} - - {elseif $key == 'input'} - {foreach $field as $input} - {if $input.name == 'id_state'} -
- {/if} - {block name="label"} - {if isset($input.label)} - - {/if} - {/block} - {if $input.type == 'hidden'} - - {else} - {block name="start_field_block"} -
- {/block} - {if $input.type == 'text'} - {if isset($input.lang)} -
- {foreach $languages as $language} -
- - {if isset($input.hint)}{$input.hint} {/if} -
- {/foreach} -
- {else} - - {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.p = null} - {else} - - {if isset($input.hint)}{$input.hint} {/if} - {/if} - {elseif $input.type == 'radio'} - {foreach $input.values as $value} - - - {if isset($input.br) && $input.br}
{/if} - {/foreach} - {elseif $input.type == 'textarea'} - {if isset($input.lang)} -
- {foreach $languages as $language} -
- -
- {/foreach} -
- {else} - - {/if} - {elseif $input.type == 'checkbox'} - {foreach $input.values.query as $value} - {assign var=id_checkbox value=$input.name|cat:'_'|cat:$value[$input.values.id]} - -
- {/foreach} - {elseif $input.type == 'file'} - {if isset($input.display_image) && $input.display_image} - {if isset($fields_value.image) && $fields_value.image} -
- {$fields_value.image} -

{l s='File size'} {$fields_value.size}kb

- - {l s='Delete'} {l s='Delete'} - -

- {/if} - {/if} - - {elseif $input.type == 'password'} - - {elseif $input.type == 'birthday'} - {foreach $input.options as $key => $select} - - {/foreach} - {elseif $input.type == 'group'} - {assign var=groups value=$input.values} - {include file='helper/form/form_group.tpl'} - {elseif $input.type == 'shop' OR $input.type == 'group_shop'} - {include file='helper/form/form_shop.tpl'} - {elseif $input.type == 'asso_shop' && isset($asso_shop) && $asso_shop} - -
- {$asso_shop} -
- {elseif $input.type == 'color'} - - - {elseif $input.type == 'date'} - - - {/if} - {if isset($input.required) && $input.required} *{/if} - {if isset($input.p)} -

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

- {/if} - {if isset($languages)}
{/if} - {block name="end_field_block"}
{/block} - {/if} - {if $input.name == 'id_state'} -
- {/if} - {/foreach} - {elseif $key == 'submit'} -
- -
- {/if} - {/foreach} - {if $required_fields} -
* {l s ='Required field'}
- {/if} - {if isset($fields.tinymce) && $fields.tinymce} - - - - {/if} -
-
- -

-{if $firstCall && !$no_back} - {if $back} - {l s='Back'} - {else} - {l s='Back to list'} - {/if} -
-{/if} diff --git a/classes/HelperForm.php b/classes/HelperForm.php index 168b2996b..615d8274f 100644 --- a/classes/HelperForm.php +++ b/classes/HelperForm.php @@ -80,6 +80,7 @@ class HelperFormCore extends Helper $this->tpl->assign(array( 'submit_action' => $this->submit_action, 'toolbar_btn' => $this->toolbar_btn, + 'title' => $this->title, 'firstCall' => $this->first_call, 'current' => $this->currentIndex, 'token' => $this->token,