108 lines
5.0 KiB
HTML
108 lines
5.0 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="p-2">
|
|||
|
<div class="container">
|
|||
|
<div class="text-center">
|
|||
|
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-circle"
|
|||
|
alt="placeholder">
|
|||
|
</div>
|
|||
|
<form id="frm-items" class="row g-3">
|
|||
|
<div class="col-md-6">
|
|||
|
<label for="name" class="form-label text-light">Название</label>
|
|||
|
<input type="text" class="form-control" id="name" value="" min="" required>
|
|||
|
</div>
|
|||
|
<div class="col-md-6">
|
|||
|
<label for="genre" class="form-label text-light">Жанр</label>
|
|||
|
<select class="form-select" id="genre" required>
|
|||
|
<option selected disabled value="">Укажите жанр...</option>
|
|||
|
<option>Комедия</option>
|
|||
|
<option>Хоррор</option>
|
|||
|
<option>Триллер</option>
|
|||
|
<option>Боевик</option>
|
|||
|
<option>Экшен</option>
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
<div class="col-md-6">
|
|||
|
<label for="rating" class="form-label text-light">Рейтинг</label>
|
|||
|
<input type="number" class="form-control" id="rating" value="0.00" step="0.01" min="0" required>
|
|||
|
</div>
|
|||
|
<div class="col-md-6">
|
|||
|
<label for="image" class="form-label text-light">Изображение</label>
|
|||
|
<input id="image" type="file" name="image" class="form-control" accept="image/*" required>
|
|||
|
</div>
|
|||
|
<div class="col-12">
|
|||
|
<button id="btn-add-item" class="btn btn-secondary" type="submit">Добавить</button>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</main>
|
|||
|
<script>
|
|||
|
'use strict'
|
|||
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
|||
|
const forms = document.querySelectorAll('.needs-validation');
|
|||
|
// Loop over them and prevent submission
|
|||
|
for (let i = 0; i < forms.length; i++) {
|
|||
|
const form = forms[i];
|
|||
|
form.addEventListener('submit', function(event) {
|
|||
|
if (!form.checkValidity()) {
|
|||
|
event.preventDefault();
|
|||
|
event.stopPropagation();
|
|||
|
}
|
|||
|
form.classList.add('was-validated');
|
|||
|
}, false);
|
|||
|
}
|
|||
|
</script>
|
|||
|
</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>
|
|||
|
</html>
|