Added back button from details page
diff --git a/erpnext/www/book-appointment/index.html b/erpnext/www/book-appointment/index.html
index f407427..43275eb 100644
--- a/erpnext/www/book-appointment/index.html
+++ b/erpnext/www/book-appointment/index.html
@@ -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>
diff --git a/erpnext/www/book-appointment/index.js b/erpnext/www/book-appointment/index.js
index 61ea8e4..90572fb 100644
--- a/erpnext/www/book-appointment/index.js
+++ b/erpnext/www/book-appointment/index.js
@@ -69,6 +69,8 @@
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) {