copay/public/views/sellGlidera.html

90 lines
3.9 KiB
HTML
Raw Normal View History

2015-08-31 14:12:04 -07:00
<div
class="topbar-container"
ng-include="'views/includes/topbar.html'"
2015-09-07 13:43:55 -07:00
ng-init="titleSection='Sell'; goBackToState = 'glidera'">
2015-08-31 14:12:04 -07:00
</div>
2015-09-07 13:43:55 -07:00
<div class="content glidera p20v" ng-controller="sellGlideraController as sell">
<div class="onGoingProcess" ng-show="sell.loading">
<div class="onGoingProcess-content" ng-style="{'background-color':index.backgroundColor}">
<div class="spinner">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<span>{{sell.loading|translate}}</span>
</div>
</div>
2015-08-31 14:12:04 -07:00
<div class="row">
2015-09-02 22:50:59 -07:00
<div class="columns">
2015-08-31 14:12:04 -07:00
2015-09-02 22:50:59 -07:00
<div ng-show="!sell.show2faCodeInput && !sell.success">
<form name="sellPriceForm"
ng-submit="sell.get2faCode(index.glideraToken)" novalidate>
2015-09-07 13:43:55 -07:00
<label><span translate>Amount in</span> {{showAlternative ? 'USD' : 'BTC'}}</label>
2015-09-02 22:50:59 -07:00
<div class="input">
<input ng-show="!showAlternative" type="number" id="qty"
name="qty" ng-attr-placeholder="{{'Amount'|translate}}"
ng-minlength="0.00000001" ng-maxlength="10000000000"
ng-model="qty" autocomplete="off" ng-change="sell.getSellPrice(index.glideraToken, {'qty': qty})">
2015-08-31 14:12:04 -07:00
2015-09-02 22:50:59 -07:00
<input ng-show="showAlternative" type="number" id="fiat"
name="fiat" ng-attr-placeholder="{{'Amount'|translate}}"
ng-model="fiat" autocomplete="off" ng-change="sell.getSellPrice(index.glideraToken, {'fiat': fiat})">
2015-08-31 14:12:04 -07:00
2015-09-02 22:50:59 -07:00
<a ng-show="!showAlternative" class="postfix"
ng-click="showAlternative = true; qty = null; sell.sellPrice = null">BTC</a>
<a ng-show="showAlternative" class="postfix"
ng-click="showAlternative = false; fiat = null; sell.sellPrice = null">USD</a>
2015-09-07 13:43:55 -07:00
<div class="text-center text-gray size-12 m20b" ng-show="sell.sellPrice.qty">
Sell
<span ng-show="qty">${{sell.sellPrice.subtotal}} {{sell.sellPrice.currency}} in Bitcoin</span>
<span ng-show="fiat">{{sell.sellPrice.qty}} BTC</span>
at ${{sell.sellPrice.price}} {{sell.sellPrice.currency}}
</div>
<input class="button dark-gray outline round expand"
type="submit" value="{{'Continue'|translate}}" ng-disabled="!sell.sellPrice.qty || sell.loading">
2015-09-02 22:50:59 -07:00
</div>
2015-09-07 13:43:55 -07:00
</form>
2015-08-31 14:12:04 -07:00
</div>
2015-09-02 22:50:59 -07:00
<div ng-show="sell.show2faCodeInput && !sell.success">
2015-09-07 13:43:55 -07:00
<p class="text-center text-gray" translate>
The bitcoin amount of {{sell.sellPrice.qty}} will be immediately sent from your bitcoin wallet ({{index.walletName}}) to Glidera.
2015-09-02 22:50:59 -07:00
</p>
2015-09-07 13:43:55 -07:00
<p class="text-center text-gray" translate>
The total of ${{sell.sellPrice.subtotal}} {{sell.sellPrice.currency}} will be deposited in your bank account in 4-6 business days.
2015-09-02 22:50:59 -07:00
</p>
<form name="sellForm"
2015-09-07 13:43:55 -07:00
ng-submit="sell.createTx(index.glideraToken, index.glideraPermissions, twoFaCode)" novalidate>
<label translate>Enter 2FA Code</label>
2015-09-02 22:50:59 -07:00
<input type="number" ng-model="twoFaCode" required>
2015-09-07 13:43:55 -07:00
<input class="button dark-gray outline round expand"
type="submit" value="{{'Sell'|translate}}" ng-disabled="sellForm.$invalid || sell.loading">
2015-09-02 22:50:59 -07:00
</form>
</div>
2015-09-07 13:43:55 -07:00
<div class="box-notification" ng-show="sell.error && !sell.success">
<span class="text-warning size-14">
{{sell.error|translate}}
</span>
</div>
2015-09-02 22:50:59 -07:00
<div class="text-center" ng-show="sell.success">
2015-09-07 13:43:55 -07:00
<h1 translate>Sale complete</h1>
<p class="text-gray" translate>
2015-09-02 22:50:59 -07:00
A transfer has been initiated to your bank account and should arrive in 4-6 business days.
</p>
2015-08-31 14:12:04 -07:00
2015-09-02 22:50:59 -07:00
<button class="outline dark-gray round expand"
2015-09-07 13:43:55 -07:00
ng-click="$root.go('glidera')" translate>Finish</button>
2015-09-02 22:50:59 -07:00
</div>
2015-08-31 14:12:04 -07:00
</div>
</div>
</div>
<div class="extra-margin-bottom"></div>