{extends file="layout.tpl"} {* Security *} {block name="no-return-functions" prepend} {check_auth role="CUSTOMER" login_tpl="login"} {/block} {* Body Class *} {block name="body-class"}page-account-update{/block} {* Breadcrumb *} {block name='no-return-functions' append} {$breadcrumbs = [ ['title' => {intl l="Account"}, 'url'=>{url path="/account"}], ['title' => {intl l="Update Profile"}, 'url'=>{url path="/account/update"}] ]} {/block} {block name="main-content"}

# {intl l="Update Profile"}

{hook name="account-update.top"} {form name="thelia.front.customer.profile.update"} {form_field field='success_url'} {/form_field} {form_hidden_fields} {if $form_error}
{$form_error_message}
{/if} {hook name="account-update.form-top"}
{intl l="Personal Information"}
{form_field field="title"}
{$label}{if $required} *{/if}
{if $error} {$message} {assign var="error_focus" value="true"} {elseif !$value} {assign var="error_focus" value="true"} {/if}
{/form_field} {form_field field="firstname"}
{$label}{if $required} *{/if}
{if $error } {$message} {assign var="error_focus" value="true"} {/if}
{/form_field} {form_field field="lastname"}
{$label}{if $required} *{/if}
{if $error } {$message} {assign var="error_focus" value="true"} {/if}
{/form_field} {assign var="customer_change_email" value={config key="customer_change_email"}} {form_field field="email"}
{$label}{if $required} *{/if}
{if !$customer_change_email}
{intl l="If you want to change your email, please contact us."} {intl l="Contact page"}
{/if} {if $error } {$message} {assign var="error_focus" value="true"} {/if}
{/form_field} {if {config key="customer_confirm_email"} && $customer_change_email} {form_field field="email_confirm"}
{$label}{if $required} *{/if}
{if $error } {$message} {assign var="error_focus" value="true"} {/if}
{/form_field} {/if}
{form_field field="newsletter"}
{$label} {if $error } {$message} {/if}
{/form_field} {hook name="account-update.form-bottom"}
{/form} {hook name="account-update.bottom"}
{/block} {block name="stylesheet"} {hook name="account-update.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="account-update.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="account-update.javascript-initialization"} {/block}