diff --git a/netbox/utilities/forms.py b/netbox/utilities/forms.py index 8285a7b96..35be15926 100644 --- a/netbox/utilities/forms.py +++ b/netbox/utilities/forms.py @@ -118,25 +118,15 @@ class SmallTextarea(forms.Textarea): class ColorSelect(forms.Select): + """ + Extends the built-in Select widget to colorize each ', - option_value, selected_html, option_value, force_text(option_label)) - class SelectWithDisabled(forms.Select): """ diff --git a/netbox/utilities/templates/colorselect_option.html b/netbox/utilities/templates/colorselect_option.html new file mode 100644 index 000000000..7d10b893f --- /dev/null +++ b/netbox/utilities/templates/colorselect_option.html @@ -0,0 +1 @@ +