Added back button from details page
This commit is contained in:
parent
0cc837eac5
commit
a322b159ab
@ -13,7 +13,7 @@
|
|||||||
<div id="select-date-time">
|
<div id="select-date-time">
|
||||||
<div class="text-center mb-5">
|
<div class="text-center mb-5">
|
||||||
<h3>Book an appointment</h3>
|
<h3>Book an appointment</h3>
|
||||||
<p class="lead text-muted">Select the date and your timezone</p>
|
<p class="lead text-muted" id="lead-text">Select the date and your timezone</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-center mt-3">
|
<div class="row justify-content-center mt-3">
|
||||||
<div class="col-md-6 align-self-center ">
|
<div class="col-md-6 align-self-center ">
|
||||||
@ -53,7 +53,10 @@
|
|||||||
required>
|
required>
|
||||||
<textarea class="form-control mt-3" name="customer_notes" id="customer_notes" cols="30" rows="10"
|
<textarea class="form-control mt-3" name="customer_notes" id="customer_notes" cols="30" rows="10"
|
||||||
placeholder="Notes"></textarea>
|
placeholder="Notes"></textarea>
|
||||||
<button class="btn btn-primary form-control mt-3" onclick="submit()" id="submit-button">Submit</button>
|
<div class="row mt-3 ">
|
||||||
|
<div class="col-md"><button class="btn btn-dark form-control" onclick="initialize_select_date()">Go back</button></div>
|
||||||
|
<div class="col-md"><button class="btn btn-primary form-control " onclick="submit()" id="submit-button">Submit</button></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,6 +69,8 @@ function on_date_or_timezone_select() {
|
|||||||
window.selected_date = date_picker.value;
|
window.selected_date = date_picker.value;
|
||||||
window.selected_timezone = timezone.value;
|
window.selected_timezone = timezone.value;
|
||||||
update_time_slots(date_picker.value, timezone.value);
|
update_time_slots(date_picker.value, timezone.value);
|
||||||
|
let lead_text = document.getElementById('lead-text');
|
||||||
|
lead_text.innerHTML = "Select Time"
|
||||||
}
|
}
|
||||||
|
|
||||||
async function get_time_slots(date, timezone) {
|
async function get_time_slots(date, timezone) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user