PIbd-21_Bakalskaya_E.D._INT.../admin.html

223 lines
7.3 KiB
HTML
Raw Normal View History

2023-10-26 23:47:49 +04:00
<!DOCTYPE html>
2023-11-05 00:08:01 +04:00
<html lang="ru">
2023-11-13 01:55:03 +04:00
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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/bootstrap-icons/font/bootstrap-icons.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="./static/css/base.css" />
<link rel="stylesheet" href="./static/css/admin.css" />
<title>Админка</title>
<link
rel="shortcut icon"
href="./static/images/favicon.svg"
type="image/x-icon"
/>
</head>
2023-10-26 23:47:49 +04:00
2023-11-13 01:55:03 +04:00
<body class="d-flex flex-column min-vh-100">
<header class="sticky-top">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand d-flex align-items-center">
<img
src="./static/images/logo-livecinema-small.png"
class="d-inline-block align-text-top me-4 d-none d-sm-block"
/>
LiveCinema
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div
class="collapse navbar-collapse justify-content-end"
id="navbarNavDropdown"
>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" href="index.html">Главная</a>
</li>
<li class="nav-item">
<a class="nav-link" href="katalog.html">Каталог</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logIn.html">Регистрация</a>
</li>
<li class="nav-item">
<a class="nav-link" href="into.html">Вход</a>
</li>
<li class="nav-item">
<a class="nav-link" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="flex-fill d-flex flex-column px-1 px-md-2">
<div class="control-group py-2">
<button id="items-add" class="btn btn-light">
Добавить фильм (диалог)
</button>
</div>
<table
class="table table-sm table-responsive table-bordered border-primary table-hover"
id="table"
>
<div class="table">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Название</th>
<th scope="col">Жанр</th>
<th scope="col" class="text-center">
<span class="d-none d-sm-block">Описание</span
2023-11-13 01:55:03 +04:00
><i class="bi bi-clock-history d-block d-sm-none"></i>
</th>
<th scope="col" class="text-center">
<span class="d-none d-sm-block"> Длительность </span
><i class="bi bi-clock-history d-block d-sm-none"></i>
</th>
</tr>
</thead>
<tbody id="movie-table-body">
2023-11-13 01:55:03 +04:00
<tr>
<td>1</td>
<td>Постучись в мою дверь</td>
<td>Драма</td>
<td>
Это какой-то очередной слезливый сериал про великую любовь и
Серкана Болата
</td>
<td>2:03</td>
</tr>
</tbody>
</div>
</table>
</main>
2023-10-26 23:47:49 +04:00
<div
id="modal-movie"
class="modal fade"
tabindex="-1"
data-bs-backdrop="static"
data-bs-keyboard="false"
>
<div class="modal-dialog">
<form id="movie-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"
src="https://via.placeholder.com/160x230"
class="rounded-2"
alt="placeholder"
/>
</div>
<input id="movie-id" type="number" hidden />
<div class="mb-2">
<label for="category" class="form-label">Жанр</label>
<select
id="category"
class="form-select"
name="selected"
required
></select>
</div>
<div class="mb-2">
<label class="form-label" for="name">Название</label>
<input
id="name"
name="name"
class="form-control"
type="text"
required
/>
</div>
<div class="mb-2">
<label class="form-label" for="description">Описание</label>
<input
id="description"
name="description"
class="form-control"
type="text"
required
/>
</div>
<div class="mb-2">
<label class="form-label" for="duration"
>Продолжителность</label
>
<input
id="duration"
name="duration"
class="form-control"
type="text"
required
/>
</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>
2023-11-13 01:55:03 +04:00
<footer class="container-fluid py-1">
<span> &copy; 2023, Live Cinema. All rights reserved. </span>
</footer>
2023-11-12 18:09:21 +04:00
2023-11-13 01:55:03 +04:00
<script type="module" src="./static/js/admin.js"></script>
</body>
</html>