internet_programming/laba3/ip laba3/adminNew.html

140 lines
6.4 KiB
HTML
Raw Normal View History

2023-12-22 14:06:40 +04:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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="styles/style.css">
<title>Document</title>
</head>
<body>
<header class="fixed-top">
<nav class="navbar navbar-expand-lg bg-body-tertiary" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.html"><img src="images/icons8-ос-mac (4).svg" alt=""></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Переключатель навигации">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<div class="admin-header"><a class="nav-link" href="admin.html">Администратор</a></div>
<a class="nav-link" href="about us.html">О нас</a>
<a class="nav-link" href="catalog.html">Каталог</a>
<a class="nav-link" href="support.html">Поддержка</a>
<a class="nav-link" href="singin.html">Войти</a>
</div>
</div>
</div>
</nav>
</header>
<main class="mainAdmin">
<div class="container-fluid">
<div class="btn-group" role="group">
<button id="items-add" class="btn btn-primary">Добавить Товар</button>
</div>
<div>
<table id="items-table" class="table table-striped">
<thead>
<th scope="col"></th>
<th scope="col" class="w-25">Категория</th>
<th scope="col" class="w-25">Oпция</th>
<th scope="col" class="w-25">Товар</th>
<th scope="col" class="w-25">Цвет</th>
<th scope="col" class="w-25">Цена</th>
<th scope="col" ></th>
<th scope="col" ></th>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</main>
<div id="items-update" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog">
<form id="items-form" class="needs-validation" novalidate>
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="items-update-title"></h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="text-center">
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-0"
alt="placeholder">
</div>
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label for="item" class="form-label">Категория</label>
<select id="item" class="form-select" name="selected" required>
</select>
</div>
<!-- -->
<div id="optionHidden" class="mb-2" hidden>
<label for="productOption" class="form-label">Опция</label>
<select id="productOption" class="form-select" name="selected-option" required>
</select>
</div>
<!-- -->
<div class="mb-2">
<label class="form-label" for="product">Товар</label>
<input id="product" name="product" class="form-control" type="text"
required>
</div>
<div class="mb-2">
<label for="color" class="form-label">Цвет</label>
<select id="color" class="form-select" name="selected-color" required>
</select>
</div>
<div class="mb-2">
<label class="form-label" for="price">Цена</label>
<input id="price" name="price" class="form-control" type="number" value="0.00" min="1000.00"
step="0.50" required>
</div>
<div class="mb-2">
<label class="form-label" for="image">Изображение</label>
<input id="image" type="file" name="image" class="form-control" accept="image/*">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
<button type="submit" class="btn btn-primary">Сохранить</button>
</div>
</div>
</form>
</div>
</div>
<footer>
<nav class="navbar bg-body-tertiary" data-bs-theme="dark">
<div class="container-fluid">
<div class="navbar-text">
Kozlovanastya260104@gmail.com
</div>
</div>
</nav>
</footer>
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script type="module" src="js/option.js"></script>
<script type="module">
import validation from "./js/validation";
import { linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesForm();
});
</script>
</body>
</html>