mirror of
https://github.com/netbox-community/netbox.git
synced 2026-05-06 14:04:12 +08:00
fix(dcim): Add color field to FrontPort form
Include the color field in FrontPortForm and commented-out FrontPortBulkCreateForm field lists to allow editing front port colors via the UI. Fixes #21985
This commit is contained in:
committed by
Jeremy Stretch
parent
7941303d4b
commit
b1a810164a
@@ -94,7 +94,7 @@ class InterfaceBulkCreateForm(
|
||||
|
||||
|
||||
# class FrontPortBulkCreateForm(
|
||||
# form_from_model(FrontPort, ['label', 'type', 'description', 'tags']),
|
||||
# form_from_model(FrontPort, ['label', 'type', 'color', 'description', 'tags']),
|
||||
# DeviceBulkAddComponentForm
|
||||
# ):
|
||||
# pass
|
||||
|
||||
@@ -1166,7 +1166,7 @@ class FrontPortTemplateForm(FrontPortFormMixin, ModularComponentTemplateForm):
|
||||
FieldSet('device_type', name=_('Device Type')),
|
||||
FieldSet('module_type', name=_('Module Type')),
|
||||
),
|
||||
'name', 'label', 'type', 'positions', 'rear_ports', 'description',
|
||||
'name', 'label', 'type', 'color', 'positions', 'rear_ports', 'description',
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user