Skip to content

Instantly share code, notes, and snippets.

@EdEichman

EdEichman/password.tpl

Last active Nov 10, 2015
Embed
What would you like to do?
{capture name=path}<a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" title="{l s='Authentication'}" rel="nofollow">{l s='Authentication'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Forgot your password'}{/capture}
{if isset($change_password)}
<h1 class="page-heading">{l s='Create a new password'}</h1>
{elseif isset($password_changed)}
<h1 class="page-heading">{l s='Password Change'}</h1>
{else}
<h1 class="page-heading">{l s='Forgot your password?'}</h1>
{/if}
{include file="$tpl_dir./errors.tpl"}
{if isset($confirmation) && $confirmation == 1}
<p class="alert alert-success">{l s='Your password has been successfully reset and a confirmation has been sent to your email address:'} {if isset($customer_email)}{$customer_email|escape:'html':'UTF-8'|stripslashes}{/if}</p>
{elseif isset($confirmation) && $confirmation == 2}
<p class="alert alert-success">{l s='A confirmation email has been sent to your address:'} {if isset($customer_email)}{$customer_email|escape:'html':'UTF-8'|stripslashes}{/if}</p>
{elseif isset($password_changed)}
<p class="alert alert-success">{l s='Password changed correctly.'} </p>
{elseif isset($change_password)}
<div class="clearfix">
<form action="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" method="post" class="box col-xs-12 col-sm-8 col-md-4" id="form_forgotpassword">
<fieldset>
<div class="form-group">
<label for="new_passwd">{l s='New Password'}</label>
<input class="form-control" type="password" id="new_passwd" name="new_passwd" data-validate="isPasswd" />
</div>
<div class="form-group">
<label for="new_passwd_confirm">{l s='Confirm New Password'}</label>
<input class="form-control" type="password" id="new_passwd_confirm" name="new_passwd_confirm" data-validate="isPasswd" />
</div>
<p class="submit">
<button type="submit" class="btn-secondary"><span>{l s='Change Password'}<i class="icon-chevron-right right"></i></span></button>
</p>
</fieldset>
{if isset($id_customer)}<input type="hidden" name="id_customer" value="{$id_customer|intval}" />{/if}
</form>
</div>
{else}
<p>{l s='Please enter the email address you used to register. We will then send you a new password. '}</p>
<div class="clearfix">
<form action="{$request_uri|escape:'html':'UTF-8'}" method="post" class="box col-xs-12 col-sm-8 col-md-4" id="form_forgotpassword">
<fieldset>
<div class="form-group">
<label for="email">{l s='Email address'}</label>
<input class="form-control" type="email" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'|stripslashes}{/if}" />
</div>
<p class="submit">
<button type="submit" class="btn-secondary"><span>{l s='Retrieve Password'}<i class="icon-chevron-right right"></i></span></button>
</p>
</fieldset>
</form>
</div>
<p>{l s='If you have forgotten your email address, or cannot enter into your email account, please contact customer support.'}</p>
{/if}
<ul class="clearfix footer_links">
<li><a class="btn-link" href="{$link->getPageLink('authentication')|escape:'html':'UTF-8'}" title="{l s='Back to Login'}" rel="nofollow"><span><i class="icon-chevron-left"></i>{l s='Back to Login'}</span></a></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment