New schema for signin/join a wallet
This commit is contained in:
parent
67190909b6
commit
0ffb8eb42f
2 changed files with 69 additions and 40 deletions
|
|
@ -75,4 +75,26 @@ angular.module('copayApp.controllers').controller('SigninController',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.isHome = 1;
|
||||||
|
$scope.isJoin = 0;
|
||||||
|
$scope.isOpen = 0;
|
||||||
|
|
||||||
|
$scope.backWallet = function() {
|
||||||
|
$scope.isHome = 1;
|
||||||
|
$scope.isJoin = 0;
|
||||||
|
$scope.isOpen = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.openWallet = function() {
|
||||||
|
$scope.isHome = 0;
|
||||||
|
$scope.isJoin = 0;
|
||||||
|
$scope.isOpen = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.joinWallet = function() {
|
||||||
|
$scope.isHome = 0;
|
||||||
|
$scope.isOpen = 0;
|
||||||
|
$scope.isJoin = 1;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -5,29 +5,27 @@
|
||||||
</div>
|
</div>
|
||||||
<div ng-show="!loading">
|
<div ng-show="!loading">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="large-6 medium-6 columns">
|
<div class="large-6 medium-8 small-12 large-centered medium-centered
|
||||||
<div class="box-signin radius">
|
columns" ng-show="!isHome && isOpen">
|
||||||
<div ng-show="wallets.length">
|
|
||||||
<h3>Open Wallet</h3>
|
<h3>Open Wallet</h3>
|
||||||
<form name="openForm" ng-submit="open(openForm)" novalidate>
|
<form name="openForm" ng-submit="open(openForm)" novalidate>
|
||||||
<select class="form-control" ng-model="selectedWalletId" ng-options="w.id as w.show for w in wallets" required>
|
<select class="form-control" ng-model="selectedWalletId" ng-options="w.id as w.show for w in wallets" required>
|
||||||
</select>
|
</select>
|
||||||
<input type="password" class="form-control" placeholder="Your password" name="openPassword" ng-model="openPassword" required>
|
<input type="password" class="form-control" placeholder="Your password" name="openPassword" ng-model="openPassword" required>
|
||||||
|
<a class="back-button" ng-click="backWallet()">« Back</a>
|
||||||
<button type="submit" class="button secondary radius" ng-disabled="openForm.$invalid || loading" loading="Opening">Open</button>
|
<button type="submit" class="button secondary radius" ng-disabled="openForm.$invalid || loading" loading="Opening">Open</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div ng-show="!wallets.length">
|
<div ng-show="isHome && wallets.length">
|
||||||
|
<h3>Open a wallet</h3>
|
||||||
|
<a ng-click="openWallet()" class="button secondary radius">Open</a>
|
||||||
|
</div>
|
||||||
|
<div ng-show="isHome && !wallets.length">
|
||||||
<h3>Create a new wallet</h3>
|
<h3>Create a new wallet</h3>
|
||||||
|
|
||||||
<p class="text-gray">
|
|
||||||
Copay is a free, open-source, multisignature bitcoin wallet. A single-owner bitcoin wallet's security depends on carefully securing the private keys. With copay you can have multiple people controlling the funds, using bitcoin's multisignature functionality, requiring no trust in any third party.
|
|
||||||
</p>
|
|
||||||
<a href="/setup" class="button secondary radius">Create</a>
|
<a href="/setup" class="button secondary radius">Create</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="large-6 medium-8 small-12 large-centered medium-centered
|
||||||
</div>
|
columns" ng-show="!isHome && isJoin">
|
||||||
<div class="large-6 medium-6 columns">
|
|
||||||
<div class="box-signin radius">
|
|
||||||
<h3>Join a Wallet in Creation</h3>
|
<h3>Join a Wallet in Creation</h3>
|
||||||
<form name="joinForm" ng-submit="join(joinForm)" novalidate>
|
<form name="joinForm" ng-submit="join(joinForm)" novalidate>
|
||||||
<input type="text" class="form-control" placeholder="Paste wallet secret here" name="connectionId" ng-model="connectionId" wallet-secret required>
|
<input type="text" class="form-control" placeholder="Paste wallet secret here" name="connectionId" ng-model="connectionId" wallet-secret required>
|
||||||
|
|
@ -39,18 +37,27 @@
|
||||||
tooltip-html-unsafe="Password strength:
|
tooltip-html-unsafe="Password strength:
|
||||||
<i>{{passwordStrength}}</i><br/><span class='size-12'>Tip: Use lower and uppercase,
|
<i>{{passwordStrength}}</i><br/><span class='size-12'>Tip: Use lower and uppercase,
|
||||||
numbers and symbols</span>" tooltip-trigger="focus" required>
|
numbers and symbols</span>" tooltip-trigger="focus" required>
|
||||||
|
<a class="back-button" ng-click="backWallet()">« Back</a>
|
||||||
<button type="submit" class="button primary radius" ng-disabled="joinForm.$invalid || loading" loading="Joining">Join</button>
|
<button type="submit" class="button primary radius" ng-disabled="joinForm.$invalid || loading" loading="Joining">Join</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div ng-show="isHome && !isJoin">
|
||||||
|
<h3>Join a Wallet in Creation</h3>
|
||||||
|
<a ng-click="joinWallet()" class="button secondary
|
||||||
|
radius">Join</a>
|
||||||
|
</div>
|
||||||
|
<div ng-show="isHome && wallets.length">
|
||||||
|
<h5>Create a wallet</h5>
|
||||||
|
<a href="/setup" class="button secondar radius">Create</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row" ng-show="isHome">
|
||||||
|
<p class="text-gray">
|
||||||
|
Copay is a free, open-source, multisignature bitcoin wallet. A single-owner bitcoin wallet's security depends on carefully securing the private keys. With copay you can have multiple people controlling the funds, using bitcoin's multisignature functionality, requiring no trust in any third party.
|
||||||
|
</p>
|
||||||
<div class="large-12 columns text-center line-dashed">
|
<div class="large-12 columns text-center line-dashed">
|
||||||
<a href="/settings">Settings</a> ·
|
<a href="/settings">Settings</a> ·
|
||||||
<span ng-show="wallets.length">
|
|
||||||
<a href="/setup">Create a new wallet</a> ·
|
|
||||||
</span>
|
|
||||||
<a href="/import">Import a backup</a>
|
<a href="/import">Import a backup</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue