-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathredeem.html
110 lines (107 loc) · 3.35 KB
/
redeem.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shopping</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet"
href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<link rel="stylesheet" href="ricardianContract.css" />
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"
type="text/javascript"></script>
<script
src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
type="text/javascript"></script>
<script type="text/javascript" src="web3.js"></script>
<script type="text/javascript" src="bignumber.js"></script>
<script type="text/javascript" src="ricardianToken.js"></script>
<script type="text/javascript">
</script>
<style>
.navbar {
margin-bottom: 0;
border-radius: 0;
}
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
</style>
</head>
<body>
<div class="container bg-3 text-center">
<div class="row">
<div class="col-sm-6">
<div class="well text-left">
<div class="media">
<div class="media-left">
<img src="./images/coffee.jpg" + myImage
class="media-object img-circle" style="width: 100px">
</div>
<div class="media-body">
<p id="voucherTokenName">
Voucher: <span class="badge">voucherTokenName</span>
</p>
<p>
<a
href="voucher.xml" target="_blank">View
the voucher contract</a>
<p id="myBalance">
My Balance: <span class="badge">voucherTokenSymbol</span>
</p>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li><a href="transfer.html"><span
class="glyphicon glyphicon-send"></span> Transfer </a></li>
<li class="active"><a href="redeem.html"><span
class="glyphicon glyphicon-shopping-cart"></span> Redeem </a></li>
<li><a href="scan.html">Scan QR <span
class="glyphicon glyphicon-qrcode"></span></a></li>
</nav>
</div>
<div class="panel-body">
<p id="display"></p>
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="control-label col-sm-2" for="payee">
Account: </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="payee"
placeholder="Enter shopping account">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="amount">Amount:</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="amount"
placeholder="Enter amount">
</div>
</div>
<div class="form-group">
<label class="col-sm-2" for="products">Products:</label>
<textarea rows="3" cols="50" id="products"
placeholder="Product; Price; Units; Total"></textarea>
</div>
</form>
</div>
<div class="panel-footer">
<div class="btn-group">
<button type="submit" class="btn btn-success"
onClick="transfer();">
<span class="glyphicon glyphicon-shopping-cart"></span> Shop
</button>
</div>
</div>
</div>
<h4>Shoppings</h4>
</div>
</div>
</div>
</body>
</html>