2015-08-31 18:12:04 -03:00
< div
class="topbar-container"
ng-include="'views/includes/topbar.html'"
2015-09-07 17:43:55 -03:00
ng-init="titleSection='Buy'; goBackToState = 'glidera'">
2015-08-31 18:12:04 -03:00
< / div >
2015-09-08 17:36:08 -03:00
< div class = "content glidera" ng-controller = "buyGlideraController as buy" >
2015-09-07 13:35:59 -03:00
< div class = "onGoingProcess" ng-show = "buy.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 >
2015-09-07 17:43:55 -03:00
< span > {{buy.loading|translate}}< / span >
2015-09-07 13:35:59 -03:00
< / div >
< / div >
2015-09-08 17:36:08 -03:00
< div ng-show = "index.glideraLimits" >
< h4 class = "title m0" >
< div class = "left" >
< i class = "fi-info size-24 m10r" > < / i >
< / div >
< div class = "size-10" >
< span class = "text-light" translate > Daily buy limit< / span > :
${{index.glideraLimits.dailyBuy}}
(remaining ${{index.glideraLimits.dailyBuyRemaining}})
< br >
< span class = "text-light" translate > Monthly buy limit< / span > :
${{index.glideraLimits.monthlyBuy}}
(remaining ${{index.glideraLimits.monthlyBuyRemaining}})
< / div >
< / h4 >
< / div >
< div class = "row m20t" >
2015-09-02 19:16:59 -03:00
< div class = "columns" >
2015-09-08 17:36:08 -03:00
< div class = "box-notification" ng-show = "index.glideraLimits.transactDisabledPendingFirstTransaction" >
< span class = "text-warning size-14" translate >
This operation was disabled because you have a pending first transaction
< / span >
< / div >
2015-09-02 19:16:59 -03:00
< div ng-show = "!buy.show2faCodeInput && !buy.success" >
< form name = "buyPriceForm"
ng-submit="buy.get2faCode(index.glideraToken)" novalidate>
2015-09-07 17:43:55 -03:00
< label > < span translate > Amount in< / span > {{showAlternative ? 'USD' : 'BTC'}}< / label >
2015-09-02 19:16:59 -03: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="buy.getBuyPrice(index.glideraToken, {'qty': qty})">
< input ng-show = "showAlternative" type = "number" id = "fiat"
name="fiat" ng-attr-placeholder="{{'Amount'|translate}}"
ng-model="fiat" autocomplete="off" ng-change="buy.getBuyPrice(index.glideraToken, {'fiat': fiat})">
< a ng-show = "!showAlternative" class = "postfix"
ng-click="showAlternative = true; qty = null; buy.buyPrice = null">BTC< / a >
< a ng-show = "showAlternative" class = "postfix"
ng-click="showAlternative = false; fiat = null; buy.buyPrice = null">USD< / a >
2015-09-07 13:35:59 -03:00
< div class = "text-center text-gray size-12 m20b" ng-show = "buy.buyPrice.qty" >
Buy
< span ng-show = "qty" > ${{buy.buyPrice.subtotal}} {{buy.buyPrice.currency}} in Bitcoin< / span >
< span ng-show = "fiat" > {{buy.buyPrice.qty}} BTC< / span >
at ${{buy.buyPrice.price}} {{buy.buyPrice.currency}}
< / div >
2015-09-08 13:58:24 -03:00
< input class = "button black expand round"
ng-style="{'background-color':index.backgroundColor}"
2015-09-08 17:36:08 -03:00
type="submit" value="{{'Continue'|translate}}"
ng-disabled="index.glideraLimits.transactDisabledPendingFirstTransaction || !buy.buyPrice.qty || buy.loading">
2015-09-02 19:16:59 -03:00
< / div >
2015-09-07 13:35:59 -03:00
< / form >
2015-08-31 18:12:04 -03:00
< / div >
2015-09-02 19:16:59 -03:00
< div ng-show = "buy.show2faCodeInput && !buy.success" >
2015-09-08 13:58:24 -03:00
< p class = "text-gray" translate >
${{buy.buyPrice.price}} {{buy.buyPrice.currency}} will be immediately withdrawn from your
2015-09-08 15:42:55 -03:00
bank account. The total of {{buy.buyPrice.qty}} BTC will be purchased and deposited to your bitcoin wallet ({{index.walletName}}) in 2-4 business days.
2015-09-02 19:16:59 -03:00
< / p >
2015-09-08 13:58:24 -03:00
< p class = "text-gray" translate >
A SMS containing a confirmation code was sent to your phone. Please, enter code below
2015-09-02 19:16:59 -03:00
< / p >
< form name = "buyForm"
2015-09-07 13:35:59 -03:00
ng-submit="buy.sendRequest(index.glideraToken, index.glideraPermissions, twoFaCode)" novalidate>
2015-09-08 13:58:24 -03:00
< label translate > Glidera 2FA Code< / label >
2015-09-02 19:16:59 -03:00
< input type = "number" ng-model = "twoFaCode" required >
2015-09-08 13:58:24 -03:00
< input class = "button black expand round"
ng-style="{'background-color':index.backgroundColor}"
2015-09-07 17:43:55 -03:00
type="submit" value="{{'Buy'|translate}}" ng-disabled="buyForm.$invalid || buy.loading">
2015-09-02 19:16:59 -03:00
< / form >
< / div >
2015-09-07 13:35:59 -03:00
< div class = "box-notification" ng-show = "buy.error && !buy.success" >
< span class = "text-warning size-14" >
{{buy.error|translate}}
< / span >
< / div >
2015-09-02 19:16:59 -03:00
< div class = "text-center" ng-show = "buy.success" >
2015-09-08 15:42:55 -03:00
< h1 translate > Purchase initiated< / h1 >
2015-09-07 13:35:59 -03:00
< p class = "text-gray" translate >
2015-09-08 15:42:55 -03:00
A transfer has been initiated from your bank account. Your bitcoins should arrive to your wallet in 4-6 business days.
2015-09-02 19:16:59 -03:00
< / p >
2015-09-01 18:53:47 -03:00
2015-09-02 19:16:59 -03:00
< button class = "outline dark-gray round expand"
2015-09-08 15:42:55 -03:00
ng-click="$root.go('glidera')">
OK
2015-09-07 13:35:59 -03:00
< / button >
2015-09-02 19:16:59 -03:00
< / div >
2015-08-31 18:12:04 -03:00
< / div >
2015-09-02 19:16:59 -03:00
< / div >
2015-08-31 18:12:04 -03:00
< / div >
< div class = "extra-margin-bottom" > < / div >