Internet-programming_PIbd-2.../Library/page-edit.html

94 lines
4.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html lang="ru">
<head>
<meta charset="utf-8">
<title>Страница админа</title>
<link rel="icon" type="image/svg+xml" href="./img/logo.svg" />
<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">
<header>
<nav class="navbar navbar-expand-md navbar-light">
<div class="container-fluid">
<a href="./index.html" class="navbar-brand fs-4">
<img src="./img/logo.svg" alt="logo" width="37px">
Библиотека
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end fs-4" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li>
<a href="./index.html" class="nav-link">Главная</a>
</li>
<li class="nav-item">
<a href="./login-page.html" class="nav-link">Войти</a>
</li>
<li class="nav-item">
<a href="./user-page.html" class="nav-link">Личный кабинет</a>
</li>
<li class="nav-item">
<a href="./search.html" class="nav-link">Поиск</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container-fluid p-2">
<div class="p-4 mx-auto mt-5 mb-5 w-75">
<h1 class="text-md-start text-center">Добавление новой книги</h1>
<div class="text-md-start text-center">
<img id="image-preview" src="https://via.placeholder.com/200"
alt="placeholder">
</div>
<form id="items-form" class="needs-validation" novalidate>
<div class="mb-2">
<label for="item" class="form-label orange-text fs-4">Категории</label>
<select id="item" class="form-select fs-4" name="selected1" required>
</select>
</div>
<div class="mb-2">
<label class="form-label orange-text fs-4" for="name">Название</label>
<input id="name" name="name" class="form-control fs-4" required>
</div>
<div class="mb-2">
<label for="author" class="form-label orange-text fs-4">Автор</label>
<select id="author" class="form-select fs-4" name="selected2" required>
</select>
</div>
<div class="mb-2">
<label class="form-label orange-text fs-4" for="year">Год издания</label>
<input id="year" name="year" class="form-control fs-4" required>
</div>
<div class="mb-2">
<label class="form-label orange-text fs-4" for="image">Изображение</label>
<input id="image" type="file" name="image" class="form-control fs-4" accept="image/*">
</div>
<div class="d-grid gap-2 mt-4 d-md-flex justify-content-md-start">
<a href="./admin-page.html" class="btn library-button fs-4">Назад</a>
<button type="submit" class="btn library-button fs-4">Сохранить</button>
</div>
</form>
</div>
</main>
<footer class="footer mt-auto d-flex justify-content-center align-items-center white-text">
2023, Захаров Р.А.
</footer>
<script type="module">
import validation from "./js/validation";
import { linesPageForm } from "./js/lines"
document.addEventListener('DOMContentLoaded', () => {
validation();
linesPageForm();
});
</script>
</body>
</html>