IP_3sem/2_laba_IP_project/page3.html

65 lines
2.7 KiB
HTML
Raw Normal View History

2023-11-10 16:26:04 +04:00
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Добавить товар</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
2023-11-30 21:17:52 +04:00
<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">
2023-11-10 16:26:04 +04:00
</head>
<body class="h-100 d-flex flex-column">
<main class="container-fluid p-2">
<div class="text-center add_object">
2023-11-30 21:17:52 +04:00
<a href="index.html">
<img class="back_arrow_icon " src="src/back_arrow_icon.png" alt="logo">
2023-11-10 16:26:04 +04:00
</a>
<h2>Добавить товар</h2>
<div class="mb-2 width_add_object">
<input id="name_object" name="name_object" class="form-control" type="text" placeholder="Название товара"
required>
</div>
<div class="mb-2 width_add_object">
<input id="price_object" name="price_object" class="form-control" type="text" placeholder="Цена" required>
</div>
<div class="mb-2 width_add_object">
<input id="count_object" name="count_object" class="form-control" type="text" placeholder="Количество"
required>
</div>
<div class="input-group mb-3 width_add_object">
<input type="file" class="form-control" id="inputGroupFile02">
</div>
<div class="text-center">
<button class="btn btn-primary add_object-button" type="submit">Добавить</button>
</div>
</div>
2023-11-30 21:17:52 +04:00
<!-- <script>-->
<!-- // Получаем ссылку на кнопку "Добавить"-->
<!-- var addButton = document.querySelector('.add_object-button');-->
<!-- // Добавляем обработчик события на клик по кнопке "Добавить"-->
<!-- addButton.addEventListener('click', function(event) {-->
<!-- // Получаем значения полей ввода-->
<!-- var name = document.getElementById('name_object').value;-->
<!-- var price = document.getElementById('price_object').value;-->
<!-- var count = document.getElementById('count_object').value;-->
<!-- // Сохраняем значения в localStorage-->
<!-- localStorage.setItem('name', name);-->
<!-- localStorage.setItem('price', price);-->
<!-- localStorage.setItem('count', count);-->
<!-- });-->
<!-- </script>-->
2023-11-10 16:26:04 +04:00
</main>
</body>
</html>