Internet_prog/3 лаба/page5.html

154 lines
6.4 KiB
HTML
Raw Normal View History

2023-11-07 14:22:33 +04:00
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Моя страница</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script 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">
</head>
<body class="h-100 d-flex flex-column bg-light" >
<header>
<nav class="navbar navbar-expand-md navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="/" style="color: black;">
<i class="fa-solid fa-crown" style="color: black;"> </i>
Отель Luxury
</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 active" href="./index.html" style="color: black;">Главная</a>
<a class="nav-link active" href="./page5.html" style="color: black;">Размещение</a>
<a class="nav-link" href="./page2.html" style="color: black;">Инфраструктура</a>
<a class="nav-link" href="./page3.html" style="color: black;">Отзывы</a>
<a class="nav-link" href="./page4.html" style="color: black;">Забронировать</a>
<a class="nav-link" href="./page7.html" style="color: black;">Вход</a>
</div>
</div>
</div>
</nav>
</header>
<main class="container-fluid p-2">
<div class="container">
<div class="row">
<div class="col" >
<div class="btn-group" role="group">
<button id="items-add" class="btn but" style="background-color: blueviolet;">Добавить номер </button>
</div>
<div>
<table id="items-table" class="table table-striped table-hover " >
<thead>
<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" 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>
</div>
</div>
</main>
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
г. Ульяновск
</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://via.placeholder.com/200" width="100%" class="rounded rounded-circle"
alt="placeholder">
</div>
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label for="item" class="form-label">Название номера</label>
<select id="item" class="form-select" name="selected" required >
<option value="Стандарт">Стандарт</option>
<option value="Стандарт+">Стандарт+</option>
<option value="Люкс">Люкс</option>
</select>
</div>
<div class="mb-2">
<label class="form-label" for="price">Цена</label>
<input id="price" name="price" class="form-control" type="number" value="0.00" min="1000.00"
step="0.50" required>
</div>
<div class="mb-2">
<label class="form-label" for="count">Размер скидки</label>
<input id="count" name="count" class="form-control" type="number" value="0" min="1" step="1"
required>
</div>
<div class="mb-2">
<label class="form-label" for="count">Итоговая стоимость</label>
<input id="sum" name="sum" class="form-control" type="number" value="0" min="1" step="1" disabled>
</div>
<div class="mb-2">
<label class="form-label" for="image">Изображение</label>
<input id="image" type="file" name="image" class="form-control" style="" accept="image/*">
</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>
2023-10-23 23:23:12 +04:00
</html>