-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_add.ejs
More file actions
35 lines (35 loc) · 1.23 KB
/
admin_add.ejs
File metadata and controls
35 lines (35 loc) · 1.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin | Add Product</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5" style="max-width:600px">
<div class="card p-4 shadow-sm">
<h3 class="text-center mb-4">Add New Product</h3>
<form action="/admin/add" method="POST">
<div class="mb-3">
<label>Product Name</label>
<input type="text" name="name" class="form-control" required>
</div>
<div class="mb-3">
<label>Price (₹)</label>
<input type="number" name="price" class="form-control" required>
</div>
<div class="mb-3">
<label>Description</label>
<textarea name="description" class="form-control" rows="3" required></textarea>
</div>
<div class="mb-3">
<label>Image URL</label>
<input type="text" name="image" class="form-control" placeholder="Paste image URL" required>
</div>
<button class="btn btn-primary w-100">Upload Product</button>
<a href="/admin/manage" class="d-block mt-2 text-center">Manage Products</a>
</form>
</div>
</div>
</body>
</html>