1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

implemented #2590 - improved color picker with actual colors

This commit is contained in:
John Anderson
2019-01-05 17:43:42 -05:00
parent c27cea981c
commit 6d5d9c8af3
4 changed files with 129 additions and 1 deletions

View File

@ -169,6 +169,7 @@ class ColorSelect(forms.Select):
def __init__(self, *args, **kwargs):
kwargs['choices'] = add_blank_choice(COLOR_CHOICES)
super().__init__(*args, **kwargs)
self.attrs['class'] = 'netbox-select2-color-picker'
class BulkEditNullBooleanSelect(forms.NullBooleanSelect):