133 lines
5.5 KiB
HTML
133 lines
5.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Reservation</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<link rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.3.4/dist/css/datepicker-bulma.min.css">
|
|
<link href="css/style.css" rel="stylesheet">
|
|
<style>
|
|
.room-image {
|
|
max-width: 50%;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg bg-body-tertiary" data-bs-theme="dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="#">Navbar</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
|
|
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
|
|
aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="about.html">About</a>
|
|
</li>
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
|
|
aria-expanded="false">
|
|
Rooms
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" href="generals.html">General's Quarters</a></li>
|
|
<li><a class="dropdown-item" href="majors.html">Major's Suite</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="reservation.html">Book Now</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="contact.html">Contact</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<h1 class="text-center mt-5">Search for Availability</h1>
|
|
|
|
<form action="reservation.html" method="get" novalidate class="needs-validation">
|
|
<div id="reservation-dates" class="row">
|
|
<div class="col mb-3">
|
|
<input required type="text" class="form-control" name="start" placeholder="Arrival">
|
|
</div>
|
|
<div class="col mb-3">
|
|
<input required type="text" class="form-control" name="end" placeholder="Departure">
|
|
</div>
|
|
</div>
|
|
<div class="mb-3">
|
|
<button type="submit" class="btn btn-primary mb-3">Search Availability</button>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<footer class="py-3 my-4">
|
|
<ul class="nav justify-content-center border-bottom pb-3 mb-3">
|
|
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">Home</a></li>
|
|
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">Features</a></li>
|
|
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">Pricing</a></li>
|
|
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">FAQs</a></li>
|
|
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">About</a></li>
|
|
</ul>
|
|
<p class="text-center text-body-secondary">© 2024 Company, Inc</p>
|
|
</footer>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
|
crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.3.4/dist/js/datepicker-full.min.js"></script>
|
|
|
|
<script>
|
|
(() => {
|
|
'use strict'
|
|
|
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
|
const forms = document.querySelectorAll('.needs-validation')
|
|
|
|
// Loop over them and prevent submission
|
|
Array.from(forms).forEach(form => {
|
|
form.addEventListener('submit', event => {
|
|
if (!form.checkValidity()) {
|
|
event.preventDefault()
|
|
event.stopPropagation()
|
|
}
|
|
|
|
form.classList.add('was-validated')
|
|
}, false)
|
|
})
|
|
})()
|
|
|
|
const elem = document.getElementById('reservation-dates');
|
|
const rangepicker = new DateRangePicker(elem, {
|
|
"format": "yyyy-mm-dd",
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|