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

Closes #14736: Enable HTMX navigation globally #15158

Merged
merged 26 commits into from
Mar 28, 2024
Merged

Conversation

jeremystretch
Copy link
Member

@jeremystretch jeremystretch commented Feb 14, 2024

Fixes: #14736

  • Introduce the ui.htmx_navigation user preference for toggling HTMX navigation per user
  • Introduce the render_partial() utility function for determining when to return a partial HTML response
  • Add htmx_navigation (boolean) to the default template context
  • Add a page-content element in the base layout template
  • Introduce the {% htmx_boost %} template tag to enable boosting certain areas of the page
  • Introduce the {% formaction %} template tag to enable HTMX support for form controls with a formaction attribute
  • Merge inc/user_menu.html into base/layout.html

@jeremystretch jeremystretch added this to the v4.0 milestone Feb 14, 2024
@jeremystretch jeremystretch marked this pull request as ready for review March 25, 2024 19:30
netbox/core/views.py Outdated Show resolved Hide resolved
netbox/project-static/src/htmx.ts Show resolved Hide resolved
netbox/utilities/templatetags/navigation.py Show resolved Hide resolved
@jeremystretch jeremystretch merged commit 744be59 into feature Mar 28, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 14736-htmx branch March 28, 2024 15:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants