173 lines
8.2 KiB
HTML
173 lines
8.2 KiB
HTML
|
<html lang="ru">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Admin</title>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
|
<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">
|
||
|
</head>
|
||
|
<body> <!-- class="h-100 d-flex flex-column"-->
|
||
|
<header>
|
||
|
<nav class="navbar navbar-expand-md navbar-dark">
|
||
|
<div class="container-fluid">
|
||
|
<a class="navbar-brand" href="index.html">
|
||
|
Streaming-video service
|
||
|
|
||
|
</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="collapse navbar-collapse justify-content-end" id="navbarNav">
|
||
|
<div class="navbar-nav">
|
||
|
<a class="nav-link" href="./page1.html">Главная страница</a>
|
||
|
<a class="nav-link" href="./page2.html">Поиск</a>
|
||
|
<a class="nav-link" href="./page3.html">Подписки</a>
|
||
|
<a class="nav-link" href="./page4.html">Вход/Регистрация</a>
|
||
|
</div>
|
||
|
<form class="col-12 col-md-auto mb-2 mb-md-0 me-md-3" role="search" action="./page2.html" method="get">
|
||
|
<input class="form-control" type="text" placeholder="Search" aria-label="Search">
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
<div class="container-fluid ">
|
||
|
<div class="row">
|
||
|
|
||
|
<nav class="col-md-2 bg-dark sidebar">
|
||
|
<div class="d-flex flex-column align-items-center align-items-sm-start px-8 pt-3 text-white">
|
||
|
<h2>Стримеры онлайн</h2>
|
||
|
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col">
|
||
|
<a href="page5channel.html" class="nav-link align-middle px-0">
|
||
|
<i class="fs-4 bi-house"></i> <span class="ms-1 d-none d-sm-inline">Streamer1</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="col d-flex align-items-center justify-content-end">
|
||
|
<div class="online-indicator">
|
||
|
<div class="dot"></div>
|
||
|
<div class="online-count ml-1">1000</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col">
|
||
|
<a href="page5channel.html" class="nav-link align-middle px-0">
|
||
|
<i class="fs-4 bi-house"></i> <span class="ms-1 d-none d-sm-inline">Straaaa2</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="col d-flex align-items-center justify-content-end">
|
||
|
<div class="online-indicator">
|
||
|
<div class="dot"></div>
|
||
|
<div class="online-count ml-1">1702</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col">
|
||
|
<a href="page6admin.html" class="nav-link align-middle px-0">
|
||
|
<i class="fs-4 bi-house"></i> <span class="ms-1 d-none d-sm-inline">admin</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="col d-flex align-items-center justify-content-end">
|
||
|
<div class="online-indicator">
|
||
|
<div class="dot"></div>
|
||
|
<div class="online-count ml-1">902</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
|
||
|
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4"> <!-- container-fluid p-2 -->
|
||
|
<div class="full-page-div">
|
||
|
<div class="btn-group" role="group">
|
||
|
<button id="items-add" class="btn btn-info">Добавить видео (диалог)</button>
|
||
|
<a class="btn btn-success" href="/page-edit.html">Добавить видео (страница)</a>
|
||
|
</div>
|
||
|
<div>
|
||
|
<table id="items-table" class="table table-striped">
|
||
|
<thead>
|
||
|
<th scope="col">№</th>
|
||
|
<th scope="col" class="w-25">Дата</th>
|
||
|
<th scope="col" class="w-25">Название видео</th>
|
||
|
<th scope="col" class="w-25">Название канала</th>
|
||
|
<th scope="col" class="w-25">Превью видео</th>
|
||
|
<th scope="col"></th>
|
||
|
<th scope="col"></th>
|
||
|
<th scope="col"></th>
|
||
|
</thead>
|
||
|
<tbody></tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<div id="items-update" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
|
||
|
<div class="modal-dialog">
|
||
|
<form id="items-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/200" class="rounded"
|
||
|
alt="placeholder">
|
||
|
</div>
|
||
|
<input id="items-line-id" type="number" hidden>
|
||
|
<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="imageAvatar">Аватар канала</label>
|
||
|
<input id="imageAvatar" type="file" name="imageAvatar" class="form-control" accept="imageAvatar/*">
|
||
|
</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>
|
||
|
</div>
|
||
|
</main>
|
||
|
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
|
||
|
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved
|
||
|
</footer>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script type = "module">
|
||
|
import validation from "./js/validation";
|
||
|
import { linesForm } from "./js/lines";
|
||
|
|
||
|
document.addEventListener('DOMContentLoaded', () => {
|
||
|
validation();
|
||
|
linesForm();
|
||
|
});
|
||
|
</script>
|
||
|
<script src="../assets/dist/js/bootstrap.bundle.min.js"></script>
|
||
|
<script src="sidebars.js"></script>
|
||
|
</body>
|
||
|
</html>
|