Skip to content

Commit

Permalink
connect book table page to index page
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkitgarg04 committed May 29, 2024
1 parent 3c5aa43 commit 43cd988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 48 deletions.
4 changes: 4 additions & 0 deletions Html-files/book-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ <h2 class="text-center"><strong>Book</strong> Your Table Now!</h2>
<label for="name">Phone Number: </label>
<input class="form-control" type="number" name="phone" placeholder="Phone Number" required>
</div>
<div class="form-group">
<label for="name">Email: </label>
<input class="form-control" type="email" name="email" placeholder="[email protected]" required>
</div>
<div class="form-group">
<label for="name">Date: </label>
<input class="form-control" type="date" name="date" required>
Expand Down
49 changes: 1 addition & 48 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ <h1>Click & Collect</h1><br>
<div class="box">
<h1>Restaurant Dining</h1><br>

<a href="#" class="btn" onclick="openBookingModal()">Book Table</a>
<!-- <a href="#" class="btn">Book Table</a> -->
<a href="./Html-files/book-table.html" class="btn" >Book Table</a>


</div>
Expand Down Expand Up @@ -266,47 +265,6 @@ <h3>Juices</h3>

</section>

<!-- Booking Modal -->
<div class="modal fade" id="bookingModal" tabindex="-1" aria-labelledby="bookingModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="bookingModalLabel">Book a Table</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="bookingForm">
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" class="form-control" id="name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email address</label>
<input type="email" class="form-control" id="email" required>
</div>
<div class="mb-3">
<label for="phone" class="form-label">Phone</label>
<input type="tel" class="form-control" id="phone" required>
</div>
<div class="mb-3">
<label for="date" class="form-label">Date</label>
<input type="date" class="form-control" id="date" required>
</div>
<div class="mb-3">
<label for="time" class="form-label">Time</label>
<input type="time" class="form-control" id="time" required>
</div>
<div class="mb-3">
<label for="guests" class="form-label">Number of Guests</label>
<input type="number" class="form-control" id="guests" required>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div>

<div class="app_download">
<h4>Free Delivery!</h4>
<h2>Download the App now!</h2>
Expand Down Expand Up @@ -462,11 +420,6 @@ <h4>Follow Us</h4>
}
});
main

function openBookingModal() {
var bookingModal = new bootstrap.Modal(document.getElementById('bookingModal'));
bookingModal.show();
}
</script>
main

Expand Down

0 comments on commit 43cd988

Please sign in to comment.