1
0
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:
checktheroads
2021-03-17 23:31:15 -07:00
parent 46cd22ea7e
commit 58841e85db
4 changed files with 7 additions and 7 deletions

View File

@ -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',
}

View File

@ -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',

View File

@ -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',

View File

@ -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'