ERP/templates/invoices
Victor Broman 2dfe0a48ea fix(pagination): update URL on pagination and search
This commit addresses two issues with pagination and search:

1.  **Pagination URL Update**: Added `hx-push-url` to pagination buttons in the customer, order, and invoice list templates. This ensures the browser URL and history are updated when navigating pages via HTMX. The query parameters for `status` and `search` are now conditionally included, preventing empty parameters (e.g., `&status=`) in the URL.

2.  **Search URL Reset**: Updated the `CustomerList` handler to send the `HX-Push-Url` header when performing a search via HTMX. This ensures that when a search is executed (or cleared), the URL correctly reflects the new state (reseting the page to 1), fixing a mismatch where the URL could show page 4 while the content was reset to page 1.
2026-02-07 10:19:32 +01:00
..
detail.html inital commit 2026-02-06 17:35:29 +01:00
list.html fix(pagination): update URL on pagination and search 2026-02-07 10:19:32 +01:00