Glidera - buy/sell
This commit is contained in:
parent
4ed39a22d4
commit
e266ded1d1
10 changed files with 309 additions and 32 deletions
29
public/views/buyGlidera.html
Normal file
29
public/views/buyGlidera.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<div
|
||||
class="topbar-container"
|
||||
ng-include="'views/includes/topbar.html'"
|
||||
ng-init="titleSection='Buy'; goBackToState = 'glidera'">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content glidera" ng-controller="buyGlideraController as buy">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
|
||||
<h1>Buy Bitcoin</h1>
|
||||
|
||||
<form name="form" ng-submit="buy.getSellPrice(index.glideraToken, {'qty': qty})" novalidate>
|
||||
<label>Price
|
||||
<input type="number" ng-model="qty">
|
||||
<input type="number" ng-model="fiat">
|
||||
</label>
|
||||
<input type="submit" value="Buy">
|
||||
</form>
|
||||
|
||||
<div ng-show="buyPrice">
|
||||
{{buyPrice}} --
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra-margin-bottom"></div>
|
||||
48
public/views/glidera.html
Normal file
48
public/views/glidera.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
|
||||
<div
|
||||
class="topbar-container"
|
||||
ng-include="'views/includes/topbar.html'"
|
||||
ng-init="titleSection='Glidera'; closeToHome = true">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content glidera" ng-controller="glideraController as glidera">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
|
||||
<a href ng-if="!index.glideraToken" ng-click="$root.go('preferencesGlidera')">
|
||||
Connect to Glidera
|
||||
</a>
|
||||
|
||||
<div ng-if="index.glideraToken" ng-init="glidera.init(index.glideraToken)">
|
||||
Connected to Glidera - <a href ng-click="$root.go('preferencesGlidera')">Preferences</a>
|
||||
|
||||
<div>
|
||||
<button class="" ng-click="$root.go('buyGlidera')">Buy</button>
|
||||
<button class="" ng-click="$root.go('sellGlidera')">Sell</button>
|
||||
</div>
|
||||
|
||||
<h2>Transactions</h2>
|
||||
<ul>
|
||||
<li ng-repeat="tx in txs">
|
||||
{{tx.transactionUuid}} --
|
||||
{{tx.transactionDate}} --
|
||||
{{tx.type}} --
|
||||
{{tx.price}} --
|
||||
{{tx.subtotal}} --
|
||||
{{tx.fees}} --
|
||||
{{tx.total}} --
|
||||
{{tx.currency}} --
|
||||
{{tx.estimatedDeliveryDate}} --
|
||||
{{tx.transactionHash}} --
|
||||
{{tx.status}}<br><br>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra-margin-bottom"></div>
|
||||
|
|
@ -1,25 +1,28 @@
|
|||
<div
|
||||
class="topbar-container"
|
||||
ng-include="'views/includes/topbar.html'"
|
||||
ng-init="titleSection='Glidera'; goBackToState = 'preferences'">
|
||||
ng-init="titleSection='Preferences Glidera'; goBackToState = 'glidera'">
|
||||
</div>
|
||||
|
||||
<div class="content preferences p20v" ng-controller="preferencesGlideraController as glidera">
|
||||
|
||||
<div class="row" ng-init="glidera.init(index.glideraToken)">
|
||||
<div class="large-12 columns">
|
||||
<a
|
||||
class="button outline dark-gray"
|
||||
ng-click="$root.openExternalLink(glidera.authenticateUrl)">
|
||||
Get OAuth Code
|
||||
</a>
|
||||
|
||||
<form name="form" ng-submit="glidera.submit(code)" novalidate>
|
||||
<label>OAuth Code
|
||||
<input type="text" ng-model="code">
|
||||
</label>
|
||||
<input type="submit" value="Get Access Token">
|
||||
</form>
|
||||
<div ng-show="!index.glideraToken">
|
||||
<a
|
||||
class="button outline dark-gray"
|
||||
ng-click="$root.openExternalLink(glidera.authenticateUrl)">
|
||||
Get OAuth Code
|
||||
</a>
|
||||
|
||||
<form name="form" ng-submit="glidera.submit(code)" novalidate>
|
||||
<label>OAuth Code
|
||||
<input type="text" ng-model="code">
|
||||
</label>
|
||||
<input type="submit" value="Get Access Token">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div ng-show="index.glideraToken">
|
||||
<a
|
||||
|
|
|
|||
30
public/views/sellGlidera.html
Normal file
30
public/views/sellGlidera.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<div
|
||||
class="topbar-container"
|
||||
ng-include="'views/includes/topbar.html'"
|
||||
ng-init="titleSection='Sell'; goBackToState = 'glidera'">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content glidera" ng-controller="sellGlideraController as sell">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
|
||||
<h1>Sell Bitcoin</h1>
|
||||
|
||||
<form name="form" ng-submit="sell.getSellPrice(index.glideraToken, {'qty': qty, 'fiat': fiat})" novalidate>
|
||||
<label>Price
|
||||
<input type="number" ng-model="qty">
|
||||
<input type="number" ng-model="fiat">
|
||||
</label>
|
||||
<input type="submit" value="Sell">
|
||||
</form>
|
||||
|
||||
<div ng-show="sellPrice">
|
||||
{{sellPrice}} --
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra-margin-bottom"></div>
|
||||
|
|
@ -113,9 +113,8 @@
|
|||
</div>
|
||||
<div class="right">
|
||||
|
||||
<a ng-if="index.glideraToken"
|
||||
class="button outline round light-gray tiny preferences-icon m0"
|
||||
ng-click="$root.go('preferencesGlidera')">
|
||||
<a class="button outline round light-gray tiny m0"
|
||||
ng-click="$root.go('glidera')">
|
||||
Glidera
|
||||
</a>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue