-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (100 loc) · 4.87 KB
/
index.html
File metadata and controls
101 lines (100 loc) · 4.87 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
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="libs/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="libs/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<section id="create-products">
<legend>Create Products</legend>
<form id="form-create-product" action="#create-product" method="post" >
<fieldset id="form-fields">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" class="form-control" placeholder="Product Name" required />
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea id="description" style="resize: vertical;" rows="4" name="description" class="form-control" placeholder="Product Description" required ></textarea>
</div>
<div class="form-group">
<label for="image">Image</label>
<input type="file" id="image" class="form-control" required />
<div class="image-error" style="display: none;">
<span class="label label-danger">File type not valid, please select and Image.</span>
</div>
</div>
<div class="form-group">
<label for="quantity">Quantity</label>
<input id="quantity" name="quantity" class="form-control" type="number" min="1" step="1" placeholder="Product Quantity" required />
</div>
<div class="form-group">
<label for="price">Price</label>
<div class="input-group">
<div class="input-group-addon">$</div>
<input id="price" name="price" class="form-control" type="number" min="1" step="1" placeholder="Product Price" required />
</div>
</div>
<div class="text-right">
<span class="label label-warning product-processing" style="display:none;">processing</span>
<span class="label label-danger product-error" style="display: none;">Ups, something went wrong, please try again later.</span>
<span class="label label-success product-success" style="display: none;">Product created successfuly.</span>
<button id="btn-create-product" type="submit" class="btn btn-primary">Create Product</button>
</div>
</fieldset>
</form>
</section>
<section id="display-products">
<legend>The Shop - Last 6 created Produts</legend>
<div id="products-container" class="row">
</div>
<div class="panel panel-default">
<div class="panel-heading">
My Shopping Cart
</div>
<div class=" panel-body">
<table class="table table-striped">
<thead>
<tr>
<th>Product</th>
<th style="width: 75px;">Quantity</th>
<th style="width: 55px;">Price</th>
<th style="width: 10px;"></th>
<th style="width: 55px;">Total</th>
</tr>
</thead>
<tbody class="cart-container">
</tbody>
</table>
<div class="text-right">
<button id="buy-now" class="btn btn-primary disabled">BUY NOW</button>
</div>
</div>
</div>
</section>
<section id="display-orders">
<legend>Backend Simulation - Display Sold Orders - last 6 Orders</legend>
<div class="panel panel-warning">
<div class="panel-heading">
My Shop Summary ( This is a small representation on what could be the backend info )
</div>
<div class=" panel-body summary-container">
</div>
</div>
</section>
</div>
</div>
</div>
<script src="libs/jquery/jquery.min.js" type="text/javascript"></script>
<script src="libs/twitter-bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://www.parsecdn.com/js/parse-1.3.5.min.js"></script>
<script src="code/javascript-parse/parse-model.js" type="text/javascript"></script>
<script src="code/javascript-parse/parse-controller.js" type="text/javascript"></script>
</body>
</html>