2014-08-29 09:20:47 -07:00
< div ng-controller = "CreateController" >
2014-07-21 17:16:06 -07:00
< div data-alert class = "loading-screen" ng-show = "loading" >
< i class = "size-60 fi-bitcoin-circle icon-rotate spinner" > < / i >
2014-09-05 12:58:28 -07:00
< span translate > Creating wallet...< / span >
2014-07-16 13:59:28 -07:00
< / div >
2014-07-21 09:01:51 -07:00
< div class = "setup" ng-show = "!loading" >
2014-07-16 13:59:28 -07:00
< form name = "setupForm" ng-submit = "create(setupForm)" novalidate >
< div class = "row" >
2014-07-21 14:07:42 -07:00
< div class = "large-4 columns logo-setup text-center" >
2014-08-20 11:32:09 -07:00
< img src = "img/logo-negative-beta.svg" alt = "Copay" width = "146" height = "59" >
2014-08-05 07:52:51 -07:00
< div ng-include = "'views/includes/version.html'" > < / div >
2014-07-21 09:01:51 -07:00
< / div >
2014-07-21 14:07:42 -07:00
< div class = "large-8 columns line-dashed-setup-v" >
< div class = "box-setup oh" >
2014-08-15 11:47:13 -07:00
< img ng-if = "!isSetupWalletPage && !isMobile" class = "right m15t" src = "img/step-1.svg" alt = "Step 1" >
< img ng-if = "isSetupWalletPage && !isMobile" class = "right m15t" src = "img/step-2.svg" alt = "Step 2" >
2014-09-05 12:58:28 -07:00
< h1 translate class = "text-secondary line-sidebar-b" > Create new wallet< / h1 >
< label ng-show = "!isSetupWalletPage" > < span translate > Wallet name< / span >
< input type = "text" placeholder = "{{'Family vacation funds'|translate}}" class = "form-control" ng-model = "walletName" >
2014-07-21 15:30:43 -07:00
< / label >
2014-07-21 14:07:42 -07:00
< div class = "row" ng-show = "isSetupWalletPage" >
2014-08-04 12:27:58 -07:00
< div ng-if = "totalCopayers > 1" >
2014-09-05 12:58:28 -07:00
< label translate for = "Name" > Your name< / label >
< input id = "Name" type = "text" placeholder = "{{'Name'|translate}}" class = "form-control" ng-model = "$parent.myNickname" >
2014-07-21 14:07:42 -07:00
< / div >
< div >
2014-09-15 07:49:53 -07:00
< label translate for = "walletPassword" >
Your password
2014-07-21 15:30:43 -07:00
< / label >
2014-09-12 13:06:38 -07:00
< input id = "walletPassword" type = "password" placeholder = "{{'Choose a password'|translate}}" class = "form-control" ng-model = "$parent.walletPassword" name = "walletPassword" check-strength = "passwordStrength" tooltip-html-unsafe = "Password strength:
2014-07-21 14:07:42 -07:00
< i > {{passwordStrength}}< / i > < br / > < span
class='size-12'>Tip: Use lower and uppercase, numbers and
2014-09-09 13:00:30 -07:00
symbols< / span > " tooltip-trigger="focus" required tooltip-placement="top">
2014-09-12 13:06:38 -07:00
< div class = "pr" >
< input type = "password" placeholder = "{{'Repeat password'|translate}}" name = "walletPasswordConfirm" ng-model = "walletPasswordConfirm" match = "walletPassword" required >
< small class = "icon-input" ng-show = "setupForm.walletPasswordConfirm.$dirty && setupForm.$invalid" > < i class = "fi-x" > < / i > < / small >
2014-09-15 06:50:06 -07:00
< p class = "m15b text-gray size-12" ng-show = "setupForm.walletPasswordConfirm.$dirty && setupForm.$invalid" >
2014-09-12 13:06:38 -07:00
< i class = "fi-x m5r" > < / i >
2014-09-13 04:46:55 -07:00
{{'Passwords must match'|translate}}
2014-09-12 13:06:38 -07:00
< / p >
< / div >
2014-09-09 17:49:53 -07:00
2014-07-21 14:07:42 -07:00
< / div >
2014-08-21 11:54:36 -07:00
2014-09-09 13:00:30 -07:00
< a class = "expand small" ng-click = "hideAdv=!hideAdv" >
2014-09-16 12:24:18 -07:00
< i class = "fi-widget m3r" > < / i >
2014-09-05 12:58:28 -07:00
< span translate ng-hide = "!hideAdv" > Show< / span >
< span translate ng-hide = "hideAdv" > Hide< / span >
< span translate > advanced options< / span >
2014-08-21 11:54:36 -07:00
< / a >
2014-09-16 11:55:54 -07:00
< div ng-hide = "hideAdv" class = "m10t" >
2014-09-22 10:02:21 -07:00
< input id = "network-name" type = "checkbox" ng-model = "networkName" ng-true-value = "testnet" ng-false-value = "livenet" class = "form-control" ng-checked = "networkName == 'testnet' ? true : false" >
< label for = "network-name" translate > Use test network< / label >
2014-08-21 11:54:36 -07:00
< p >
2014-09-22 10:02:21 -07:00
< input type = "text" placeholder = "BIP32 master extended private key (hex)" name = "private" ng-model = "private" >
2014-08-21 11:54:36 -07:00
< / div >
2014-09-09 13:00:30 -07:00
2014-07-16 13:59:28 -07:00
< / div >
2014-07-21 14:07:42 -07:00
< div class = "row" ng-show = "!isSetupWalletPage" >
< div class = "large-6 medium-6 columns" >
2014-09-05 12:58:28 -07:00
< label > < span translate > Select total number of copayers (*)< / span >
2014-07-21 14:07:42 -07:00
< select ng-model = "totalCopayers" ng-options = "totalCopayers as totalCopayers for totalCopayers in TCValues" >
< / select >
2014-07-21 15:30:43 -07:00
< / label >
2014-07-16 13:59:28 -07:00
< / div >
2014-07-21 14:07:42 -07:00
< div class = "large-6 medium-6 columns" >
2014-09-05 12:58:28 -07:00
< label > < span translate > Select required signatures (*)< / span >
2014-08-15 08:22:34 -07:00
< select ng-model = "requiredCopayers" ng-options = "requiredCopayers as requiredCopayers for requiredCopayers in RCValues" ng-disabled = "totalCopayers == 1" >
2014-07-21 14:07:42 -07:00
< / select >
2014-07-21 15:30:43 -07:00
< / label >
2014-07-21 14:07:42 -07:00
< / div >
< / div >
< div class = "box-setup-copayers" ng-show = "!isSetupWalletPage" >
< div class = "box-setup-copayers p10" >
2014-09-09 13:00:30 -07:00
< img class = "br100 oh box-setup-copay m10" ng-repeat = "i in getNumber(totalCopayers) track by $index" src = "./img/satoshi.gif" title = "Copayer {{$index+1}}-{{totalCopayers}}" ng-class = "{'box-setup-copay-required': ($index+1) <= requiredCopayers}" width = "50px" >
2014-07-21 14:07:42 -07:00
< / div >
< / div >
2014-09-05 12:58:28 -07:00
< p translate class = "comment" ng-show = "totalCopayers>1 && !isSetupWalletPage" > (*) The limits are imposed by the bitcoin network.< / p >
2014-07-21 14:32:51 -07:00
< div class = "text-right" >
2014-09-09 13:00:30 -07:00
< a ng-show = "!isSetupWalletPage" class = "back-button m20r" href = "#!/" > « < span translate > Back< / span > < / a >
< a ng-show = "isSetupWalletPage" class = "back-button m20r" ng-click = "setupWallet()" > « < span translate > Back< / span > < / a >
2014-09-05 12:58:28 -07:00
< button translate ng-show = "isSetupWalletPage" type = "submit" class = "button secondary m0" ng-disabled = "setupForm.$invalid || loading" >
2014-07-21 14:07:42 -07:00
Create {{requiredCopayers}}-of-{{totalCopayers}} wallet
< / button >
2014-09-09 13:00:30 -07:00
< a translate class = "button secondary m0" ng-show = "!isSetupWalletPage" ng-click = "setupWallet()" > Next< / a >
2014-07-16 13:59:28 -07:00
< / div >
< / div >
< / div >
< / div >
< / form >
< / div >
< / div >