2015-08-31 14:12:04 -07:00
|
|
|
<div
|
|
|
|
class="topbar-container"
|
|
|
|
ng-include="'views/includes/topbar.html'"
|
|
|
|
ng-init="titleSection='Sell'; goBackToState = 'glidera'">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2015-09-01 14:53:47 -07:00
|
|
|
<div class="content glidera"
|
|
|
|
ng-controller="sellGlideraController as sell">
|
2015-08-31 14:12:04 -07:00
|
|
|
<div class="row">
|
|
|
|
<div class="large-12 columns">
|
|
|
|
|
|
|
|
<h1>Sell Bitcoin</h1>
|
|
|
|
|
|
|
|
<form name="form" ng-submit="sell.getSellPrice(index.glideraToken, {'qty': qty, 'fiat': fiat})" novalidate>
|
2015-09-01 14:53:47 -07:00
|
|
|
<label>Amount BTC</label>
|
|
|
|
<input type="number" ng-model="qty">
|
|
|
|
<label>Amount USD</label>
|
|
|
|
<input type="number" ng-model="fiat">
|
|
|
|
<input class="button" type="submit" value="Get Sell Price">
|
2015-08-31 14:12:04 -07:00
|
|
|
</form>
|
|
|
|
|
2015-09-01 14:53:47 -07:00
|
|
|
<h2>Sell Price</h2>
|
|
|
|
<ul>
|
|
|
|
<li>qty: {{sell.sellPrice.qty}}
|
|
|
|
<li>price: {{sell.sellPrice.price}}
|
|
|
|
<li>subtotal: {{sell.sellPrice.subtotal}}
|
|
|
|
<li>fees: {{sell.sellPrice.fees}}
|
|
|
|
<li>total: {{sell.sellPrice.total}}
|
|
|
|
<li>currency: {{sell.sellPrice.currency}}
|
|
|
|
<li>expires: {{sell.sellPrice.expires}}
|
|
|
|
<li>priceUuid: {{sell.sellPrice.priceUuid}}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h2>Create Tx</h2>
|
2015-08-31 14:12:04 -07:00
|
|
|
|
2015-09-01 14:53:47 -07:00
|
|
|
<div class="m10b">
|
|
|
|
refundAddress: {{sell.addr[index.walletId]}}<br>
|
|
|
|
sellAddress: {{sell.sellAddress}}
|
2015-08-31 14:12:04 -07:00
|
|
|
</div>
|
2015-09-01 14:53:47 -07:00
|
|
|
|
|
|
|
<button
|
|
|
|
ng-click="raw = sell.createTx()">
|
|
|
|
Create
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="m10b" ng-show="sell.raw">{{sell.raw}}</div>
|
|
|
|
|
|
|
|
<h2>Send 2FA Code</h2>
|
|
|
|
<button ng-click="sell.get2faCode(index.glideraToken)">Send 2FA Code</button>
|
|
|
|
|
|
|
|
<h2>Send TX to Glider</h2>
|
|
|
|
<form name="form2" ng-submit="sell.sendTx(index.glideraToken, twoFaCode)" novalidate>
|
|
|
|
<label>2FA Code
|
|
|
|
<input type="number" ng-model="twoFaCode">
|
|
|
|
</label>
|
|
|
|
<input class="button" type="submit" value="Sell">
|
|
|
|
</form>
|
2015-08-31 14:12:04 -07:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="extra-margin-bottom"></div>
|