145 lines
6.9 KiB
HTML
145 lines
6.9 KiB
HTML
<html lang="ru">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<link href="https://fonts.cdnfonts.com/css/correction-tape" rel="stylesheet">
|
||
<title>ADMIN</title>
|
||
<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="./style.css">
|
||
|
||
<script>
|
||
function toggleMenu() {
|
||
var menuWrapper = document.getElementById("menu-wrapper");
|
||
menuWrapper.classList.toggle("open");
|
||
}
|
||
</script>
|
||
|
||
</head>
|
||
|
||
<body class="h-100 d-flex flex-column">
|
||
<div id="menu-wrapper">
|
||
<div id="menu">
|
||
<ul>
|
||
<li><a href="/">Главная</a></li>
|
||
<li><a href="./page2(cinema).html">Кино</a></li>
|
||
<li><a href="./page2(concerts).html">Концерты</a></li>
|
||
<li><a href="./page2(theatre).html">Театр</a></li>
|
||
<li><a href="./about.html">О сайте</a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<header>
|
||
<nav class="navbar navbar-expand-md navbar-dark">
|
||
<div class="container-fluid">
|
||
<a id="toggle-menu" onclick="toggleMenu()">
|
||
<h1>TicketsBook</h1>
|
||
</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="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||
<div class="navbar-nav">
|
||
<a class="nav-link" href="./signingIn.html">вход/регистрация</a>
|
||
<a class="nav-link" href="./lkAdmin.html">админ</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
</header>
|
||
<main class="container-fluid p-2">
|
||
<div>
|
||
<table id="items-table" class="table table-striped">
|
||
<thead>
|
||
<th scope="col" style="background-color:#2F2727; color:white;">№</th>
|
||
<th scope="col" style="background-color:#2F2727; color:white;">Название</th>
|
||
<th scope="col" style="background-color:#2F2727; color:white;">Тип события</th>
|
||
<th scope="col" style="background-color:#2F2727; color:white;">Дата проведения</th>
|
||
<th scope="col" style="background-color:#2F2727; color:white;">Стоимость</th>
|
||
<th scope="col" style="background-color:#2F2727; color:white;">Место проведения</th>
|
||
<th scope="col" style="background-color:#2F2727; color:white;"></th>
|
||
<th scope="col" style="background-color:#2F2727; color:white;"></th>
|
||
</thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
<div class="d-flex justify-content-center" role="group">
|
||
<button id="items-add" class="btn btn-primary" style="font-size: 30px;">Добавить</button>
|
||
</div>
|
||
</main>
|
||
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
|
||
Иевлева Милана, 2023
|
||
</footer>
|
||
<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://pic.onlinewebfonts.com/svg/img_351184.svg" class="rounded rounded-circle"
|
||
alt="placeholder">
|
||
</div>
|
||
|
||
<input id="items-line-id" type="number" hidden>
|
||
|
||
<div class="mb-1">
|
||
<label for="ItName" class="form-label">Название</label>
|
||
<input id="ItName" name="ItName" class="form-control" type="text" placeholder="Название" required>
|
||
</div>
|
||
|
||
<div class="mb-1">
|
||
<label for="item" class="form-label">Тип мероприятия</label>
|
||
<select id="item" class="form-select" name="selected" placeholder="Тип мероприятия" required>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="mb-1">
|
||
<label for="date" class="form-label">Дата проведения</label>
|
||
<input type="date" class="form-control" id="date" placeholder="Дата проведения" required>
|
||
</div>
|
||
|
||
<div class="mb-1">
|
||
<label class="form-label" for="price">Стоимость</label>
|
||
<input id="price" name="price" class="form-control" type="number" value="0.00" min="1000.00"
|
||
step="100" placeholder="Стоимость" required>
|
||
</div>
|
||
|
||
<div class="mb-1">
|
||
<label for="place" class="form-label">Место проведения</label>
|
||
<select id="place" class="form-select" name="selected" placeholder="Место проведения" required>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="mb-1">
|
||
<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>
|
||
<script type="module">
|
||
import validation from "./js/validation";
|
||
import { linesForm } from "./js/lines";
|
||
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
validation();
|
||
linesForm();
|
||
});
|
||
</script>
|
||
</body>
|
||
|
||
</html> |