Updated: Comment #N
Problem/Motivation
Navigating to /admin/rooms/add_customer
in a browser outputs JSON code used by the Booking form at /admin/rooms/bookings/add/standard_booking
.
Proposed resolution
Move the Add Customer form from /admin/rooms/add_customer
to /admin/rooms/no-js/add_customer
and ensure it works on its own.
This follows CTools AJAX best practices of placing no-js
in the URL, which is then dynamically switched by the CTools modal functionality when poping the form up into a modal.
Test whether the request was done via AJAX/JS, or was accessed directly by the end user in their browser. If accessed directly the user should be redirected to the Add customer Profile page in commerce /admin/commerce/customer-profiles/add/billing
.
Remaining tasks
Write the patch.
User interface changes
No noticeable changes in the UI. We could consider adding an independent Add Customer link in our menus or a View Customers list page as a follow up.
API changes
Though the menu router path will change, there should be no noticeable changes in the API.
Comments
Comment #1
jwilson3Comment #2
jwilson3Comment #3
jwilson3Comment #4
jwilson3Comment #5
ronald_istos CreditAttribution: ronald_istos at roomify - online and open source reservation solutions commentedThis would be a great patch to include in Rooms 1.8 :-)