IP_3sem/3_laba_IP_project/page-admin.html

73 lines
2.9 KiB
HTML

<html lang="ru">
<head>
<meta charset="utf-8">
<title>Добавить товар</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="module" src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="css/style.css">
</head>
<body class="h-100 d-flex flex-column">
<main class="container-fluid p-2">
<a href="index.html">
<img class="back_arrow_icon " src="src/back_arrow_icon.png" alt="logo">
</a>
<form id="items-form" class="needs-validation" novalidate>
<div class="text-center add_object">
<h2>Добавить товар</h2>
<div class="text-center">
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded"
alt="placeholder">
</div>
<div class="mb-2 width_add_object">
<!-- <label for="item" class="form-label">Название</label>-->
<select id="item" class="form-select" name="selected" required>
</select>
</div>
<div class="mb-2 width_add_object">
<!-- <label class="form-label" for="price">Цена</label>-->
<input id="price" name="price" class="form-control" type="number" placeholder="Цена" min="0" step="100"
required>
</div>
<div class="mb-2 width_add_object">
<!-- <label class="form-label" for="price">Количество</label>-->
<input id="count" name="count" class="form-control" type="number" placeholder="Количество" min="0"
step="1" required>
</div>
<div class=" mb-3 width_add_object">
<!-- <label class="form-label" for="image">Изображение</label>-->
<input id="image" type="file" name="image" class="form-control" accept="image/*" required>
</div>
<div class="mb-2 width_add_object">
<label for="item" class="form-label">Скидка</label>
<select id="discounts" class="form-select" name="selected" required>
</select>
</div>
<div class="text-center">
<button class="btn btn-primary add_object-button" type="submit">Добавить</button>
</div>
</div>
</form>
</main>
<script type="module">
import validation from "./js/validation";
import {linesPageForm} from "./js/lines"
document.addEventListener('DOMContentLoaded', () => {
validation();
linesPageForm();
});
</script>
</body>
</html>