copay/public/views/glidera.html

188 lines
7.4 KiB
HTML
Raw Normal View History

2016-08-24 07:33:43 -07:00
<ion-view>
<ion-nav-bar class="bar-stable">
<ion-nav-buttons side="primary">
<button class="button no-border" ui-sref="tabs.home">
Close
</button>
</ion-nav-buttons>
<ion-nav-title>Glidera</ion-nav-title>
</ion-nav-bar>
2015-08-31 14:12:04 -07:00
2016-08-24 07:33:43 -07:00
<ion-content ng-controller="glideraController as glidera" ng-init="init()">
2015-08-31 14:12:04 -07:00
2016-08-24 07:33:43 -07:00
<div class="box-notification text-center size-12 text-warning" ng-show="network == 'testnet'">
<i class="fi-info"></i>
Testnet wallets only work with Glidera Sandbox Accounts
</div>
<div class="m20b box-notification" ng-if="error">
2015-09-11 10:18:33 -07:00
<div class="text-warning">
2016-08-24 07:33:43 -07:00
<span>{{error}}</span>
2015-09-08 20:02:12 -07:00
</div>
2015-09-11 10:18:33 -07:00
</div>
2016-08-24 07:33:43 -07:00
<div class="m10t text-center" ng-show="error">
2015-09-11 10:18:33 -07:00
<button
2016-08-24 07:33:43 -07:00
class="button"
ng-show="error.indexOf('Forbidden') == 40"
ng-click="token = null; error = null">
2015-09-11 10:18:33 -07:00
Request a new token
</button>
2016-08-24 07:33:43 -07:00
<div ng-show="error.indexOf('Forbidden') != 40">
2015-09-10 16:02:03 -07:00
<button
2016-08-24 07:33:43 -07:00
class="button"
ng-click="init(token)">
2015-09-11 10:18:33 -07:00
Retry
2015-09-08 20:02:12 -07:00
</button>
2015-09-11 10:18:33 -07:00
<div class="m20t size-12">
2016-08-24 07:33:43 -07:00
<a class="text-gray" href ui-sref="glidera.preferences">Preferences</a>
2015-09-08 06:17:59 -07:00
</div>
</div>
</div>
2015-09-07 07:14:09 -07:00
2016-08-24 07:33:43 -07:00
<div ng-if="!token && !error">
<div ng-init="showOauthForm = false">
<div class="text-center m20b">
<img src="img/glidera-logo.png" ng-click="update(token, permissions)" width="200">
</div>
<div class="text-center small-10 small-centered columns" ng-show="!showOauthForm">
<p class="m10b">You can buy and sell Bitcoin with a US bank account directly in Copay.</p>
2016-08-24 07:33:43 -07:00
<p class="m20t padding text-gray size-12 text-left">
DISCLOSURE.<br>
Glidera Inc. (Glidera) is providing the service of buying or selling bitcoins to Copay users. To enable this
service, Glidera has registered with US Treasury Departments FinCEN as a Money Service Business
(#31000042625755). Users of Copay must agree to the service agreement presented by Glidera prior to obtaining
Glideras service of buying or selling bitcoins. Service available in U.S. and Canada only. In U.S. (buy & sell) CA, GA, IL, KS,
MA, MD, MO, MT, MN, SC, TX, AZ, CO, DE, ME, NJ, PA, TN, UT, NV, WI. In Canada (buy & sell) AB, BC, MB, NB, NL, NS, NT, NU,
ON, PE, SK, YT.
</p>
2016-08-24 07:33:43 -07:00
<p class="m20t text-gray size-12">Connect your Glidera account to get started</p>
2016-08-24 07:33:43 -07:00
<button class="button"
ng-click="openExternalLink(glidera.getAuthenticateUrl(), '_system'); showOauthForm = true">
Connect to Glidera
</button>
<div class="m10t">
<a href ng-click="showOauthForm = true" class="text-gray size-12">
Do you already have the Oauth Code?
</a>
</div>
2015-09-05 10:30:02 -07:00
</div>
2016-08-24 07:33:43 -07:00
<div ng-show="showOauthForm">
<div class="text-left box-notification size-12 text-warning" ng-show="error">
{{error}}
</div>
<form name="oauthCodeForm" ng-submit="glidera.submitOauthCode(code)" novalidate>
<div class="list">
<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>
<div class="row">
<div class="col">
<input type="button"
value="Cancel"
class="button button-block"
ng-click="showOauthForm = false; error = null">
</div>
<div class="col">
<input
class="button button-block"
type="submit"
value="Get started"
ng-disabled="oauthCodeForm.$invalid">
</div>
</div>
</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-08-24 07:33:43 -07:00
<div ng-if="token && permissions">
<div class="p20v text-center">
<img src="img/glidera-logo.png" ng-click="update(token, permissions)" width="100">
2015-09-08 08:04:27 -07:00
</div>
2016-08-24 07:33:43 -07:00
<div class="list">
<a class="item item-icon-left" href ui-sref="glidera.preferences">
<i class="icon ion-gear-a"></i>
<span ng-show="personalInfo">{{personalInfo.firstName}} {{personalInfo.lastName}}</span>
<span class="item-note" ng-show="email">
{{email}}
2015-09-10 16:02:03 -07:00
</span>
</a>
2016-08-24 07:33:43 -07:00
</div>
<div class="padding">
<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>
</div>
2015-09-10 16:02:03 -07:00
</div>
2015-09-08 08:04:27 -07:00
</div>
2015-08-31 14:12:04 -07:00
2016-08-24 07:33:43 -07:00
<div class="list"
ng-show="status && status.userCanTransact">
<a ng-show="status.userCanBuy"
class="item item-avatar"
href ui-sref="glidera.buy">
<img src="img/buy-bitcoin.svg" alt="buy bitcoin" width="40">
Buy Bitcoin
</a>
<a class="item item-avatar"
ng-show="status.userCanSell"
href ui-sref="glidera.sell">
<img src="img/sell-bitcoin.svg" alt="buy bitcoin" width="40">
Sell Bitcoin
</a>
2015-08-31 14:12:04 -07:00
</div>
2016-08-24 07:33:43 -07:00
<div ng-show="permissions.transaction_history">
<h4>Activity</h4>
<div ng-show="txs.length == 0 "
class="size-12 p10 text-center text-gray">
No activity in your account
2015-09-05 10:30:02 -07:00
</div>
2016-08-24 07:33:43 -07:00
<div class="list">
<a ng-repeat="tx in txs"
ng-click="glidera.openTxModal(token, tx)"
class="item item-avatar">
<img src="img/bought.svg" alt="bought" width="39" ng-show="tx.type == 'BUY' && tx.status == 'COMPLETE'">
<img src="img/bought-pending.svg" alt="bought" width="33" ng-show="tx.type == 'BUY' && tx.status == 'PROCESSING'">
<img src="img/sold.svg" alt="bought" width="39" ng-show="tx.type == 'SELL' && tx.status == 'COMPLETE'">
<img 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>
<div class="right">
<div class="m5t size-12 text-gray">
<div ng-show="tx.status == 'COMPLETE'">
<time ng-if="tx.transactionDate">{{tx.transactionDate | amTimeAgo}}</time>
</div>
<div ng-show="tx.status == 'PROCESSING'">
<span class="label outline gray radius text-gray text-info" ng-if="tx.status == 'PROCESSING'">Processing</span>
</div>
</div>
2015-09-29 13:58:04 -07:00
</div>
2016-08-24 07:33:43 -07:00
</a>
2015-09-05 10:30:02 -07:00
</div>
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>