139 lines
6.9 KiB
HTML
139 lines
6.9 KiB
HTML
|
<html lang="ru">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Моя страница</title>
|
||
|
<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="./style.css">
|
||
|
</head>
|
||
|
|
||
|
<body class="h-100 d-flex flex-column">
|
||
|
|
||
|
<header class="border border-5 border-dark ">
|
||
|
<nav class="navbar navbar-expand-md">
|
||
|
<div class="container-fluid fs-3">
|
||
|
|
||
|
<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" id="navbarNav">
|
||
|
<div class="navbar-nav">
|
||
|
<a class="nav-link navbar-text mx-3" href="./main.html"><b>Main</b></a>
|
||
|
<a class="nav-link navbar-text" href="./profile.html"><b>Profile</b></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||
|
<div class="navbar-nav">
|
||
|
<a class="nav-link navbar-text active mx-3" href="./index.html"><b>Log in/Sign up</b></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
|
||
|
<main class="container-fluid p-2">
|
||
|
<button id="items-add" class="button border border-4 border-dark rounded-4 mb-1 py-2 px-3">Add book</button>
|
||
|
<div class="py-3 px-4">
|
||
|
<table id="items-table" class="table table-striped border border-4 border-dark">
|
||
|
<thead>
|
||
|
<th scope="col">№</th>
|
||
|
<th scope="col" class="w-25">Genre</th>
|
||
|
<th scope="col" class="w-25">Author</th>
|
||
|
<th scope="col" class="w-25">Name</th>
|
||
|
<th scope="col" class="w-25">Publish house</th>
|
||
|
<th scope="col"></th>
|
||
|
<th scope="col"></th>
|
||
|
</thead>
|
||
|
<tbody></tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</main>
|
||
|
|
||
|
|
||
|
<footer class="footer border border-dark border-5 mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fs-5">
|
||
|
<b>Барсуков Павел, 2023</b>
|
||
|
</footer>
|
||
|
|
||
|
|
||
|
<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" style="border-radius: 27px;" >
|
||
|
|
||
|
|
||
|
<div class="modal-header modalHeader border border-3 border-dark border-bottom-0">
|
||
|
<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 modalMain border border-3 border-dark">
|
||
|
|
||
|
<div class="text-center">
|
||
|
<img id="image-preview" src="https://via.placeholder.com/200" class="bookSize" alt="placeholder">
|
||
|
</div>
|
||
|
|
||
|
<input id="items-line-id" type="number" hidden>
|
||
|
<div class="mb-2">
|
||
|
<label for="item" class="form-label">Genre</label>
|
||
|
<select id="item" class="form-select" name="selected" required>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="author">Author</label>
|
||
|
<input id="author" name="author" class="form-control" type="text" value="author's name" required>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label class="form-label" for="title">Title</label>
|
||
|
<input id="title" name="title" class="form-control" type="text" value="book's title" required>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<label for="long" class="form-label">Publish house</label>
|
||
|
<select id="long" class="form-select" name="selectedLong" required>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<div class="fileChoose border border-dark border-3 rounded-2 mt-3 text-center">
|
||
|
<label class="form-label pt-2 text-center" for="image">Tap here to choose image</label>
|
||
|
<input id="image" type="file" name="image" class="form-control" accept="image/*">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="mb-2">
|
||
|
<div class="fileChoose border border-dark border-3 rounded-2 mt-3 text-center">
|
||
|
<label class="form-label pt-2 text-center" for="text">Tap here to choose text</label>
|
||
|
<input id="text" type="file" name="text" class="form-control" accept="text/*">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="modal-footer modalFooter border border-3 border-dark border-top-0">
|
||
|
<button type="button" class="border border-4 border-dark rounded-4" data-bs-dismiss="modal"><h4 class="mx-3">Close</h4></button>
|
||
|
<button type="submit" class="border border-4 border-dark rounded-4"><h4 class="mx-3">Save</h4></button>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<script type="module">
|
||
|
import validation from "./js/validation";
|
||
|
import { linesForm } from "./js/lines";
|
||
|
|
||
|
document.addEventListener('DOMContentLoaded', () => {
|
||
|
validation();
|
||
|
linesForm();
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|