Buy, enter amount

This commit is contained in:
Gustavo Maximiliano Cortez 2016-12-09 12:46:27 -03:00
commit ec2801ef37
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 88 additions and 8 deletions

View file

@ -14,14 +14,14 @@
<ion-content scroll="false">
<div ng-if="!customAmount && !isGlidera">
<div ng-if="!customAmount && !isGlidera && !isCoinbase">
<div class="item item-no-bottom-border recipient-label" translate>Recipient</div>
<div class="item item-text-wrap item-icon-left bitcoin-address" ng-class="{'item-big-icon-left':cardId}">
<i class="icon big-icon-svg" ng-if="isWallet">
<img src="img/icon-wallet.svg" ng-style="{'background-color': toColor}" class="bg"/>
</i>
<span ng-if="!isWallet && !isGiftCard && !isGlidera">
<span ng-if="!isWallet && !isGiftCard">
<i class="icon big-icon-svg" ng-if="isChromeApp">
<img src="img/contact-placeholder.svg" class="bg"/>
</i>
@ -39,7 +39,7 @@
</div>
</div>
<div ng-class="{'amount-pane-recipient': !customAmount && !isGlidera, 'amount-pane-no-recipient': customAmount || isGlidera}">
<div ng-class="{'amount-pane-recipient': !customAmount && !isGlidera && !isCoinbase, 'amount-pane-no-recipient': customAmount || isGlidera || isCoinbase}">
<div class="amount-bar oh">
<div class="title">
@ -66,6 +66,25 @@
(remaining {{limits.monthlySellRemaining|currency:'':2}} {{limits.currency}})
</div>
</div>
<div ng-show="isCoinbase">
<div class="limits" ng-show="coinbaseBuyPrice && isCoinbase == 'buy'">
1 BTC ~ {{coinbaseBuyPrice.amount}} {{coinbaseBuyPrice.currency}}
</div>
<div class="limits" ng-show="coinbaseSellPrice && isCoinbase == 'sell'">
1 BTC ~ {{coinbaseSellPrice.amount}} {{coinbaseSellPrice.currency}}
</div>
<div class="list">
<label class="item item-input item-select">
<div class="input-label">
Payment Method
</div>
<select ng-model="coinbaseSelectedPaymentMethod.id"
ng-options="item.id as item.name for item in coinbasePaymentMethods">
</select>
</label>
</div>
</div>
</div>
</div>

View file

@ -68,13 +68,13 @@
<div class="list card"
ng-show="accountId">
<a class="item item-icon-right"
href ui-sref="tabs.buyandsell.coinbase.buy">
href ui-sref="tabs.buyandsell.coinbase.amount({isCoinbase: 'buy'})">
<img src="img/buy-bitcoin.svg" alt="buy bitcoin" width="35" class="item-img-buy">
Buy Bitcoin
<i class="icon bp-arrow-right"></i>
</a>
<a class="item item-icon-right"
href ui-sref="tabs.buyandsell.coinbase.sell">
href ui-sref="tabs.buyandsell.coinbase.amount({isCoinbase: 'sell'})">
<img src="img/sell-bitcoin.svg" alt="buy bitcoin" width="35" class="item-img-sell">
Sell Bitcoin
<i class="icon bp-arrow-right"></i>