98 lines
4.8 KiB
HTML

<html lang="ru">
<head>
<meta charset="utf-8">
<title>Онлайн-кинотеатр</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<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"/>
<script src="./node_modules/jquery/dist/jquery.min.js"></script>
<link rel="stylesheet" href="./node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<script src="./node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body class ="d-flex flex-column h-100">
<header id="header" class="header row w-100 m-0 mb-3">
<div class="p-0">
<div class="d-flex pt-lg-3 px-lg-5 p-0 justify-content-center row w-100 m-0">
<div class = "d-flex col p-1 pe-0 fs-2 bg-cyan mw-100 mh-100 text-break flex-grow-1 justify-content-center">
<a class ="text-decoration-none text-center text-black fs-2 fw-normal font-family-Average Sans py-2" href="index.html">Онлайн-кинотеатр</a>
</div>
</div>
</div>
</header>
<main class="container-fluid flex-shrink-0">
<section class="d-flex align-items-center justify-content-center">
<div class="container">
<div class="justify-content-center pt-2">
<p class="text-center text-white fs-2 fw-normal font-family-Average Sans">Добавить фильм</p>
</div>
</div>
</section>
<div class="text-center">
<img id="image-preview" src="https://via.placeholder.com/200" style="max-width:300px; max-height:600px; min-width:300px; min-height:400px"
alt="placeholder">
</div>
<form id="items-form" class="needs-validation" novalidate>
<div class="mb-2">
<label class="form-label" for="name">Название</label>
<textarea class="form-control" id="name" rows="1"></textarea>
</div>
<div class="mb-2">
<label for="lang" class="form-label">Язык</label>
<select id="lang" class="form-select" name="selectedLang" required>
</select>
</div>
<div class="mb-2">
<label for="genre" class="form-label">Жанры</label>
<select id="genre" class="form-select" name="selectedGenre" required>
</select>
</div>
<label>Год</label>
<div class="input-group date" data-provide="datepicker">
<input type="text" id="year" class="form-control">
<div class="input-group-addon">
<span class="glyphicon glyphicon-th"></span>
</div>
</div>
<div class="mb-2">
<label class="form-label" for="descp">Описание</label>
<textarea class="form-control" id="descp" rows="3"></textarea>
</div>
<div class="mb-2">
<label class="form-label" for="actrs">Актеры</label>
<textarea class="form-control" id="actrs" rows="2"></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>
<a href="/admin.html" class="btn btn-secondary">Назад</a>
<button type="submit" class="btn btn-primary">Сохранить</button>
</form>
</main>
<footer class="footer mt-auto fixed bottom-0">
<div class= "bg-dark-blue d-flex text-center justify-content-center">
<p class="text-black fs-5 fw-normal font-family-Average Sans">Фильмы нам не пренадлежат</p>
</div>
</footer>
<script>
$(document).ready(function(){
$('.input-group.date').datepicker({
format: "yyyy",
viewMode: "years",
minViewMode: "years"
});
});
</script>
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="module">
import validation from "./js/validation";
import {linesPageForm} from "./js/lines"
document.addEventListener('DOMContentLoaded', () => {
validation();
linesPageForm();
});
</script>
</body>
</html>