-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd-product.html
More file actions
91 lines (78 loc) · 3.61 KB
/
Copy pathadd-product.html
File metadata and controls
91 lines (78 loc) · 3.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Add Product | Tenjiku</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
<!-- Custom Styles -->
<link rel="stylesheet" href="css/add-product.css" />
</head>
<body>
<div class="container mt-5 shadow-lg bg-light rounded-4">
<h2 class="text-center fw-bold mb-4">Add Product</h2>
<form id="addProductForm">
<div class="mb-3">
<label for="productName" class="form-label">Product Name</label>
<input type="text" class="form-control form-control-lg" id="productName" placeholder="Enter product name" required />
</div>
<div class="mb-3">
<label for="productCategory" class="form-label">Category</label>
<select class="form-select form-select-lg" id="productCategory" required>
<option value="">-- Select Category --</option>
<option value="TOY">Toy</option>
<option value="ELECTRONICS">Electronics</option>
<option value="STATIONERY">Stationery</option>
<option value="CLOTHES">Clothes</option>
<option value="COSMETICS">Cosmetics</option>
<option value="SHOES">Shoes</option>
<option value="BAGS">Bags</option>
</select>
</div>
<div class="mb-3">
<label for="productDescription" class="form-label">Description</label>
<textarea class="form-control form-control-lg" id="productDescription" rows="3" maxlength="1000" placeholder="Enter product description..."></textarea>
</div>
<div class="mb-3">
<label for="productImage" class="form-label">Image URL</label>
<input type="url" class="form-control form-control-lg" id="productImage" placeholder="https://example.com/image.jpg" />
</div>
<div class="mb-3">
<label for="productStock" class="form-label">Stock</label>
<input type="number" class="form-control form-control-lg" id="productStock" min="0" value="0" />
</div>
<!-- Price Section -->
<div id="priceSection" class="p-3 border rounded bg-white">
<h4 class="mb-3">Product Prices</h4>
<div class="price-row row g-3 align-items-end mb-3">
<div class="col-md-5">
<label class="form-label">Amount</label>
<input type="number" class="form-control price" placeholder="Enter amount" required />
</div>
<div class="col-md-5">
<label class="form-label">Start Date</label>
<input type="datetime-local" class="form-control priceDate" required />
</div>
<div class="col-md-2 d-grid">
<button type="button" class="btn btn-danger remove-price-btn" style="display: none;">Remove</button>
</div>
</div>
</div>
<div class="my-3">
<button type="button" class="btn btn-outline-secondary btn-sm" id="addPriceBtn">+ Add Price</button>
</div>
<div class="mt-4 d-grid gap-2">
<button type="submit" class="btn btn-success btn-lg">Submit Product</button>
<a href="admin.html" class="btn btn-outline-primary">Back</a>
</div>
</form>
</div>
<!-- Toast Container -->
<div id="toastContainer" class="position-fixed top-0 end-0 p-3" style="z-index: 2000;"></div>
<!-- Bootstrap Bundle (includes Popper) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<!-- JavaScript Module -->
<script type="module" src="js/add-product.js"></script>
</body>
</html>