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:
Martin Hauser
2026-04-22 19:41:21 +02:00
committed by Jeremy Stretch
parent 7941303d4b
commit b1a810164a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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