-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
196 lines (192 loc) · 5.28 KB
/
index.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fair Trade Coffee</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto"
rel="stylesheet"
/>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="container">
<h1 style="text-align: center">Fair Trade Coffee</h1>
<hr />
<p style="text-align: center">
Prove the authenticity of coffee using the Ethereum blockchain.
</p>
</div>
<div id="ftc-harvest">
<h2>Product Overview</h2>
<div class="form-group">
SKU
<br />
<input
class="input-field"
type="number"
id="sku"
name="sku"
value="1"
/><br />
UPC
<br />
<input type="number" id="upc" name="upc" value="1" /><br />
Current Owner ID
<br />
<input
type="text"
id="ownerID"
name="ownerID"
value="0x963865f57804b38459dd4b2da2f760211a200438"
size="50"
/><br />
<div class="button-div">
<button class="btn-fetchOne" id="button" type="button" data-id="9">
Fetch Data 1
</button>
<button class="btn-fetchTwo" id="button" type="button" data-id="10">
Fetch Data 2
</button>
</div>
</div>
<div class="form-break"></div>
<h2>Farm Details</h2>
<div class="form-group">
Farmer ID
<br />
<input
type="text"
id="originFarmerID"
name="originFarmerID"
value="0x99c289eb2aacec289631a5ddf62cf27a63d4494f"
size="50"
/><br />
Farm Name
<br />
<input
type="text"
id="originFarmName"
name="originFarmName"
value="John Doe"
/><br />
Farm Information
<br />
<input
type="text"
id="originFarmInformation"
name="originFarmInformation"
value="Yarra Valley"
/><br />
Farm Latitude
<br />
<input
type="text"
id="originFarmLatitude"
name="originFarmLatitude"
value="-38.239770"
/><br />
Farm Longitude
<br />
<input
type="text"
id="originFarmLongitude"
name="originFarmLongitude"
value="144.341490"
/><br />
<br />
<button class="btn-harvest" id="button" type="button" data-id="1">
Harvest
</button>
<button class="btn-process" id="button" type="button" data-id="2">
Process
</button>
<button class="btn-pack" id="button" type="button" data-id="3">
Pack
</button>
<button class="btn-forsale" id="button" type="button" data-id="4">
ForSale
</button>
</div>
<div class="form-break"></div>
<h2>Product Details</h2>
<div class="form-group">
Product Notes
<br />
<input
type="text"
id="productNotes"
name="productNotes"
value="Best beans for Espresso"
size="60"
/><br />
Product Price
<br />
<input
type="number"
id="productPrice"
name="productPrice"
value="1"
/>ETH<br />
Distributor ID
<br />
<input
type="text"
id="distributorID"
name="distributorID"
value="0xf1b1bcd24dad92303dd9fe78be639f7bcf9c238d"
size="50"
/>
<br />
Retailer ID
<br />
<input
type="text"
id="retailerID"
name="retailerID"
value="0x0fb2bfefd526966c87efa19f6693d50971763fc2"
size="50"
/><br />
Distributor ID
<br />
<input
type="text"
id="consumerID"
name="consumerID"
value="0x5d777e9127b28fb119e81a6304278a0a21bef1c4"
size="50"
/><br />
<br />
<button class="btn-buy" id="button" type="button" data-id="5">
Buy
</button>
<button class="btn-ship" id="button" type="button" data-id="6">
Ship
</button>
<button class="btn-receive" id="button" type="button" data-id="7">
Receive
</button>
<button class="btn-purchase" id="button" type="button" data-id="8">
Purchase
</button>
</div>
<div class="form-break"></div>
<hr />
</div>
<h2>Transaction History<span id="ftc-history"></span></h2>
<div>
<ul id="ftc-events">
<!-- Events will appear here from app.js -->
</ul>
<br />
<hr />
</div>
<script src="https://cdn.jsdelivr.net/npm/truffle-contract@4.0.31/dist/truffle-contract.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/web3-min-js@1.0.0/web3.min.js"></script>
<!-- <script src="js/web3.min.js"></script> -->
<!-- <script src="js/truffle-contract.js"></script> -->
<script src="js/app.js"></script>
</body>
</html>