1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #9206: Show header for comments field under module & module type creation views

This commit is contained in:
jeremystretch
2022-04-25 08:33:41 -04:00
parent e63a191373
commit 4f86d6a690
2 changed files with 16 additions and 0 deletions

View File

@ -385,6 +385,12 @@ class ModuleTypeForm(NetBoxModelForm):
)
comments = CommentField()
fieldsets = (
('Module Type', (
'manufacturer', 'model', 'part_number', 'tags',
)),
)
class Meta:
model = ModuleType
fields = [
@ -627,6 +633,15 @@ class ModuleForm(NetBoxModelForm):
help_text="Automatically populate components associated with this module type"
)
fieldsets = (
('Module', (
'device', 'module_bay', 'manufacturer', 'module_type', 'tags',
)),
('Hardware', (
'serial', 'asset_tag', 'replicate_components',
)),
)
class Meta:
model = Module
fields = [