Wallet/public/views/paperWallet.html
2015-10-02 14:08:34 -03:00

41 lines
1.9 KiB
HTML

<div
class="topbar-container"
ng-include="'views/includes/topbar.html'"
ng-init="titleSection='Scan Paper Wallet'; goBackToState = 'preferencesAdvanced';">
</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">
<h2 translate>Total Amount to be recived: {{paperWallet.balance}} BTC</h2>
</label>
</div>
</div>
</div>
<div class="row">
<div class="large-12 medium-12 columns" ng-show="paperWallet.balance">
<button ng-style="{'background-color':index.backgroundColor}" class="button black round expand" ng-click="paperWallet.transaction()" translate>Accept</button>
</div>
<div class="large-12 medium-12 columns" ng-show="!paperWallet.balance" >
<button ng-style="{'background-color':index.backgroundColor}" class="button black round expand" ng-click="paperWallet.createTx(privateKey, passphrase)" translate>Create transaction</button>
</div>
</div>
</div>
<div class="extra-margin-bottom"></div>