Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes: #16757 - Use table_htmx.html for assigning ipaddresses #18226

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

bctiemann
Copy link
Contributor

Fixes: #16757

Swaps inc/table_htmx.html for inc/table.html in the ipaddress_assign.html template. This ensures that objects clicked on in that table return a properly targeted HTMX response, whether or not HTMX navigation is turned on.

There are many places where inc/table.html is used, but it appears HTMX targeting is not used in those places. As HTMX is rolled out more pervasively, these will all need to be audited.

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This returns the IP address edit form correctly, however after saving the IP the user is redirected to a bare view of the device's interfaces table.

screenshot

…t flow to avoid htmx fragmentary rendering on object save
@bctiemann
Copy link
Contributor Author

@jeremystretch Turns out that behavior you're seeing of the subsequent table rendering is happening in develop, it's not related to my fix. I've added another adjustment which lets us disable_htmx certain views (currently just DeviceInterfacesView because it's special) so that won't happen.

…ssignment flow to avoid htmx fragmentary rendering on object save"

This reverts commit fa8f2ac.
@bctiemann
Copy link
Contributor Author

Reverted the last commit as the full-page bare-view issue is preexisting and beyond the scope of this specific issue's fix.

@jeremystretch jeremystretch merged commit e7fcbff into develop Dec 17, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 16757-fix-htmx-targeting-ipaddress-assign branch December 17, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

htmx navigation - assign ip flow - odd rendering
2 participants