Web-programming_Petrushin_E.../Lab3/PrBookfill/admin.html

166 lines
8.0 KiB
HTML
Raw Permalink Normal View History

2023-11-10 14:23:55 +04:00
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Boolfill</title>
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" />
<link rel="stylesheet" href="./css/style.css">
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
</head>
<body>
<div class="container-fluid px-4">
<div class="row">
<header class="col-12">
<nav class="navbar navbar-expand-lg navbar-dark bg-transparent py-0">
<a class="navbar-brand" href="index.html">
<img class="logo mb-2" src="png/logo.png" alt="Логотип">
</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 me-5" id="navbarSupportedContent">
<ul class="navbar-nav mt-2">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="button"
onclick="location.href='search.html';"><i class="fas fa-search"></i></button>
<li class="nav-item">
<a class="nav-link h5 h-sm-4" href="favour.html">Favourite</a>
</li>
<li class="nav-item">
<a class="nav-link h5 h-sm-4" href="audio.html">Audio</a>
</li>
<li class="nav-item">
<a class="nav-link h5 h-sm-4" href="comics.html">Comics</a>
</li>
<a class="nav-item mb-3" href="login.html">
<img id="profile" class="user-photo mt-1 ml-4 mr-3">
</a>
</ul>
</div>
</nav>
</header>
</div>
<div class="row">
<div class="col">
<div class="btn-group mt-2" role="group">
2023-11-24 15:09:59 +04:00
<button id="items-add" class="btn btn-info">Add book</button>
2023-11-10 14:23:55 +04:00
</div>
2023-11-21 16:11:09 +04:00
<form class="form-inlinecustom-search mx-auto mt-2">
2023-11-24 15:09:59 +04:00
<main class="container-fluid">
<div class="scroll-panel-favour">
<table id="items-table" class="table table-striped">
<tbody>
2023-11-10 14:23:55 +04:00
<thead>
<tr>
<th scope="col">#</th>
2023-11-20 23:03:27 +04:00
<th scope="col">Category</th>
2023-11-21 16:11:09 +04:00
<th scope="col">Name</th>
2023-11-10 14:23:55 +04:00
<th scope="col">Author</th>
2023-11-20 23:03:27 +04:00
<th scope="col">ISBN</th>
<th scope="col">Price</th>
2023-11-24 15:09:59 +04:00
<th scope="col">Image</th>
2023-11-10 14:23:55 +04:00
</tr>
</thead>
2023-11-24 15:09:59 +04:00
</tbody>
</table>
</div>
</main>
2023-11-10 14:23:55 +04:00
</div>
2023-11-24 15:09:59 +04:00
</form>
</div>
2023-11-10 14:23:55 +04:00
2023-11-24 15:09:59 +04:00
<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 modal-dialog-scrollable">
<div class="text-center">
<img id="image-preview" src="https://via.placeholder.com/200"
class="rounded rounded-square" alt="placeholder">
</div>
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label for="item" class="form-label">Category</label>
<select id="item" class="form-select" name="selected" required>
<option>Book</option>
<option>Audio</option>
<option>Comics</option>
</select>
</div>
<div class="mb-2">
<input id="name_book" name="name_book" class="form-control" type="text"
placeholder="Name" required />
</div>
<div class="mb-2">
<input id="author" name="author" class="form-control" type="text" placeholder="Author"
required />
2023-11-10 14:23:55 +04:00
</div>
2023-11-24 15:09:59 +04:00
<div class="mb-2">
<label class="form-label" for="price">Price</label>
<input id="price" name="price" class="form-control" type="number" value="0.00"
min="100.00" step="0.50" required>
2023-11-10 14:23:55 +04:00
</div>
2023-11-24 15:09:59 +04:00
<div class="mb-2">
<label class="form-label" for="count">ISBN</label>
<input id="isbn" name="count" class="form-control" type="isbn" value="0" min="100"
step="1" required>
</div>
<div class="mb-2">
<label class="form-label" for="image">Image</label>
<input id="image" type="file" name="image" class="form-control" accept="image/*">
</div>
<div class="mb-2">
<label class="form-label" for="file">File</label>
<input id="text" type="file" name="file" class="form-control" accept="file/*">
2023-11-10 14:23:55 +04:00
</div>
</div>
2023-11-24 15:09:59 +04:00
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary but-cust">Save</button>
</div>
2023-11-10 14:23:55 +04:00
</div>
2023-11-24 15:09:59 +04:00
</form>
2023-11-10 14:23:55 +04:00
</div>
</div>
2023-11-24 15:09:59 +04:00
<div class="row mt-4">
<footer class="footer fixed-bottom w-100">
<div class="container">
<img class="logos ml-0" src="png/logos.png" alt="Логотип" />
</div>
</footer>
</div>
</div>
2023-11-21 16:11:09 +04:00
</div>
<script type="module">
import validation from "./js/validation";
import { linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesForm();
});
</script>
2023-11-10 14:23:55 +04:00
</body>
</html>