Pibd-21_Ievlewa_M.D._Intern.../lkAdmin.html

145 lines
6.9 KiB
HTML
Raw Permalink Normal View History

2023-12-03 19:52:09 +04:00
<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">
2023-12-10 22:07:47 +04:00
<title>ADMIN</title>
2023-12-03 19:52:09 +04:00
<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>
2023-12-10 22:07:47 +04:00
2023-12-03 19:52:09 +04:00
<body class="h-100 d-flex flex-column">
2023-12-10 22:07:47 +04:00
<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>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
</div>
2023-12-03 19:52:09 +04:00
<header>
2023-12-10 22:07:47 +04:00
<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>
2023-12-03 19:52:09 +04:00
</div>
</div>
2023-12-10 22:07:47 +04:00
</div>
</nav>
2023-12-03 19:52:09 +04:00
</header>
2023-12-10 22:07:47 +04:00
<main class="container-fluid p-2">
<div>
<table id="items-table" class="table table-striped">
<thead>
2023-12-11 00:09:01 +04:00
<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>
2023-12-10 22:07:47 +04:00
</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>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
<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>
2023-12-03 19:52:09 +04:00
<div class="mb-1">
2023-12-10 22:07:47 +04:00
<label for="ItName" class="form-label">Название</label>
<input id="ItName" name="ItName" class="form-control" type="text" placeholder="Название" required>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
2023-12-03 19:52:09 +04:00
<div class="mb-1">
2023-12-10 22:07:47 +04:00
<label for="item" class="form-label">Тип мероприятия</label>
<select id="item" class="form-select" name="selected" placeholder="Тип мероприятия" required>
</select>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
2023-12-03 19:52:09 +04:00
<div class="mb-1">
2023-12-10 22:07:47 +04:00
<label for="date" class="form-label">Дата проведения</label>
<input type="date" class="form-control" id="date" placeholder="Дата проведения" required>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
2023-12-03 19:52:09 +04:00
<div class="mb-1">
2023-12-10 22:07:47 +04:00
<label class="form-label" for="price">Стоимость</label>
2023-12-03 19:52:09 +04:00
<input id="price" name="price" class="form-control" type="number" value="0.00" min="1000.00"
2023-12-10 22:07:47 +04:00
step="100" placeholder="Стоимость" required>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
2023-12-03 19:52:09 +04:00
<div class="mb-1">
2023-12-10 22:07:47 +04:00
<label for="place" class="form-label">Место проведения</label>
<select id="place" class="form-select" name="selected" placeholder="Место проведения" required>
</select>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
2023-12-03 19:52:09 +04:00
<div class="mb-1">
2023-12-10 22:07:47 +04:00
<label class="form-label" for="image">Изображение</label>
<input id="image" type="file" name="image" class="form-control" accept="image/*">
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
</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>
2023-12-03 19:52:09 +04:00
</div>
2023-12-10 22:07:47 +04:00
</form>
2023-12-03 19:52:09 +04:00
</div>
</div>
2023-12-10 22:07:47 +04:00
<script type="module">
import validation from "./js/validation";
import { linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesForm();
});
</script>
2023-12-03 19:52:09 +04:00
</body>
2023-12-10 22:07:47 +04:00
2023-12-03 19:52:09 +04:00
</html>