|
@@ -385,6 +385,12 @@ class ModuleTypeForm(NetBoxModelForm):
|
|
|
)
|
|
)
|
|
|
comments = CommentField()
|
|
comments = CommentField()
|
|
|
|
|
|
|
|
|
|
+ fieldsets = (
|
|
|
|
|
+ ('Module Type', (
|
|
|
|
|
+ 'manufacturer', 'model', 'part_number', 'tags',
|
|
|
|
|
+ )),
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
class Meta:
|
|
class Meta:
|
|
|
model = ModuleType
|
|
model = ModuleType
|
|
|
fields = [
|
|
fields = [
|
|
@@ -627,6 +633,15 @@ class ModuleForm(NetBoxModelForm):
|
|
|
help_text="Automatically populate components associated with this module type"
|
|
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:
|
|
class Meta:
|
|
|
model = Module
|
|
model = Module
|
|
|
fields = [
|
|
fields = [
|