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