-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventory.html
129 lines (121 loc) · 5.81 KB
/
inventory.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="lib/bootstrap-datepicker.css">
<link rel="stylesheet" href="css/inventory.css">
</head>
<body>
<!--Start of Navbar-->
<header id="headerNav" class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="img/logo.svg" alt="ProdMag Logo">
</a>
<div class="logoText">
<span class="prod">P</span>rod
<span class="mag">M</span>ag</div>
<a class="nav-link" href="#">
<button id="Logout" class="nav-item">Logout</button>
</a>
</header>
<!--End of Navbar-->
<!--Start of Table-->
<div class="limiter">
<div class="container-table100">
<div class="wrap-table100">
<div class="table100">
<table id="example" style="width:100%">
<thead>
<tr class="table100-head">
<th class="column1">Expiring Date</th>
<th class="column2">Category</th>
<th class="column3">Name</th>
<th class="column4">Price</th>
<th class="column5">Quantity</th>
<th class="column6">Action</th>
</tr>
</thead>
<tbody id="tablepopulate">
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--End of Table-->
<!--start of edit modal -->
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Product details</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form method="post">
<div class="form-group formGroupField">
<input id="id" hidden type="text">
<label for="formGroupExampleInput">Name</label>
<input type="text" class="form-control modalInput" id="name" placeholder="Name of product" required />
<label for="formGroupExampleInput">Price</label>
<input type="text" class="form-control modalInput" id="price" placeholder="Price of product $34" required />
<label for="formGroupExampleInput">Quantity</label>
<input type="text" class="form-control modalInput" id="prodQaun" placeholder="Quantity of the product 34" required />
<label for="formGroupExampleInput">Expiring date</label>
<input type="text" class="form-control modalInput" id="expireDate" placeholder="Please pick an expiring date"
required />
<label for="formGroupExampleInput">Product description</label>
<input type="text" class="form-control modalInput" id="describe" placeholder="A little discription of the product" required
/>
<label for="formGroupExampleInput">Image for product</label>
<input type="text" class="form-control modalInput" id="imgLnk" placeholder="Insert an online resource of product image"
required />
<div class="form-group">
<label for="exampleFormControlSelect1">Product category</label>
<select class="form-control" id="catId">
<option>computing</option>
<option>grocery</option>
<option>fashion</option>
<option>electronics</option>
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button id="closeButton" type="button" class="btn btn-secondary" data-dismiss="modal">
Close
</button>
<button id="submitProduct" type="button" class="btn btn-primary" data-dismiss="modal">
Save product
</button>
</div>
</div>
</div>
</div>
<!--end of registration modal -->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" src="lib/bootstrap-datepicker.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8"></script>
<script src="js/inventory.js"></script>
</body>
</html>