101 lines
4.4 KiB
HTML
101 lines
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru" class="h-100">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Просмотр фильмов</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.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 >
|
|
|
|
<div class="header">
|
|
<nav class="navbar navbar-expand-md navbar-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/">
|
|
<div class="header-logo">
|
|
<img src="icon.png" alt="Logo">
|
|
<h2>Фильмы онлайн</h2>
|
|
</div>
|
|
</a>
|
|
<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 justify-content-end" id="navbarNav">
|
|
<div class="navbar-nav">
|
|
<a class="nav-link" href="index.html">Главная страница</a>
|
|
<a href="page2.html" class="nav-link">Каталог</a>
|
|
<a href="page3.html" class="nav-link">Категории</a>
|
|
<a href="page4.html" class="nav-link">Информация</a>
|
|
<a href="page5.html" class="nav-link">Популярное</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
<div class="container mt-4">
|
|
<h1>Добавление нового фильма</h1>
|
|
<div class="text-center">
|
|
<img id="image-preview" src="https://via.placeholder.com/300x400" alt="placeholder">
|
|
</div>
|
|
<form id="items-form" class="needs-validation" novalidate>
|
|
<div class="mb-3">
|
|
<label for="item" class="form-label">Жанр</label>
|
|
<select id="item" class="form-select" name="selected" required>
|
|
</select>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="title" class="form-label">Название фильма</label>
|
|
<input type="text" class="form-control" id="name" name="name" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="rating" class="form-label">Рейтинг</label>
|
|
<input type="number" class="form-control" id="rating" name="rating" min="1" max="10" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="releaseDate" class="form-label">Дата создания</label>
|
|
<input type="date" class="form-control" id="releaseDate" name="releaseDate" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="director" class="form-label">Режиссер</label>
|
|
<input type="text" class="form-control" id="director" name="director" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="image" class="form-label">Фотография обложки</label>
|
|
<input id="image" type="file" name="image" class="form-control" accept="image/*">
|
|
</div>
|
|
<a href="admin.html" class="btn btn-secondary">Назад</a>
|
|
<button type="submit" class="btn btn-primary">Добавить фильм</button>
|
|
</form>
|
|
</div>
|
|
<footer class="footer mt-auto d-flex justify-content-center align-items-center">
|
|
<div class="container-fluid">
|
|
<p>© 2023 Просмотр фильмов.</p>
|
|
<a href="admin.html" class="nav-link">Admin</a>
|
|
</div>
|
|
</footer>
|
|
|
|
<script type="module">
|
|
import validation from "./js/validation";
|
|
import { linesPageForm } from "./js/lines"
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
validation();
|
|
|
|
linesPageForm();
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|