fix: rename appointment booking route (#19886)

* rename appoinment booking route

* fix: replace all references to book-appointment route
This commit is contained in:
Pranav Nachnekar 2019-12-10 16:05:28 +00:00 committed by Nabin Hait
parent c58495dcee
commit 6aa763221b
10 changed files with 7 additions and 7 deletions

View File

@ -171,7 +171,7 @@ class Appointment(Document):
self.save(ignore_permissions=True) self.save(ignore_permissions=True)
def _get_verify_url(self): def _get_verify_url(self):
verify_route = '/book-appointment/verify' verify_route = '/book_appointment/verify'
params = { params = {
'email': self.customer_email, 'email': self.customer_email,
'appointment': self.name 'appointment': self.name

View File

@ -18,7 +18,7 @@
"is_standard": 1, "is_standard": 1,
"login_required": 1, "login_required": 1,
"max_attachment_size": 0, "max_attachment_size": 0,
"modified": "2019-06-27 22:58:49.609672", "modified": "2019-12-10 13:48:19.894186",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Support", "module": "Support",
"name": "issues", "name": "issues",

View File

@ -4,7 +4,7 @@
{% block script %} {% block script %}
<script src="assets/js/moment-bundle.min.js"></script> <script src="assets/js/moment-bundle.min.js"></script>
<script src="book-appointment/index.js"></script> <script src="book_appointment/index.js"></script>
{% endblock %} {% endblock %}
{% block page_content %} {% block page_content %}

View File

@ -15,10 +15,10 @@ async function initialise_select_date() {
async function get_global_variables() { async function get_global_variables() {
// Using await through this file instead of then. // Using await through this file instead of then.
window.appointment_settings = (await frappe.call({ window.appointment_settings = (await frappe.call({
method: 'erpnext.www.book-appointment.index.get_appointment_settings' method: 'erpnext.www.book_appointment.index.get_appointment_settings'
})).message; })).message;
window.timezones = (await frappe.call({ window.timezones = (await frappe.call({
method:'erpnext.www.book-appointment.index.get_timezones' method:'erpnext.www.book_appointment.index.get_timezones'
})).message; })).message;
window.holiday_list = window.appointment_settings.holiday_list; window.holiday_list = window.appointment_settings.holiday_list;
} }
@ -79,7 +79,7 @@ function on_date_or_timezone_select() {
async function get_time_slots(date, timezone) { async function get_time_slots(date, timezone) {
let slots = (await frappe.call({ let slots = (await frappe.call({
method: 'erpnext.www.book-appointment.index.get_appointment_slots', method: 'erpnext.www.book_appointment.index.get_appointment_slots',
args: { args: {
date: date, date: date,
timezone: timezone timezone: timezone
@ -201,7 +201,7 @@ async function submit() {
} }
let contact = get_form_data(); let contact = get_form_data();
let appointment = frappe.call({ let appointment = frappe.call({
method: 'erpnext.www.book-appointment.index.create_appointment', method: 'erpnext.www.book_appointment.index.create_appointment',
args: { args: {
'date': window.selected_date, 'date': window.selected_date,
'time': window.selected_time, 'time': window.selected_time,