mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
update css classes for bootstrap 5 colors
This commit is contained in:
@ -169,7 +169,7 @@ class DeviceStatusChoices(ChoiceSet):
|
||||
STATUS_PLANNED: 'info',
|
||||
STATUS_STAGED: 'primary',
|
||||
STATUS_FAILED: 'danger',
|
||||
STATUS_INVENTORY: 'default',
|
||||
STATUS_INVENTORY: 'secondary',
|
||||
STATUS_DECOMMISSIONING: 'warning',
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ class CustomFieldFilterLogicChoices(ChoiceSet):
|
||||
|
||||
class CustomLinkButtonClassChoices(ChoiceSet):
|
||||
|
||||
CLASS_DEFAULT = 'default'
|
||||
CLASS_DEFAULT = 'outline-dark'
|
||||
CLASS_PRIMARY = 'primary'
|
||||
CLASS_SUCCESS = 'success'
|
||||
CLASS_INFO = 'info'
|
||||
@ -106,7 +106,7 @@ class JournalEntryKindChoices(ChoiceSet):
|
||||
)
|
||||
|
||||
CSS_CLASSES = {
|
||||
KIND_INFO: 'default',
|
||||
KIND_INFO: 'info',
|
||||
KIND_SUCCESS: 'success',
|
||||
KIND_WARNING: 'warning',
|
||||
KIND_DANGER: 'danger',
|
||||
@ -134,7 +134,7 @@ class LogLevelChoices(ChoiceSet):
|
||||
)
|
||||
|
||||
CSS_CLASSES = {
|
||||
LOG_DEFAULT: 'default',
|
||||
LOG_DEFAULT: 'secondary',
|
||||
LOG_SUCCESS: 'success',
|
||||
LOG_INFO: 'info',
|
||||
LOG_WARNING: 'warning',
|
||||
|
@ -31,7 +31,7 @@ class PrefixStatusChoices(ChoiceSet):
|
||||
)
|
||||
|
||||
CSS_CLASSES = {
|
||||
STATUS_CONTAINER: 'default',
|
||||
STATUS_CONTAINER: 'secondary',
|
||||
STATUS_ACTIVE: 'primary',
|
||||
STATUS_RESERVED: 'info',
|
||||
STATUS_DEPRECATED: 'danger',
|
||||
@ -90,7 +90,7 @@ class IPAddressRoleChoices(ChoiceSet):
|
||||
)
|
||||
|
||||
CSS_CLASSES = {
|
||||
ROLE_LOOPBACK: 'default',
|
||||
ROLE_LOOPBACK: 'secondary',
|
||||
ROLE_SECONDARY: 'primary',
|
||||
ROLE_ANYCAST: 'warning',
|
||||
ROLE_VIP: 'success',
|
||||
|
@ -132,7 +132,7 @@ class ButtonColorChoices(ChoiceSet):
|
||||
"""
|
||||
Map standard button color choices to Bootstrap color classes
|
||||
"""
|
||||
DEFAULT = 'default'
|
||||
DEFAULT = 'outline-dark'
|
||||
BLUE = 'primary'
|
||||
GREY = 'secondary'
|
||||
GREEN = 'success'
|
||||
|
Reference in New Issue
Block a user