-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
56 lines (56 loc) · 2.8 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Products System</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="CSS/bootstrap.min.css">
<link rel="stylesheet" href="CSS/all.min.css">
<link rel="stylesheet" href="CSS/style.css">
</head>
<body>
<div class="container overflow-auto py-3">
<form class="p-2">
<h1 class="text-center">Products System</h1>
<label for="inputName">Product Name:</label>
<input id="inputName" type="text" class="form-control my-1">
<div id="alertName" class="d-none alert alert-danger py-2 mb-2">This Name Is Not Valid<br>Example: Mi 9T</div>
<label for="inputPrice">Product Price:</label>
<input id="inputPrice" type="number" class="form-control my-1">
<div id="alertPrice" class="d-none alert alert-danger py-2 mb-2">This Price Is Not Valid<br>Example: 1000</div>
<label for="inputCategory">Product Category:</label>
<select id="inputCategory" class="form-select mt-1 mb-2">
<option value="MOBILE">MOBILE</option>
<option value="TV" selected>TV</option>
<option value="LAPTOB">LAPTOB</option>
</select>
<div id="alertCategory" class="d-none alert alert-danger py-2 mb-2">You Should Select Any Value</div>
<label for="inputCondition">Product Condition:</label>
<select id="inputCondition" class="form-select mt-1 mb-3">
<option class="bg-success text-white" value="Excellent">Excellent</option>
<option class="bg-warning text-white" value="Good" selected>Good</option>
<option class="bg-danger text-white" value="Bad">Bad</option>
</select>
<div id="alertCondition" class="d-none alert alert-danger py-2 mb-2">You Should Select Any Value</div>
<div class="text-center w-100">
<button id="btnAdd" class="btn mb-1 mb-sm-0 btn-success text-white" type="button">Add Product</button>
<button id="btnClear" class="btn mb-1 mb-sm-0 btn-outline-success" type="button">Clear Form</button>
</div>
<input id="inputSearch" class="form-control my-4" placeholder="Search By Name..." type="search">
</form>
<table class="table table-striped text-center p-2">
<thead>
<th>Index</th>
<th>Name</th>
<th>Price</th>
<th>Category</th>
<th>Condition</th>
<th>Actions</th>
</thead>
<tbody id="tableBody"></tbody>
</table>
</div>
<script src="JS/index.js"></script>
</body>
</html>