-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadd-product.html
168 lines (168 loc) · 4.62 KB
/
add-product.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html>
<head>
<title>Marketplace</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css" />
<script
src="https://kit.fontawesome.com/1449b0787b.js"
crossorigin="anonymous"
></script>
</head>
<body>
<header class="row justify-content-center align-items-center">
<img
id="marketplace-logo"
src="img/Marketplace.svg"
alt="Marketplace Logo"
/>
<nav
class="navbar navbar-expand-lg navbar-light col-12 justify-content-center align-items-center"
>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse col-12" id="navbarNav">
<ul class="navbar-nav col-12 justify-content-center">
<li class="nav-item">
<a class="nav-link" href="index.html">Home |</a>
</li>
<li class="nav-item">
<a class="nav-link" href="products.html">All Products |</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sale.html">Sale Items |</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sellers.html">Shop By Sellers |</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sellers-area.html">Sellers Area |</a>
</li>
<li class="nav-item">
<a class="nav-link" href="basket.html"
><i class="fa-solid fa-basket-shopping"></i> View Basket</a
>
</li>
</ul>
</div>
</nav>
</header>
<main class="container-fluid">
<form onsubmit="addProduct(event)" id="add-product-form">
<legend>List an Item on Marketplace</legend>
<div class="form-group">
<label for="productSellerInput">Seller</label>
<select type="select" class="form-control" id="productSellerInput">
<option value="seller1">Seller 1</option>
<option value="seller2">Seller 2</option>
<option value="seller3">Seller 3</option>
<option value="seller4">Seller 4</option>
<option value="seller5">Seller 5</option>
<option value="seller6">Seller 6</option>
</select>
</div>
<div class="form-group">
<label for="productNameInput">Product Name</label>
<input
type="text"
id="productNameInput"
class="form-control"
required
/>
</div>
<div class="form-group">
<label for="productImageInput">Product Image (URL)</label>
<input
type="url"
class="form-control"
id="productImageInput"
required
/>
</div>
<div class="form-group">
<label for="productPriceInput">Price (£0.00)</label>
<input
type="number"
id="productPriceInput"
class="form-control"
placeholder="0.00"
step="0.01"
required
/>
</div>
<div class="form-group">
<label for="productDiscountInput">Product Discount (%)</label>
<input
type="number"
name="productDiscountInput"
class="form-control"
id="productDiscountInput"
/>
</div>
<div class="form-group">
<label for="productStockInput">Available Stock</label>
<input type="checkbox" id="productStockInput" required />
</div>
<div class="form-group">
<label for="productDescInput">Product Description</label>
<textarea
name="productDescInput"
id="productDescInput"
class="form-control"
cols="30"
rows="10"
required
></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</main>
<footer class="row p-2">
<div
id="footer-inner"
class="d-flex justify-content-between align-items-center"
>
<ul class="col-6" id="contact">
<li>Marketplace</li>
<li>The Street</li>
<li>The Town</li>
<li>The City</li>
<li>The County</li>
<li>PO5 1CD</li>
</ul>
<ul id="socials" class="row">
<li>
<a href="www.facebook.com" target="_blank">
<i class="fa-brands fa-facebook"></i
></a>
</li>
<li>
<a href="www.instagram.com" target="_blank"
><i class="fa-brands fa-instagram"></i
></a>
</li>
<li>
<a href="www.twitter.com" target="_blank"
><i class="fa-brands fa-twitter"></i
></a>
</li>
<li>
<a href="www.tiktok.com"><i class="fa-brands fa-tiktok"></i></a>
</li>
</ul>
</div>
</footer>
<script src="scripts/global.js"></script>
<script src="scripts/add-product.js"></script>
</body>
</html>