141 lines
4.6 KiB
HTML
141 lines
4.6 KiB
HTML
<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>
|
||
|
||
<body class="">
|
||
<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>
|
||
<a class="nav-link" href="./AboutUs.html">О нас</a>
|
||
<a class="nav-link" href="./page5.html">Войти</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
</header>
|
||
<main class="container-fluid p-2">
|
||
<div class="text-center">
|
||
<img
|
||
id="image-preview"
|
||
src="https://via.placeholder.com/200"
|
||
class="rounded rounded-circle"
|
||
alt="placeholder"
|
||
/>
|
||
</div>
|
||
<form id="items-form" class="needs-validation" novalidate>
|
||
<div class="mb-2">
|
||
<label for="item" class="form-label">Жанр</label>
|
||
<select
|
||
id="item"
|
||
class="form-select"
|
||
name="selected"
|
||
required
|
||
></select>
|
||
</div>
|
||
<div class="mb-2">
|
||
<label for="author" class="form-label">Автор</label>
|
||
<input
|
||
id="author"
|
||
name="author"
|
||
class="form-control"
|
||
type="text"
|
||
maxlength="100"
|
||
required
|
||
/>
|
||
</div>
|
||
<div class="mb-2">
|
||
<label for="name" class="form-label">Название</label>
|
||
<input
|
||
id="name"
|
||
name="name"
|
||
class="form-control"
|
||
type="text"
|
||
maxlength="100"
|
||
required
|
||
/>
|
||
</div>
|
||
<div class="mb-2">
|
||
<label for="desc" class="form-label">Описание</label>
|
||
<input
|
||
id="desc"
|
||
name="desc"
|
||
class="form-control"
|
||
type="text"
|
||
maxlength="100"
|
||
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="date" class="form-label">Дата</label>
|
||
<input
|
||
id="date"
|
||
name="date"
|
||
class="form-control"
|
||
type="date"
|
||
value="2022-01-01"
|
||
required
|
||
/>
|
||
</div>
|
||
</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>
|
||
<a href="/page4.html" class="btn btn-secondary">Назад</a>
|
||
<button type="submit" class="btn btn-primary">Сохранить</button>
|
||
</form>
|
||
</main>
|
||
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
|
||
Жирнова Алена ПИбд-21
|
||
</footer>
|
||
<script type="module">
|
||
import validation from "./js/validation";
|
||
import { linesPageForm } from "./js/lines";
|
||
|
||
document.addEventListener("DOMContentLoaded", () => {
|
||
validation();
|
||
linesPageForm();
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|