Skip to content

Improve the form widget for assigning object types for permissions #19968

@jeremystretch

Description

@jeremystretch

NetBox version

v4.3.4

Feature type

Change to existing functionality

Proposed functionality

Introduce a new form field field & widget to improve the user experience when modifying object types for a permission. The form field currently looks like this:

Image

This FR proposes adopting an approach similar to how we handle the selection of columns when reconfiguring an object table:

Image

(The ordering of selected options is not significant in this context.)

This should be implemented in a way such that a single form field class can be reused throughout the application as needed.

Use case

The current approach has several drawbacks:

  • Selecting a large number of options can be tedious
  • Mis-clicking within the field can result in accidentally clearing all selections
  • The size of the selection widget is limited and inhibits readability

Adopting the dual-column approach would make the process of adding and removing individual options less error-prone, while preserving the ability to make bulk selections.

Database changes

N/A

External dependencies

N/A

Metadata

Metadata

Assignees

Labels

complexity: mediumRequires a substantial but not unusual amount of effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions