{extends file="layout.tpl"} {* Body Class *} {block name="body-class"}page-login{/block} {* Breadcrumb *} {block name='no-return-functions' append} {$breadcrumbs = [ ['title' => {intl l="Login"}, 'url'=>{url path="/login"}] ]} {/block} {block name="main-content"} {* This page should not replace the current previous URL *} {set_previous_url ignore_current="1"} {hook name="login.top"}
{hook name="login.main-top"}

# {intl l="Login"}

{form name="thelia.front.customer.login"} {if {$smarty.get.validation_done}}
{intl l="Your customer account was successfully activated, you can now login."}
{else} {if $form_error}
{$form_error_message}
{/if} {/if} {form_field field='success_url'} {* the url the user is redirected to on login success *} {/form_field} {form_field field='error_message'} {* the url the user is redirected to on login success *} {/form_field} {form_hidden_fields} {hook name="login.form-top"}
{form_field field="email"}
{$label}
{if $error} {$message} {assign var="error_focus" value="true"} {elseif !$value} {assign var="error_focus" value="true"} {/if}
{/form_field}
{form_field field="account"} {intl l="Do you have an account?"} {foreach $choices as $choice}
value}} checked{/if}> {$choice->label}
{/foreach} {/form_field}
{form_field field="password"}
{$label}
{if $error} {$message} {/if}
{intl l="Forgot your Password?"}
{/form_field} {form_field field='remember_me'}
{$label}
{/form_field}
{hook name="login.form-bottom"}
{/form}
{hook name="login.main-bottom"}
{hook name="login.bottom"} {/block} {block name="stylesheet"} {hook name="login.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="login.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="login.javascript-initialization"} {/block}