Added back button from details page

This commit is contained in:
Pranav Nachanekar 2019-09-11 14:25:26 +05:30
parent 0cc837eac5
commit a322b159ab
2 changed files with 7 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<div id="select-date-time">
<div class="text-center mb-5">
<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 class="row justify-content-center mt-3">
<div class="col-md-6 align-self-center ">
@ -53,7 +53,10 @@
required>
<textarea class="form-control mt-3" name="customer_notes" id="customer_notes" cols="30" rows="10"
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>

View File

@ -69,6 +69,8 @@ function on_date_or_timezone_select() {
window.selected_date = date_picker.value;
window.selected_timezone = 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) {