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

jwilson3’s picture

Title: Add Customer page should without AJAX » Add Customer page should work without AJAX
jwilson3’s picture

Issue summary: View changes
jwilson3’s picture

Issue summary: View changes
jwilson3’s picture

Issue summary: View changes
ronald_istos’s picture

Priority: Normal » Minor
Issue tags: +Rooms1.8

This would be a great patch to include in Rooms 1.8 :-)