2015-10-02 11:27:17 -03:00
< div
class="topbar-container"
ng-include="'views/includes/topbar.html'"
2015-10-02 11:58:20 -03:00
ng-init="titleSection='Sweep paper wallet'; goBackToState = 'preferencesAdvanced';">
2015-10-02 11:27:17 -03:00
< / div >
< div class = "content p20v" ng-controller = "paperWalletController as paperWallet" >
< div class = "row" >
< div class = "large-12 medium-12 columns" >
< div class = "text-warning size-14 m20b" ng-show = "paperWallet.error" >
< i class = "fi-alert size-12" > < / i >
< span translate > {{paperWallet.error}}< / span >
< / div >
< div ng-show = "!paperWallet.balance" class = "input" >
< label for = "privateKey" > < span > Paper Wallet Private Key< / span > < / label >
< input type = "text" placeholder = "Paste your paper wallet private key here" ng-model = "privateKey" id = "privateKey" >
< div class = "qr-scanner-input" >
< qr-scanner on-scan = "paperWallet.onQrCodeScanned(data)" > < / qr-scanner >
< / div >
< label for = "passphrase" >
< span > Passphrase (if you have one): < / span >
< / label >
< input id = "passphrase" type = "password" name = "passphrase" placeholder = "Passphrase" ng-model = "passphrase" >
< / div >
< div ng-show = "paperWallet.balance" >
< label for = "totalBalance" >
2015-10-02 11:58:20 -03:00
< h2 translate > Funds founds: {{paperWallet.balance}} BTC< / h2 >
2015-10-02 11:27:17 -03:00
< / label >
< / div >
< / div >
< / div >
< div class = "row" >
< div class = "large-12 medium-12 columns" ng-show = "paperWallet.balance" >
2015-10-02 11:58:20 -03:00
< button ng-style = "{'background-color':index.backgroundColor}" class = "button black round expand" ng-click = "paperWallet.transaction()" translate > sweep wallet< / button >
< span > Funds will be transfered to the wallet: {{index.alias}} < / span >
2015-10-02 11:27:17 -03:00
< / div >
< div class = "large-12 medium-12 columns" ng-show = "!paperWallet.balance" >
2015-10-02 11:58:20 -03:00
< button ng-style = "{'background-color':index.backgroundColor}" class = "button black round expand" ng-click = "paperWallet.createTx(privateKey, passphrase)" translate > Scan Wallet Funds< / button >
2015-10-02 11:27:17 -03:00
< / div >
< / div >
< / div >
< div class = "extra-margin-bottom" > < / div >