-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
119 lines (111 loc) · 5.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Farm to Table</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;">Farm to Table</h1>
<hr>
<p style="text-align: center;">Prove the authenticity of organic vegetables 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>
Product ID
<br>
<input type="number" id="productId" name="productId" 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="11">Fetch Data 1</button>
<button class="btn-fetchTwo" id="button" type="button" data-id="12">Fetch Data 2</button>
</div>
</div>
</div>
<div class=form-break></div>
<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>
Upload Product Image
<input type="file" name="fileToUpload" id="fileToUpload" data-id="13"><br>
<button class="btn-upload" id="button" type="button" data-id="14">Upload Image</button><br><br>
<button class="btn-plant" id="button" type="button" data-id="1">Plant</button>
<button class="btn-grow" id="button" type="button" data-id="2">Grow</button>
<button class="btn-harvest" id="button" type="button" data-id="3">Harvest</button>
<button class="btn-process" id="button" type="button" data-id="4">Process</button>
<button class="btn-package" id="button" type="button" data-id="5">Package</button>
<button class="btn-forsale" id="button" type="button" data-id="6">ForSale</button>
</div>
<div class=form-break></div>
<div class="form-group">
</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 Organic Heirloom Tomatoes" 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>
Consumer 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="7">Buy</button>
<button class="btn-ship" id="button" type="button" data-id="8">Ship</button>
<button class="btn-receive" id="button" type="button" data-id="9">Receive</button>
<button class="btn-purchase" id="button" type="button" data-id="10">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://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- <script src="js/web3.min.js"></script> -->
<script src="js/truffle-contract.js"></script>
<script src="https://unpkg.com/ipfs/dist/index.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>