TeryokhinAS_PIbd21/wishlist.html
2024-01-07 18:55:14 +03:00

140 lines
6.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.css">
<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">
<script src="./node_modules/bootstrap/dist/js/bootstrap.bundle.js" ></script>
<title>ProstoFilms</title>
</head>
<header>
<nav class="navbar navbar-expand-md navbar-dark bg-black">
<div class="container"> <a class="navbar-brand" href="index.html">PF</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav mr-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="index.html" >Главная</a>
</li>
<li class="nav-item">
<a class="nav-link" href="films.html" >Фильмы</a>
</li>
<li class="nav-item">
<a class="nav-link" href="serials.html" >Сериалы</a>
</li>
<li class="nav-item">
<a class="nav-link" href="profile.html" >Профиль</a>
</li>
<li class="nav-item">
<a class="nav-link" href="reg.html" >Регистрация</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<body class="bg-image">
<main>
<div class="container">
<div class="p-2">
<div class="btn-group" role="group">
<button id="items-add" class="btn btn-info">Добавить фильм (диалог)</button>
</div>
<table id="items-table" class="table text-light">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Название</th>
<th scope="col">Жанр</th>
<th scope="col">Рейтинг</th>
<th scope="col">Возрастной рейтинг</th>
<th scope="col">Информация</th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</main>
</body>
<div class="footer">
<div class="container-fluid fixed-bottom bg-black">
<footer class="py-3">
<div class="col-md-4">
<span class=" ms-4 mb-3 mb-md-0 text-muted">© 2023 ProstoFilms, Inc</span>
</div>
</footer>
</div>
</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" style="max-width: 200px; max-height: 200px;" src="https://via.placeholder.com/200" class="rounded rounded-circle"
alt="placeholder">
</div>
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label class="form-label" for="name">Название</label>
<input id="name" name="name" class="form-control" type="text" value="" min=""
required>
</div>
<div class="mb-2">
<label class="form-label" for="item">Жанр</label>
<select class="form-select" id="item" name="selected" required>
</select>
</div>
<div class="mb-2">
<label class="form-label" for="rate">Рейтинг</label>
<input id="rate" name="rate" class="form-control" type="number" value="0.00" step="0.1" min="0"
required>
</div>
<div class="mb-2">
<label class="form-label" for="R">Возрастной рейтинг</label>
<select class="form-select" id="R" name="R" required>
</select>
</div>
<div class="mb-2">
<label class="form-label" for="info">Информация</label>
<textarea id="info" name="info" type="textarea" rows="1" cols="50"
required>
</textarea>
</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>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
<button type="submit" class="btn btn-primary">Сохранить</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>
</html>