mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Experimenting * Remove testing resources * Replace ApiSelect with TomSelect * Add color support * Add clear button * Clear cached options when searching dynamic selects * Add support for static parameters * Refactor TomSelect implementation * Add dynamic parameter support * Limit number of options to 100 * Remove redundant api_url definitions for user model * Add support for disabled indicator * Remove obsolete value-field attr on dynamic select widgets * Remove obsolete fetch_trigger kwarg from dynamic model choice widgets * Remove obsolete empty_label kwarg from dynamic model choice widgets * Add support for API path variables * Add support for setting a 'null' option * Annotate depth for recursive hierarchies * Misc cleanup * Remove obsolete APISelect code * Remove slim-select & just-debounce-it * Clean up type validation * Closes #14237: Clear child selections on change to parent selection * Use an MD icon for the clear button * Use an MD icon for the clear button * Explain why noUnusedParameters is disabled
This commit is contained in:
@@ -25,7 +25,6 @@ class BulkEditNullBooleanSelect(forms.NullBooleanSelect):
|
||||
('2', 'Yes'),
|
||||
('3', 'No'),
|
||||
)
|
||||
self.attrs['class'] = 'netbox-static-select'
|
||||
|
||||
|
||||
class ColorSelect(forms.Select):
|
||||
@@ -37,7 +36,7 @@ class ColorSelect(forms.Select):
|
||||
def __init__(self, *args, **kwargs):
|
||||
kwargs['choices'] = add_blank_choice(ColorChoices)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.attrs['class'] = 'netbox-color-select'
|
||||
self.attrs['class'] = 'color-select'
|
||||
|
||||
|
||||
class HTMXSelect(forms.Select):
|
||||
|
||||
Reference in New Issue
Block a user