2023-12-06 22:05:45 +04:00
|
|
|
<html lang="ru">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Elitist</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></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>
|
|
|
|
|
2023-12-07 22:11:53 +04:00
|
|
|
<body class="page4x">
|
2023-12-06 22:05:45 +04:00
|
|
|
<header>
|
|
|
|
<nav class="navbar navbar-expand-md navbar-dark">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<a class="navbar-brand" href="./index.html">
|
|
|
|
<i class="fa-solid fa-microchip"></i>
|
|
|
|
Elitist
|
|
|
|
</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
|
|
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
|
|
|
<div class="navbar-nav">
|
|
|
|
<a class="nav-link active" href="./index.html">Главная страница</a>
|
|
|
|
<a class="nav-link" href="./page2.html">Жанры</a>
|
|
|
|
<a class="nav-link" href="./page3.html">Бестселлеры</a>
|
2023-12-07 22:11:53 +04:00
|
|
|
<a class="nav-link" href="./page4.html">Админ</a>
|
2023-12-06 22:05:45 +04:00
|
|
|
<a class="nav-link" href="./page5.html">Войти</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<main class="container-fluid p-2">
|
|
|
|
<button id="items-add" type="submit" class="btn btn-success">
|
|
|
|
Добавить книгу (диалог)
|
|
|
|
</button>
|
|
|
|
<div>
|
2024-01-09 15:01:48 +04:00
|
|
|
<table id="items-table" class="table table-hover">
|
2023-12-06 22:05:45 +04:00
|
|
|
<thead>
|
2024-01-09 15:01:48 +04:00
|
|
|
<th scope="col">№</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" class="w-15">Год выпуска</th>
|
|
|
|
<th scope="col" class="w-25">Описание</th>
|
|
|
|
<th scope="col" class="w-25">Кол-во</th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
<th scope="col"></th>
|
2023-12-06 22:05:45 +04:00
|
|
|
</thead>
|
2024-01-09 15:01:48 +04:00
|
|
|
<tbody></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fixed-bottom">
|
|
|
|
Жирнова Алена ПИбд-21
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="items-update" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
|
|
|
|
<div class="modal-dialog">
|
2023-12-06 22:05:45 +04:00
|
|
|
<form id="items-form" class="needs-validation" novalidate>
|
2024-01-09 15:01:48 +04:00
|
|
|
<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"
|
|
|
|
alt="placeholder">
|
|
|
|
</div>
|
|
|
|
<input id="items-line-id" type="number" hidden>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label for="nameBook" class="form-label">Название</label>
|
|
|
|
<input id="nameBook" class="form-control" name="nameBook" type="text" required="">
|
|
|
|
</div>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label for="author" class="form-label">Автор</label>
|
|
|
|
<select id="author" class="form-select" name="author" required>
|
|
|
|
</div>
|
|
|
|
<input id="genres-line-id" type="number" hidden>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label for="genre" class="form-label">Жанр</label>
|
|
|
|
<select id="genre" class="form-select" name="genre" required>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label for="description" class="form-label">Описание</label>
|
|
|
|
<input id="description" class="form-control" name="description" type="text" required="">
|
|
|
|
</div>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label for="yearPicker" class="form-label">Год выпуска</label>
|
|
|
|
<input id="yearPicker" class="form-control" name="yearPicker" type="text" required="">
|
|
|
|
</div>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label for="count" class="form-label">Количество книг</label>
|
|
|
|
<input
|
|
|
|
id="count"
|
|
|
|
name="count"
|
|
|
|
class="form-control"
|
|
|
|
type="number"
|
|
|
|
value="0"
|
|
|
|
min="1"
|
|
|
|
step="1"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="mb-2">
|
|
|
|
<label for="image" class="form-label">Изображение</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>
|
2023-12-06 22:05:45 +04:00
|
|
|
</div>
|
2024-01-09 15:01:48 +04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-12-06 22:05:45 +04:00
|
|
|
<script type="module">
|
|
|
|
import validation from "./js/validation";
|
|
|
|
import { linesForm } from "./js/lines";
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
validation();
|
|
|
|
linesForm();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|