// login flip WIP

This commit is contained in:
Kevin Granger
2013-10-14 09:57:02 +02:00
parent 80c8605264
commit 59435fa2ee
5 changed files with 201 additions and 116 deletions
@@ -31,124 +31,132 @@
<div id="container">
<div class="row">
<div id="login" class="col-md-4 col-md-offset-4 panel">
<h1 class="text-center">
<img width="40px" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNjEycHgiIGhlaWdodD0iNzkycHgiIHZpZXdCb3g9IjAgMCA2MTIgNzkyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA2MTIgNzkyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBkPSJNMjA0LDg2Yy0zNiwyMy00Nyw2MS00MiwxMjBsLTI3LDNDMTMxLDE0NywxNjEsOTgsMjA0LDg2eiBNMjQ1LDc4YzY0LDgsMTAwLDM1LDExNSwxMDVsLTE2OSwyMEMxODUsMTQwLDE5OSwxMDUsMjQ1LDc4eg0KCSBNMjgwLDY0YzcyLDAsMTIwLDI1LDEzNSwxMTJsLTI3LDNDMzc1LDExMiwzNDEsNzYsMjgwLDY0eiBNNDQyLDE3NEM0MjksNTQsMzE0LDE5LDI0MCw1NmMtODMtMi0xNDAsNzMtMTMzLDE1N2wtOTYsMTBsNTgsNTUwDQoJbDI2MS0yNmMtNDctNTMtMTAwLTEzMy0xMjQtMTUyYy0yNy0yMy0zMC0zMS0yMy00NWMxMi0xNCwyNC0xMiw0NSw0bDQ4LDM3bDcsMzZsMTQtMWwtMzctMjMxYy00LTI0LDEtMzUsMTktNDBjMTgtMiwyNyw3LDMxLDM0DQoJbDIzLDE0MWwxOC0yYy03LTUwLTMtNTcsMTctNjJjMTktMywyOCwxMCwzNSw2NGwxNy0xYy01LTUwLTEtNTcsMTktNjBjMjItMSwyNSwxMiwzMiw2NWwxNiwyYy00LTQwLTQtNTEsMTgtNTNjMjEsMCwyNSwxNCwzMSw1OA0KCWMxNSwxMDAsMTMsMTU0LTYsMTgzbDcyLTdsLTU4LTU1NUw0NDIsMTc0eiIvPg0KPC9zdmc+DQo="/>
PRESTASHOP
</h1>
<h4 class="text-center">{$shop_name}</h4>
<hr/>
<div id="error" class="hide alert alert-danger">
{if isset($errors)}
<h4>
{if $nbErrors > 1}
{l s='There are %d errors.' sprintf=$nbErrors}
{else}{l s='There is %d error.' sprintf=$nbErrors}
<div id="login" class="flip-container col-md-4 col-md-offset-4 panel">
<div class="flipper">
<div class="front">
<h1 class="text-center">
<img width="40px" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR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U4LTU1NUw0NDIsMTc0eiIvPg0KPC9zdmc+DQo="/>
PRESTASHOP
</h1>
<h4 class="text-center">{$shop_name}</h4>
<hr/>
<div id="error" class="hide alert alert-danger">
{if isset($errors)}
<h4>
{if $nbErrors > 1}
{l s='There are %d errors.' sprintf=$nbErrors}
{else}{l s='There is %d error.' sprintf=$nbErrors}
{/if}
</h4>
<ol>
{foreach from=$errors item="error"}
<li>{$error}</li>
{/foreach}
</ol>
{/if}
</div>
{if isset($warningSslMessage)}
<div class="alert alert-warning">{$warningSslMessage}</div>
{/if}
</h4>
<ol>
{foreach from=$errors item="error"}
<li>{$error}</li>
{/foreach}
</ol>
{/if}
{if !isset($wrong_folder_name) && !isset($wrong_install_name)}
<form action="#" id="login_form" method="post">
<div class="form-group">
<label class="control-label" for="email">{l s='Email address'}</label>
<div class="input-group">
<span class="input-group-addon"><i class="icon-envelope"></i></span>
<input
name="email"
type="text"
id="email"
class="form-control"
value="{if isset($email)}{$email|escape:'htmlall':'UTF-8'}{/if}"
autofocus="autofocus"
tabindex="1"
placeholder="test@example.com" />
</div>
</div>
<div class="form-group">
<a href="#" class="show-forgot-password pull-right" >
{l s='Lost password'}&hellip;
</a>
<label class="control-label" for="passwd">
{l s='Password'}
</label>
<div class="input-group">
<span class="input-group-addon"><i class="icon-key"></i></span>
<input
name="passwd"
type="password"
id="passwd"
class="form-control"
value="{if isset($password)}{$password}{/if}"
tabindex="2"
placeholder="{l s='Password'}" />
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label for="stay_logged_in">
<input name="stay_logged_in" type="checkbox" id="stay_logged_in" value="1" tabindex="3"/>
{l s='Keep me logged in'}
</label>
</div>
</div>
<hr/>
<div class="form-group">
<button name="submitLogin" type="submit" tabindex="4" class="btn btn-default btn-lg btn-block ladda-button" data-style="slide-up" data-spinner-color="black" >
<span class="ladda-label">
<i class="icon-ok text-success"></i>
{l s='Log in'}
</span>
</button>
</div>
<input type="hidden" name="redirect" id="redirect" value="{$redirect}"/>
</form>
</div>
<div class="back">
<form action="#" id="forgot_password_form" method="post" class="hide">
<div class="alert alert-info">
<h4 class="text-center">
<i class="icon-exclamation-sign"></i>
{l s='Forgot your password?'}
</h4>
<p>{l s='In order to receive your access code by email, please enter the address you provided during the registration process.'}</p>
</div>
<div class="form-group">
<label class="control-label" for="email_forgot">
{l s='Email address'}
</label>
<div class="input-group">
<span class="input-group-addon"><i class="icon-envelope"></i></span>
<input
type="text"
name="email_forgot"
id="email_forgot"
class="form-control"
autofocus="autofocus"
tabindex="1"
placeholder="test@example.com" />
</div>
</div>
<hr/>
<div class="form-group">
<button href="#" class="btn btn-default show-login-form" tabindex="3">
<i class="icon-caret-left text-danger"></i>
{l s='Back to login'}
</button>
<button class="btn btn-default pull-right" name="submitLogin" type="submit" tabindex="2">
<i class="icon-ok text-success"></i>
{l s='Send'}
</button>
</div>
</form>
</div>
</div>
{if isset($warningSslMessage)}
<div class="alert alert-warning">{$warningSslMessage}</div>
{/if}
{if !isset($wrong_folder_name) && !isset($wrong_install_name)}
<form action="#" id="login_form" method="post">
<div class="form-group">
<label class="control-label" for="email">{l s='Email address'}</label>
<div class="input-group">
<span class="input-group-addon"><i class="icon-envelope"></i></span>
<input
name="email"
type="text"
id="email"
class="form-control"
value="{if isset($email)}{$email|escape:'htmlall':'UTF-8'}{/if}"
autofocus="autofocus"
tabindex="1"
placeholder="test@example.com" />
</div>
</div>
<div class="form-group">
<a href="#" class="show-forgot-password pull-right" >
{l s='Lost password'}&hellip;
</a>
<label class="control-label" for="passwd">
{l s='Password'}
</label>
<div class="input-group">
<span class="input-group-addon"><i class="icon-key"></i></span>
<input
name="passwd"
type="password"
id="passwd"
class="form-control"
value="{if isset($password)}{$password}{/if}"
tabindex="2"
placeholder="{l s='Password'}" />
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label for="stay_logged_in">
<input name="stay_logged_in" type="checkbox" id="stay_logged_in" value="1" tabindex="3"/>
{l s='Keep me logged in'}
</label>
</div>
</div>
<hr/>
<div class="form-group">
<button name="submitLogin" type="submit" tabindex="4" class="btn btn-default btn-lg btn-block ladda-button" data-style="slide-up" data-spinner-color="black" >
<span class="ladda-label">
<i class="icon-ok text-success"></i>
{l s='Log in'}
</span>
</button>
</div>
<input type="hidden" name="redirect" id="redirect" value="{$redirect}"/>
</form>
<form action="#" id="forgot_password_form" method="post" class="hide">
<div class="alert alert-info">
<h4 class="text-center">
<i class="icon-exclamation-sign"></i>
{l s='Forgot your password?'}
</h4>
<p>{l s='In order to receive your access code by email, please enter the address you provided during the registration process.'}</p>
</div>
<div class="form-group">
<label class="control-label" for="email_forgot">
{l s='Email address'}
</label>
<div class="input-group">
<span class="input-group-addon"><i class="icon-envelope"></i></span>
<input
type="text"
name="email_forgot"
id="email_forgot"
class="form-control"
autofocus="autofocus"
tabindex="1"
placeholder="test@example.com" />
</div>
</div>
<hr/>
<div class="form-group">
<button href="#" class="btn btn-default show-login-form" tabindex="3">
<i class="icon-caret-left text-danger"></i>
{l s='Back to login'}
</button>
<button class="btn btn-default pull-right" name="submitLogin" type="submit" tabindex="2">
<i class="icon-ok text-success"></i>
{l s='Send'}
</button>
</div>
</form>
{else}
<div class="col-lg-12">
<p>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}</p>
@@ -167,6 +175,7 @@
</p>
</div>
{/if}
</div>
<div class="col-md-4 col-md-offset-4">