forked from shiv24/blockVerify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (125 loc) · 5.16 KB
/
Copy pathindex.html
File metadata and controls
145 lines (125 loc) · 5.16 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>blockVerify</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Application -->
<link href="css/app.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="jumbotron text-center">
<h1>blockVerify</h1>
</div>
<div class="col-md-12" id="article-list">
<div class="row">
<div class="col-lg-12">
<p id="account" class="welcome pull-right"></p>
<p id="accountBalance" class="welcome pull-left"></p>
</div>
</div>
</div>
</div>
<div id="articleTemplate" style="display: none;">
<div class="row-lg-12">
<div class="panel panel-default panel-article">
<div class="panel-heading">
<h3 class="panel-title"></h3>
</div>
<div class="panel-body">
<strong>Description</strong>: <span class="item-description"></span><br/>
<strong>Price (ETH)</strong>: <span class="item-price"></span><br/>
<strong>Added by</strong>: <span class="item-manufacturer"></span><br/>
</div>
<div class="panel-footer">
<label>here</label>
<button type="button" class="btn btn-primary btn-success btn-buy" onclick="App.createItem(); return false;">Buy</button>
</div>
</div>
</div>
</div>
<!-- Modal form to sell an article -->
<div class="modal fade" id="addItem" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Add Item</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-lg-12">
<form>
<div class="form-group">
<label for="name">Item name</label>
<input type="text" class="form-control" id="item_name" placeholder="Enter the name of your item">
</div>
<div class="form-group">
<label for="price">Item Price in ETH</label>
<input type="number" class="form-control" id="item_price" placeholder="1" pattern="[0-9]+([\.,][0-9]+)?" step="0.01">
</div>
<div class="form-group">
<label for="description">Item Description</label>
<textarea type="text" class="form-control vresize" id="item_description" placeholder="Describe your item" maxlength="255"></textarea>
</div>
</form>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-success" data-dismiss="modal" onclick="App.addItem(); return false;">Submit</button>
<button type="button" class="btn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal form to sell an article -->
<div class="modal fade" id="verifyItem" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Verify Item</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-lg-12">
<form>
<div class="form-group">
<label for="item_name">Item name</label>
<input type="text" class="form-control" id="item_name" placeholder="Enter the name of your item">
</div>
<div class="form-group">
<label for="item_owner">Item owner</label>
<textarea type="text" class="form-control vresize" id="item_owner" placeholder="Who is the owner" maxlength="255"></textarea>
</div>
</form>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-success" data-dismiss="modal" onclick="App.verifyItem(); return false;">Submit</button>
<button type="button" class="btn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="backend/web3.min.js"></script>
<script src="backend/truffle-contract.js"></script>
<script src="./app.js"></script>
</body>
</html>