2015-05-16 20:34:26 -07:00
< div
class="topbar-container"
2015-05-08 05:35:33 -07:00
ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Import wallet'; goBackToState = 'add'; noColor = true">
< / div >
2016-05-30 12:32:28 -07:00
< ion-content overflow-scroll = "true" class = "content p20b" ng-controller = "importController as import" ng-init = "type='12'" >
2015-09-29 08:45:06 -07:00
< div class = "onGoingProcess" ng-show = "import.loading && !import.hwWallet" >
2015-04-24 13:23:33 -07:00
< div class = "onGoingProcess-content" ng-style = "{'background-color':'#222'}" >
2016-05-17 13:36:01 -07:00
< ion-spinner class = "spinner-stable" icon = "lines" > < / ion-spinner >
2015-04-23 23:14:18 -07:00
< span translate > Importing wallet...< / span >
2015-04-24 13:23:33 -07:00
< / div >
2015-04-23 23:14:18 -07:00
< / div >
2015-09-29 08:45:06 -07:00
< div class = "onGoingProcess" ng-show = "import.hwWallet" >
2015-09-04 17:18:20 -07:00
< div class = "onGoingProcess-content" ng-style = "{'background-color':'#222'}" >
2016-05-17 13:36:01 -07:00
< ion-spinner class = "spinner-stable" icon = "lines" > < / ion-spinner >
2015-09-29 08:45:06 -07:00
< span translate > Connecting to {{import.hwWallet}} Wallet...< / span >
2015-09-04 17:18:20 -07:00
< / div >
< / div >
2015-10-23 11:08:33 -07:00
< div class = "create-tab pr small-only-text-center" ng-hide = "create.hideTabs" >
2015-09-29 08:45:06 -07:00
< div class = "row" >
2015-10-23 11:08:33 -07:00
< div class = "tab-container small-4 medium-4 large-4" ng-class = "{'selected': type =='12'}" >
2016-05-09 11:23:20 -07:00
< a href ng-click = "import.setType('12')" translate > Wallet Recovery Phrase< / a >
2015-09-04 17:18:20 -07:00
< / div >
2015-10-23 11:08:33 -07:00
< div class = "tab-container small-4 medium-4 large-4" ng-class = "{'selected': type=='file'}" >
< a href ng-click = "import.setType('file')" translate > File/Text Backup< / a >
2015-09-04 17:18:20 -07:00
< / div >
2015-10-23 11:08:33 -07:00
< div class = "tab-container small-4 medium-4 large-4" ng-class = "{'selected': type=='hwWallet'}" >
2016-06-04 03:59:08 -07:00
< a href ng-click = "import.setType('hwWallet')" translate > Hardware Wallet< / a >
2015-09-04 17:18:20 -07:00
< / div >
2015-08-10 11:04:28 -07:00
< / div >
< / div >
2015-12-03 08:43:59 -08:00
< div ng-show = "type == '12' " >
< div class = "box-notification m20b" ng-show = "import.error" >
2016-06-07 12:16:38 -07:00
< div ng-show = "import.importErr" class = "text-warning" >
< div >
< / div >
< div class = "m10 text-bold" translate > Could not access the wallet at the server. Please check:< / div >
< div class = "p25l" translate > The password of the recovery phrase (if set) < / div >
< div class = "p25l" translate > The derivation path< / div >
< div class = "p25l" translate > The wallet service URL < / div >
< div class = "p25l" translate > NOTE: To import a wallet from a 3rd party software, please go to Add Wallet > Create Wallet, and specify the seed there.< / div >
< div class = "text-right" > < span translate > Error< / span > : {{import.error|translate}}< / div >
< / div >
2015-12-03 08:43:59 -08:00
< / div >
< div class = "row large-12 columns" >
2016-05-17 13:36:01 -07:00
< form name = "importForm12" ng-submit = "import.importMnemonic(importForm12)" novalidate >
2015-04-23 23:14:18 -07:00
2015-11-04 10:45:33 -08:00
< div >
< label for = "words" >
2016-05-09 11:23:20 -07:00
< span translate > Type the Recovery Phrase (usually 12 words)< / span > :
2015-11-04 10:45:33 -08:00
< / label >
2015-11-13 07:36:16 -08:00
< textarea class = "form-control" name = "words" ng-model = "import.words" rows = "2" autocapitalize = "off" spellcheck = "false" > < / textarea >
2015-11-04 10:45:33 -08:00
< / div >
2015-08-24 13:09:59 -07:00
< div class = "m10t oh" ng-init = "hideAdv=true" >
< a class = "button outline light-gray expand tiny" ng-click = "hideAdv=!hideAdv" >
< i class = "fi-widget m3r" > < / i >
< span translate ng-hide = "!hideAdv" > Show advanced options< / span >
< span translate ng-hide = "hideAdv" > Hide advanced options< / span >
< i ng-if = "hideAdv" class = "icon-arrow-down4" > < / i >
< i ng-if = "!hideAdv" class = "icon-arrow-up4" > < / i >
< / a >
< / div >
< div ng-hide = "hideAdv" class = "row" >
< div class = "large-12 columns" >
2015-11-04 12:50:05 -08:00
2016-05-09 11:23:20 -07:00
< label for = "passphrase" class = "oh" > < span translate > Password< / span > < small translate > The Wallet Recovery Phrase could require a password to be imported< / small >
2015-08-24 13:09:59 -07:00
< div class = "input" >
2016-05-09 11:23:20 -07:00
< input type = "password" class = "form-control" placeholder = "{{'Password'|translate}}"
2015-08-24 13:09:59 -07:00
name="passphrase" ng-model="import.passphrase">
< / div >
< / label >
2015-10-22 08:53:50 -07:00
2015-11-05 14:46:32 -08:00
< div >
< label class = "oh" > < span translate > Derivation Path< / span > < small translate > BIP32 path for address derivation< / small >
< input type = "text" class = "form-control" name = "derivationPath" ng-model = "derivationPath" >
< / label >
< / div >
2016-05-17 13:36:01 -07:00
2015-10-22 08:53:50 -07:00
< label for = "bws" class = "oh" >
< span > Wallet Service URL< / span >
< input type = "text" id = "bwsurl" name = "bwsurl" ng-model = "bwsurl" >
< / label >
2015-08-24 13:09:59 -07:00
< / div >
< / div >
2015-11-04 10:45:33 -08:00
< button translate type = "submit" class = "button round expand black m10t"
ng-disabled="importForm12.$invalid || import.loading">
Import
< / button >
< / form >
2015-08-24 13:09:59 -07:00
< / div >
2015-11-04 10:45:33 -08:00
< / div >
2015-12-03 08:43:59 -08:00
< div ng-show = "type == 'file' " >
< div class = "box-notification m20b" ng-show = "import.error" >
< span class = "text-warning size-14" >
{{import.error|translate}}
< / span >
< / div >
< div class = "row large-12 columns" >
2016-05-17 13:36:01 -07:00
< form name = "importForm" ng-submit = "import.importBlob(importForm)" novalidate >
2015-11-04 10:45:33 -08:00
< div ng-show = "!index.isSafari && !index.isCordova" class = "line-b m10b" >
< label for = "backupFile" >
< span translate > Choose a backup file from your computer< / span > < i class = "fi-laptop" > < / i >
< / label >
< input type = "file" class = "form-control" placeholder = "{{'Select a backup file'|translate}}"
name="backupFile" ng-model="import.backupFile" ng-file-select>
< / div >
< div ng-show = "index.isSafari || index.isCordova" >
< label for = "backupText" >
< span translate > Paste the backup plain text code< / span > < i class = "fi-clipboard" > < / i >
< / label >
< textarea class = "form-control" name = "backupText" ng-model = "import.backupText" rows = "5" > < / textarea >
< / div >
2015-08-24 13:09:59 -07:00
2016-05-19 08:52:18 -07:00
< label for = "password" > < span translate > Password< / span >
2015-11-04 10:45:33 -08:00
< / label >
< div class = "input" >
2016-05-19 08:52:18 -07:00
< input type = "password" class = "form-control" placeholder = "{{'Your password'|translate}}"
2015-11-04 10:45:33 -08:00
name="password" ng-model="import.password">
< / div >
2015-08-24 13:09:59 -07:00
2015-11-04 10:45:33 -08:00
< div class = "m10t oh" ng-init = "hideAdv=true" >
< a class = "button outline light-gray expand tiny" ng-click = "hideAdv=!hideAdv" >
< i class = "fi-widget m3r" > < / i >
< span translate ng-hide = "!hideAdv" > Show advanced options< / span >
< span translate ng-hide = "hideAdv" > Hide advanced options< / span >
< i ng-if = "hideAdv" class = "icon-arrow-down4" > < / i >
< i ng-if = "!hideAdv" class = "icon-arrow-up4" > < / i >
< / a >
< / div >
< div ng-hide = "hideAdv" class = "row" >
< div class = "large-12 columns" >
2015-08-24 13:09:59 -07:00
2015-11-04 10:45:33 -08:00
< label for = "bws" class = "oh" >
< span > Wallet Service URL< / span >
< input type = "text" id = "bwsurl" name = "bwsurl" ng-model = "bwsurl" >
< / label >
2015-03-06 07:00:10 -08:00
< / div >
2015-11-04 10:45:33 -08:00
< / div >
2015-03-06 07:00:10 -08:00
2015-11-04 10:45:33 -08:00
< button translate type = "submit" class = "button round expand black"
ng-disabled="importForm.$invalid || !import.password || import.loading">
Import backup
< / button >
< / form >
< div class = "text-center text-gray p20v" ng-click = "$root.go('importLegacy')" >
< p class = "text-gray m5b size-14" translate > Have a Backup from Copay v0.9?< / p >
< button class = " outline dark-gray tiny round" > < span translate > Import here< / span >
< i class = "icon-arrow-right3 size-14" > < / i >
< / button >
< / div >
< / div >
< / div >
2015-12-03 08:43:59 -08:00
< div ng-show = "type == 'hwWallet'" >
< div class = "box-notification m20b" ng-show = "import.error" >
< span class = "text-warning size-14" >
{{import.error|translate}}
< / span >
< / div >
2016-05-17 13:36:01 -07:00
< div class = "row large-12 columns" >
2015-11-04 10:45:33 -08:00
< form name = "importForm3" ng-submit = "import.importHW(importForm3)" novalidate >
< div class = "large-12 columns" >
< div ng-show = "!import.seedOptions[0]" >
2015-11-11 10:14:39 -08:00
< span translate > No hardware wallets supported on this device< / span >
2015-11-04 10:45:33 -08:00
< / div >
< div ng-show = "import.seedOptions[0]" >
< div >
2016-05-09 11:23:20 -07:00
< label > < span translate > Wallet Recovery Phrase< / span >
2015-11-04 10:45:33 -08:00
< select class = "m10t" ng-model = "seedSource"
ng-options="seed as seed.label for seed in import.seedOptions"
ng-change="import.setSeedSource()">
< / select >
2015-03-06 07:00:10 -08:00
< / label >
< / div >
2015-11-05 14:46:32 -08:00
< div ng-show = "import.seedSourceId == 'trezor' || import.seedSourceId == 'ledger'" >
< label class = "oh" > < span translate > Account Number< / span >
< input type = "number" id = "account" ng-model = "account" >
< / label >
< / div >
2015-11-04 10:45:33 -08:00
< div ng-show = "import.seedSourceId == 'trezor'" >
< label for = "isMultisig" class = "oh" >
< span translate > Shared Wallet< / span >
< switch id = "isMultisig" name = "isMultisig" ng-model = "isMultisig" class = "green right m5t m10b" > < / switch >
2015-03-06 07:00:10 -08:00
< / label >
< / div >
2015-10-20 12:08:53 -07:00
< div class = "m10t oh" ng-init = "hideAdv=true" >
< a class = "button outline light-gray expand tiny" ng-click = "hideAdv=!hideAdv" >
< i class = "fi-widget m3r" > < / i >
< span translate ng-hide = "!hideAdv" > Show advanced options< / span >
< span translate ng-hide = "hideAdv" > Hide advanced options< / span >
< i ng-if = "hideAdv" class = "icon-arrow-down4" > < / i >
< i ng-if = "!hideAdv" class = "icon-arrow-up4" > < / i >
< / a >
< / div >
< div ng-hide = "hideAdv" class = "row" >
< div class = "large-12 columns" >
2015-10-16 08:35:18 -07:00
2015-10-20 12:08:53 -07:00
< label for = "bws" class = "oh" >
2015-10-21 06:32:30 -07:00
< span > Wallet Service URL< / span >
2015-10-21 06:24:14 -07:00
< input type = "text" id = "bwsurl" name = "bwsurl" ng-model = "bwsurl" >
2015-10-20 12:08:53 -07:00
< / label >
< / div >
< / div >
2015-10-22 08:53:50 -07:00
2015-08-24 13:09:59 -07:00
2015-09-04 17:18:20 -07:00
< button translate type = "submit" class = "button round expand black"
ng-disabled="import.loading || import.ledger">
2015-11-04 10:45:33 -08:00
Import
2015-10-22 08:53:50 -07:00
< / button >
2015-11-04 10:45:33 -08:00
< / div > <!-- seedoptions show -->
< / div >
< / form >
2015-08-24 13:09:59 -07:00
< / div >
2015-11-04 10:45:33 -08:00
< / div >
2016-05-30 12:32:28 -07:00
< / ion-content >
2015-03-06 07:00:10 -08:00
< div class = "extra-margin-bottom" > < / div >