Pibd-21_Ievlewa_M.D._Intern.../addElement.html
2023-12-10 21:07:47 +03:00

110 lines
5.3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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 class="d-flex justify-content-center">
<div class="info" style="max-height: 90vh; overflow-y: auto;">
<h1>Добавить событие</h1>
<form class="needs-validation" method="get" novalidate>
<div class="mb-1">
<label for="name" class="form-label">Название</label>
<input type="text" class="form-control" id="name" placeholder="Введите название" required>
<div class="invalid-feedback">Название не заполнено</div>
</div>
<div class="mb-1">
<label for="type" class="form-label">Тип</label>
<select class="form-control" id="type" name="type" placeholder="Выберите тип" required>
<option value="option1">Концерт</option>
<option value="option2">Кино</option>
<option value="option3">Театр</option>
</select>
<div class="invalid-feedback">Тип не выбран</div>
</div>
<div class="mb-1">
<label for="date" class="form-label">Дата</label>
<input type="date" class="form-control" id="date" required>
<div class="invalid-feedback">Дата не заполнена</div>
</div>
<div class="mb-1">
<label for="price" class="form-label">Стоимость</label>
<input id="price" name="price" class="form-control" type="number" value="0.00" min="1000.00"
step="0.50" required placeholder="Введите стоимость" required>
<div class="invalid-feedback">Стоимость не заполнена</div>
</div>
<div class="mb-1">
<label for="description" class="form-label">Описание</label>
<textarea class="form-control" id="description" rows="3" placeholder="Введите описание" required></textarea>
<div class="invalid-feedback">Описание не заполнено</div>
</div>
<div class="mb-1">
<label for="photo" class="form-label">Фото</label>
<input type="file" class="form-control" id="photo" required>
<div class="valid-feedback">Изображение загружено</div>
<div class="invalid-feedback">Изображение не загружено</div>
</div>
<button type="submit" class="btn btn-primary">Добавить</button>
</form>
</div>
</div>
</main>
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
Иевлева Милана, 2023
</footer>
<script type="module">
import validation from "./js/validation";
document.addEventListener('DOMContentLoaded', () => {
validation();
});
</script>
</body>
</html>