gaepdit / complaint-tracking

Complaint Tracking System
The Unlicense
1 stars 3 forks source link

Replace standalone complaint transition pages with inline forms on details page #770

Open dougwaldron opened 5 months ago

dougwaldron commented 5 months ago

The relevant forms can be included in the HTML in a collapsed/hidden state. See Collapse · Bootstrap v5.3 for functionality.

Alternatively, the form can be loaded via AJAX, but this seems like overkill.

Here's an example inlining the "Request Review" form: Image

The Cancel button should hide the form and optionally clear any entered form details. If there is more than one inline form available on the page, opening one should close any others that are already open (only one should be open at a time).

Submitting the form should reload the page.