Skip to content

Fix GUI bug when NetBox HTMX is disabled causing to render layout.html instead of just the desired element. #277

Open
@emersonfelipesp

Description

@emersonfelipesp

Example:

Initial state:

Image

When HTMX is enabled globally on NetBox (works great)

Image

When HTMX is disabled globally on NetBox, but my plugin stiil tries to use HTMX:

Image

I can tell why this is happing, on this Status Badge used as example, it is extending NetBox base/layout.html template. Removing it solves the visual problem when HTMX is disabled globally, but then when it is enabled, the HTMX just does not work. I still didn't got the time to investigate why.

I would appreciate some help on solving this, mainly from one that deeply understands how NetBox use HTMX and why it relies on layout.html to work (at least on my case).

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis issue has been accepted for implementationbugFurther discussion is needed to determine this issue's scope and/or implementationhelp wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions