-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (98 loc) · 4.83 KB
/
Copy pathindex.html
File metadata and controls
107 lines (98 loc) · 4.83 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="media/images/favicon.ico">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<title>Products</title>
<link href="media/css/Bootstrap.css" rel="stylesheet" />
<link href="media/css/dataTables.bootstrap.css" rel="stylesheet" />
<link href="media/css/toastr.min.css" rel="stylesheet" />
<script src="media/js/jquery.js"></script>
<script src="media/js/Bootstrap.js"></script>
<script src="media/js/jquery.dataTables.js"></script>
<script src="media/js/jquery.dataTables.Bootstrap.js"></script>
<script src="media/js/jquery.view-engine.js"></script>
<script src="media/js/jquery.serializejson.js"></script>
<script src="media/js/toastr.min.js"></script>
<script type="text/javascript" language="javascript" src="media/js/products.js"></script>
<style>#addProduct { margin-top: 25px; }</style>
</head>
<body>
<div class="container">
<div class="clearfix">
<h1 class="pull-left">Products</h1>
<button id="addProduct" type="button" class="btn btn-primary pull-right" data-toggle="modal" data-target="#myModal">
<span class="glyphicon glyphicon-plus"></span> Add
</button>
</div>
<!-- Bootstrap Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Product</h4>
</div>
<div class="modal-body">
<!-- Bootstrap form -->
<form id="ProductForm">
<input type="hidden" id="ProductID" value=""/>
<div class="form-group">
<label for="Name">Title</label>
<input type="text" class="form-control" name="Name" placeholder="Title">
</div>
<div class="form-group">
<label for="Color">Color</label>
<select class="form-control" name="Color">
<option value="White">White</option>
<option value="Silver">Silver</option>
<option value="Magenta">Magenta</option>
<option value="Red">Red</option>
<option value="Multi">Multi</option>
<option value="Black">Black</option>
</select>
</div>
<div class="form-group">
<label for="Price" class="field-label">Price</label>
<input type="text" id="Price" name="Price" class="form-control">
</div>
<div class="form-group">
<label for="Quantity" class="field-label">Quantity</label>
<input type="text" id="Quantity" name="Quantity" class="form-control">
</div>
<!-- Allow form submission with keyboard without duplicating the dialog button -->
<input type="submit" tabindex="-1" style="position:absolute; top:-1000px">
</form>
<!-- End Bootstrap form -->
</div>
<div class="modal-footer">
<button id="cancelButton" type="reset" class="btn btn-link" data-dismiss="modal">Close</button>
<button id="submitButton" type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-floppy-save"></span> Save</button>
</div>
</div>
</div>
</div>
<!-- End Bootstrap modal -->
<!-- JQuery DataTable -->
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Product</th>
<th>Color</th>
<th>Price</th>
<th>Quantity</th>
<th>Made in</th>
<th>Tags</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
<!-- End JQuery DataTable -->
<a href="report.html">Go to reports</a>
</div>
</body>
</html>