TeryokhinAS_PIbd21/edit.html

95 lines
4.3 KiB
HTML
Raw Normal View History

2023-11-27 18:58:55 +04:00
<!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">
2024-01-07 19:55:14 +04:00
<label for="item" class="form-label text-light">Жанр</label>
<select class="form-select" id="item" name="selected" required>
2023-11-27 18:58:55 +04:00
</select>
</div>
<div class="col-md-6">
<label for="rating" class="form-label text-light">Рейтинг</label>
2024-01-07 19:55:14 +04:00
<input type="number" class="form-control" id="rate" value="0.00" step="0.01" min="0" required>
2023-11-27 18:58:55 +04:00
</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>
2024-01-07 19:55:14 +04:00
<script type="module">
import validation from "./js/validation";
import { linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesForm();
});
</script>
2023-11-27 18:58:55 +04:00
</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>