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

169 lines
8.6 KiB
HTML
Raw 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">
<button id="items-add" class="btn btn-info">Add-Dialog</button>
<a class="btn btn-success" href="/page-edit.html">Add-Page</a>
</div>
<form class="form-inlinecustom-search mx-auto mt-2" >
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" />
<div class="form-group col-md-6">
<input type="text" class="form-control mt-2" id="keyword" placeholder="Keyword" />
</div>
<div class="scroll-panel-favour">
<main class="container-fluid p-2">
<div>
<table id="items-table" class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
2023-11-20 23:03:27 +04:00
<th scope="col">Category</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-10 14:23:55 +04:00
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</main>
</div>
</form>
</div>
<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">
<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" name="name" class="form-control" type="text" placeholder="Name"
required />
</div>
2023-11-20 23:03:27 +04:00
<div class="mb-2">
<input id="author" name="author" class="form-control" type="text" placeholder="Author"
required />
</div>
2023-11-10 14:23:55 +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="1000.00" step="0.50" required>
</div>
<div class="mb-2">
2023-11-20 23:03:27 +04:00
<label class="form-label" for="count">ISBN</label>
2023-11-10 14:23:55 +04:00
<input id="count" name="count" class="form-control" type="number" value="0" min="1"
step="1" required>
</div>
<div class="mb-2">
2023-11-20 23:03:27 +04:00
<label class="form-label" for="image">Image</label>
2023-11-10 14:23:55 +04:00
<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="pdf" type="file" name="file" class="form-control" accept="file/*">
</div>
</div>
<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>
</div>
</form>
</div>
</div>
<div class="row">
<footer class="footer fixed-bottom w-100">
<div class="container">
<img class="logos ml-0" src="png/logos.png" alt="Логотип" />
</div>
</footer>
</div>
</div>
<script type="module">
import validation from "./js/validation";
import { linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesForm();
});
</script>
</body>
</html>