Pin flow
This commit is contained in:
parent
d045fc719e
commit
0c0e11aad3
3 changed files with 182 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<div class="home" ng-controller="HomeController">
|
||||
<div class="home" ng-controller="HomeController" ng-init="init()">
|
||||
|
||||
<div class="loading-screen" ng-show="$root.starting">
|
||||
<div class="spinner">
|
||||
|
|
@ -47,9 +47,72 @@
|
|||
<a class="text-white" href="#!/createProfile">creating your profile</a>
|
||||
</div>
|
||||
|
||||
<div class="box-setup">
|
||||
<div class="box-setup" ng-if='setPin'>
|
||||
<h1><span translate>Set your </span> <b> PIN number</b></h1>
|
||||
<form name="setPinForm" ng-submit="createPin(setPinForm)" novalidate>
|
||||
<div class="input">
|
||||
<input id="setpin" type="tel" ng-model="setpin" class="form-control"
|
||||
ng-maxlength="4" ng-minlength="4" maxlength="4"
|
||||
placeholder="Pin number" name="setpin" required auto-focus>
|
||||
<i class="icon-locked"></i>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input id="repeatpin" type="tel" ng-model="repeatpin" class="form-control"
|
||||
ng-maxlength="4" ng-minlength="4" maxlength="4"
|
||||
placeholder="Repeat pin number" name="repeatpin"
|
||||
match="setpin" required>
|
||||
<i class="icon-locked"></i>
|
||||
</div>
|
||||
|
||||
<p class="text-warning size-12" ng-show="setPinForm.repeatpin.$dirty && setPinForm.repeatpin.$invalid">
|
||||
<i class="fi-x"></i>
|
||||
{{'Pin must match'|translate}}
|
||||
</p>
|
||||
|
||||
<button translate type="submit" class="button primary radius expand m0"
|
||||
ng-disabled="setPinForm.$invalid || loading">
|
||||
Set pin
|
||||
</button>
|
||||
</form>
|
||||
<div class="box-setup-footer text-right">
|
||||
<a class="text-gray" ng-click="createPin()">
|
||||
<span translate>Skip</span>
|
||||
<i class="icon-arrow-right3"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-setup" ng-if='hasPin'>
|
||||
<h1><span translate>Enter your </span> <b> PIN number</b></h1>
|
||||
<form name="pinForm" ng-submit="openWithPin(pinForm)" novalidate>
|
||||
<p class="text-warning size-12" ng-show="error">
|
||||
<i class="fi-x"></i>
|
||||
{{error|translate}}
|
||||
</p>
|
||||
<div class="input">
|
||||
<input id="pin" type="tel" ng-model="pin" class="form-control"
|
||||
ng-maxlength="4" ng-minlength="4" maxlength="4"
|
||||
placeholder="Pin number" name="pin" required auto-focus>
|
||||
<i class="icon-locked"></i>
|
||||
</div>
|
||||
|
||||
<button translate type="submit" class="button primary radius expand m0"
|
||||
ng-disabled="pinForm.$invalid || loading">
|
||||
Sign in
|
||||
</button>
|
||||
</form>
|
||||
<div class="box-setup-footer text-right">
|
||||
<a class="text-gray" ng-click="pinLogout()">
|
||||
<i class="icon-power"></i>
|
||||
<span translate>Logout</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box-setup" ng-if='!hasPin && !setPin'>
|
||||
<h1><span translate>Sign in to</span> <b>Copay</b></h1>
|
||||
<form name="loginForm" ng-submit="openProfile(loginForm)" novalidate>
|
||||
<form name="loginForm" ng-submit="openWithCredentials(loginForm)" novalidate>
|
||||
<p class="text-warning size-12"
|
||||
ng-show="error">
|
||||
<i class="fi-x"></i>
|
||||
|
|
@ -71,6 +134,7 @@
|
|||
Sign in
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="box-setup-footer">
|
||||
<div class="left m10r">
|
||||
<a class="button-setup text-gray" href="#!/createProfile">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue