copay/www/views/glidera.html

127 lines
5.5 KiB
HTML
Raw Normal View History

<ion-view id="glidera">
2016-08-31 12:54:53 -07:00
<ion-nav-bar class="bar-royal">
2016-09-16 10:46:25 -07:00
<ion-nav-back-button>
</ion-nav-back-button>
2016-08-24 07:33:43 -07:00
<ion-nav-title>Glidera</ion-nav-title>
</ion-nav-bar>
2015-08-31 14:12:04 -07:00
2016-12-05 06:17:48 -08:00
<ion-content ng-show="!connectingGlidera">
2015-08-31 14:12:04 -07:00
2016-12-05 06:17:48 -08:00
<div class="box-notification error m0" ng-show="!network">
2016-09-01 12:51:29 -07:00
Glidera is disabled for this application
</div>
2016-12-05 06:17:48 -08:00
<div class="box-notification warning m0" ng-show="network == 'testnet'">
2016-08-24 07:33:43 -07:00
Testnet wallets only work with Glidera Sandbox Accounts
</div>
2015-09-07 07:14:09 -07:00
2016-12-05 06:17:48 -08:00
<div ng-if="!token">
2016-08-24 07:33:43 -07:00
<div ng-init="showOauthForm = false">
<div class="text-center m20v">
2016-10-17 06:59:40 -07:00
<img src="img/glidera-logo.png" ng-click="update({'fullUpdate': true})" width="200">
2016-08-24 07:33:43 -07:00
</div>
<div class="text-center small-10 small-centered columns" ng-show="!showOauthForm">
<p class="glidera-lead">You can buy and sell Bitcoin with a US bank account directly in this app.</p>
<p class="glidera-text">Connect your Glidera account to get started.</p>
<button class="button button-standard button-primary"
2016-12-05 06:36:01 -08:00
ng-click="openExternalLink(getAuthenticateUrl()); showOauthForm = true">
2016-08-24 07:33:43 -07:00
Connect to Glidera
</button>
<div class="m10t">
2016-12-13 09:53:37 -08:00
<a href ng-click="showOauthForm = true" class="button button-standard button-secondary buttion-clear">
Have the OAuth Code?
2016-08-24 07:33:43 -07:00
</a>
</div>
<div class="disclosure">
2016-12-13 09:53:37 -08:00
<p>Glidera Inc. (Glidera) is providing the service of buying or selling bitcoin to BitPay users. To enable this service, Glidera has registered with US Treasury Departments FinCEN as a Money Service Business (#31000042625755). Users of BitPay must agree to the service agreement presented by Glidera prior to obtaining Glideras service of buying or selling bitcoin.</p>
<p>Service is available in the U.S. and Canada.</p>
</div>
2015-09-05 10:30:02 -07:00
</div>
2016-08-24 07:33:43 -07:00
<div ng-show="showOauthForm">
2016-12-05 06:36:01 -08:00
<form class="settings" name="oauthCodeForm" ng-submit="submitOauthCode(code)" novalidate>
<div class="list settings-input-group">
2016-08-24 07:33:43 -07:00
<label class="item item-input item-stacked-label">
<span class="input-label">OAuth Code</span>
<input type="text"
ng-model="code"
ng-attr-placeholder="{{'Paste the authorization code here'}}" required>
</label>
</div>
<input class="button button-standard button-primary" type="submit" value="Connect Glidera Account" ng-disabled="oauthCodeForm.$invalid">
2016-08-24 07:33:43 -07:00
</form>
2015-09-08 20:02:12 -07:00
</div>
2015-09-02 12:02:40 -07:00
</div>
</div>
2015-09-05 10:30:02 -07:00
2016-12-05 06:17:48 -08:00
<div ng-if="token">
<div class="text-center m20v">
2016-10-17 06:59:40 -07:00
<img src="img/glidera-logo.png" ng-click="update({'fullUpdate': true})" width="200">
2015-09-08 08:04:27 -07:00
</div>
2016-10-17 06:59:40 -07:00
<div class="text-center m30v size-12"
ng-show="status && !status.userCanTransact">
<h4 class="text-bold">Complete Setup</h4>
<div>Your Glidera account is not ready to transact. Please, verify it at <b>Glidera.io</b></div>
<a class="button"
ng-init="glideraUrl = network == 'testnet' ? 'https://sandbox.glidera.io/login' : 'https://glidera.io/login'"
ng-click="openExternalLink(glideraUrl)">
Go to Glidera
</a>
2016-08-24 07:33:43 -07:00
</div>
2015-08-31 14:12:04 -07:00
<div class="list card"
2016-08-24 07:33:43 -07:00
ng-show="status && status.userCanTransact">
<a ng-show="status.userCanBuy"
class="item item-icon-right"
2016-12-05 06:54:54 -08:00
href ui-sref="tabs.buyandsell.glidera.amount({isGlidera: 'buy', glideraAccessToken: token})">
<img src="img/buy-bitcoin.svg" alt="buy bitcoin" width="45" class="item-img-buy">
2016-08-24 07:33:43 -07:00
Buy Bitcoin
<i class="icon bp-arrow-right"></i>
2016-08-24 07:33:43 -07:00
</a>
<a class="item item-icon-right"
2016-08-24 07:33:43 -07:00
ng-show="status.userCanSell"
2016-12-05 06:54:54 -08:00
href ui-sref="tabs.buyandsell.glidera.amount({isGlidera: 'sell', glideraAccessToken: token})">
<img src="img/sell-bitcoin.svg" alt="buy bitcoin" width="45" class="item-img-sell">
2016-08-24 07:33:43 -07:00
Sell Bitcoin
<i class="icon bp-arrow-right"></i>
2016-08-24 07:33:43 -07:00
</a>
2015-08-31 14:12:04 -07:00
</div>
<div class="list card" ng-show="permissions && permissions.transaction_history && txs.length > 0">
<div class="item item-heading">
Activity
</div>
<a ng-repeat="tx in txs"
2016-12-05 06:36:01 -08:00
ng-click="openTxModal(token, tx)"
class="item">
2016-08-24 07:33:43 -07:00
<span class="item-note">
<div ng-show="tx.status == 'COMPLETE'">
<time ng-if="tx.transactionDate">{{tx.transactionDate | amTimeAgo}}</time>
2015-09-29 13:58:04 -07:00
</div>
<div ng-show="tx.status == 'PROCESSING'">
<span ng-if="tx.status == 'PROCESSING'">Processing</span>
</div>
</span>
<img class="left m10r" src="img/bought.svg" alt="bought" width="39" ng-show="tx.type == 'BUY' && tx.status == 'COMPLETE'">
<img class="left m10r" src="img/bought-pending.svg" alt="bought" width="33" ng-show="tx.type == 'BUY' && tx.status == 'PROCESSING'">
<img class="left m10r" src="img/sold.svg" alt="bought" width="39" ng-show="tx.type == 'SELL' && tx.status == 'COMPLETE'">
<img class="left m10r" src="img/sold-pending.svg" alt="bought" width="33" ng-show="tx.type == 'SELL' && tx.status == 'PROCESSING'">
<h2>
<span ng-show="tx.type == 'BUY'">Bought</span>
<span ng-show="tx.type == 'SELL'">Sold</span>
<b>{{tx.qty}}</b> BTC
</h2>
<p>
{{tx.subtotal|currency:'':2}} {{tx.currency}}
</p>
</a>
2015-09-02 12:02:40 -07:00
</div>
2015-08-31 14:12:04 -07:00
</div>
2016-08-24 07:33:43 -07:00
</ion-content>
</ion-view>