mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Closes #6400: Add cyan color choice for plugin buttons
This commit is contained in:
parent
834b233c30
commit
138231059b
@ -5,6 +5,7 @@
|
|||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
* [#6393](https://github.com/netbox-community/netbox/issues/6393) - Add `description` filter for IP addresses
|
* [#6393](https://github.com/netbox-community/netbox/issues/6393) - Add `description` filter for IP addresses
|
||||||
|
* [#6400](https://github.com/netbox-community/netbox/issues/6400) - Add cyan color choice for plugin buttons
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
@ -130,22 +130,24 @@ class ColorChoices(ChoiceSet):
|
|||||||
|
|
||||||
class ButtonColorChoices(ChoiceSet):
|
class ButtonColorChoices(ChoiceSet):
|
||||||
"""
|
"""
|
||||||
Map standard button color choices to Bootstrap color classes
|
Map standard button color choices to Bootstrap 3 button classes
|
||||||
"""
|
"""
|
||||||
DEFAULT = 'default'
|
DEFAULT = 'default'
|
||||||
BLUE = 'primary'
|
BLUE = 'primary'
|
||||||
GREY = 'secondary'
|
CYAN = 'info'
|
||||||
GREEN = 'success'
|
GREEN = 'success'
|
||||||
RED = 'danger'
|
RED = 'danger'
|
||||||
YELLOW = 'warning'
|
YELLOW = 'warning'
|
||||||
|
GREY = 'secondary'
|
||||||
BLACK = 'dark'
|
BLACK = 'dark'
|
||||||
|
|
||||||
CHOICES = (
|
CHOICES = (
|
||||||
(DEFAULT, 'Default'),
|
(DEFAULT, 'Default'),
|
||||||
(BLUE, 'Blue'),
|
(BLUE, 'Blue'),
|
||||||
(GREY, 'Grey'),
|
(CYAN, 'Cyan'),
|
||||||
(GREEN, 'Green'),
|
(GREEN, 'Green'),
|
||||||
(RED, 'Red'),
|
(RED, 'Red'),
|
||||||
(YELLOW, 'Yellow'),
|
(YELLOW, 'Yellow'),
|
||||||
|
(GREY, 'Grey'),
|
||||||
(BLACK, 'Black')
|
(BLACK, 'Black')
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user