Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Feb 18, 2025

Pull Request

Related Issue

[Bug] Fix Templates for NetBox v4.1 UI Update #231

New Behavior

This PR updates the plugin’s templates to align with the NetBox v4.1 UI.

Contrast to Current Behavior

The updated templates match the layout of NetBox v4.1 and later, improving consistency with the latest UI changes.

Discussion: Benefits and Drawbacks

This change ensures a consistent look and feel for the plugin when used with NetBox v4.1 and later.
It removes outdated styling, making the UI more cohesive with NetBox’s recent updates.

Changes to the Documentation

No documentation updates are required.

Proposed Release Note Entry

Updated templates to match NetBox v4.1+ UI changes.

Double Check

  • I have explained my PR according to the information in the comments
    or in a linked issue.
  • My PR targets the dev branch.

Corrects inconsistent indentation in an access list (ACL) templates for
better readability and maintainability. This change ensures a
consistent format across all relevant template files.
Replace `<h5>` and `<h4>` elements with `<h2>` for better semantic
structure.
Refactors the HTML templates for access control lists (ACLs) to remove
unnecessary `<div>` wrappers within card components.
Eliminates unnecessary captions from tables in ACL-related templates.
These captions were duplicate content and provided no additional value
to the user interface.
Removed unnecessary "btn-sm" classes and replaced span icons with
<i> tags for uniform styling.
Updated forms to enhance layout and spacing consistency by leveraging
NetBox style classes.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌

@pheus
Copy link
Contributor Author

pheus commented Feb 18, 2025

Hey @cruse1977, I've just merged the latest changes form the dev branch into this PR.
Could you please review it when you have a chance?
Let me know if any changes are needed.
Thanks a lot!

@cruse1977
Copy link
Member

Hi @pheus will do, ideally want issue 233 resolved first (ie: making sure 1.8.1 is a good build on PyPi)

@cruse1977 cruse1977 merged commit 404ad38 into netbox-community:dev Feb 19, 2025
6 checks passed
@pheus pheus deleted the bugfix/231-update-templates-for-netbox-v4-1 branch February 19, 2025 21:20
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.

2 participants