87 lines
2.7 KiB
HTML
87 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>IMS: Manage Inventory
|
|
</title>
|
|
<!-- Latest compiled and minified CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Latest compiled JavaScript -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="frontend.css">
|
|
<link rel="shortcut icon" href="images/Logo.png" type="image/x-icon">
|
|
|
|
<script src="script.js"></script>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
|
|
<div id="navitem">
|
|
<a class="navbar-brand" href="#">
|
|
<img src="images/Logo.png" alt="Avatar Logo" class="rounded-pill">
|
|
</a>
|
|
<div id="head">
|
|
<h1 style="color: white;">Add Product </h1>
|
|
</div>
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div id="form" style="display: flex;">
|
|
|
|
<form id="myform" onsubmit="addParentProduct(event)">
|
|
|
|
<label for="parentproductName"> Product Name</label>
|
|
<input type="text" name="parentproductName" id="parentproductName" placeholder=" Product Name"
|
|
required>
|
|
<div id="aStoreSuggestion" style="margin-bottom: 10px;">
|
|
|
|
</div>
|
|
|
|
<label for="parentcategory">Select Category</label>
|
|
<select name="parentcategory" class="category" id="parentcategory" required>
|
|
<option value="" selected>Select category</option>
|
|
<option value="Mobile">Mobile </option>
|
|
<option value="TV and AV">TV and AV</option>
|
|
<option value="Home Appliances">Home Appliances</option>
|
|
<option value="Laptops and Monitors">Laptops and Monitors</option>
|
|
<option value="Accessories">Accessories</option>
|
|
</select>
|
|
<label for="pparentroductPrice"> Product's Price</label>
|
|
<input type="text" name="parentproductPrice" id="parentproductPrice" placeholder=" price in $"
|
|
required>
|
|
<label for="SKU"> Product's SKU</label>
|
|
<input type="text" name="parentSKU" id="parentSKU" placeholder=" SKU" required>
|
|
|
|
<input type="submit" value="Add product">
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
window.onload = () => {
|
|
const url = window.location.href;
|
|
const params = new URLSearchParams(window.location.search);
|
|
let storeId = params.get('storeId');
|
|
let storeField = document.getElementById('astoreId');
|
|
storeField.value = storeId;
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
</html> |