-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.ejs
106 lines (84 loc) · 3.8 KB
/
update.ejs
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
<html lang="en">
<head>
<title>Shoe Store</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/adminlte.min.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body>
<div>
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#" role="button">
<i class="fas fa-bars"></i></a>
</li>
<!-- <li class="nav-item d-none d-sm-inline-block"> -->
<a href="/" class="nav-link">Home</a>
</li>
</ul>
</nav>
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="#" class="brand-link">
<!--<img src="FFlogo.jpg"-->
<!--alt="Fashion Feet Logo"
class="brand-image img-circle elevation-3">-->
<span class="brand-text font-weight-light">Shoe Store</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
</div>
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<li class="nav-item">
<a href="/create" class="nav-link">
<i class="nav-icon far fa-circle text-info"></i>
<p>Add Product</p>
</a>
</li>
<li class="nav-item">
<a href="/deleteproduct" class="nav-link">
<i class="nav-icon far fa-circle text-info"></i>
<p class="text">Delete Product</p>
</a>
</li>
<li class="nav-item">
<a href="/updatestock" class="nav-link">
<i class="nav-icon far fa-circle text-info"></i>
<p class="text">Update Stock</p>
</a>
</li>
</ul>
</nav>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<section class="content-header">
<h1>Shoe Store Inventory Management</h1>
</section>
<div class="card">
<div class="card-header">
<h4 class="c1">Update Quantity of a product</h4>
<form action="/update" method="post">
<label>PRODUCT ID: </label>
<input type="text" placeholder="Enter product ID" name="id"><br>
<label>NEW STOCK: </label>
<input type="number" placeholder="Enter Quantity" name="stock"><br<br>
<button id="update">Update</button>
</form>
<section class="content">
</section>
</div>
</div>
</body>
</html>