mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
10500 add to forms
This commit is contained in:
parent
4bd27edf10
commit
d72d748164
@ -1033,13 +1033,13 @@ class RearPortTemplateForm(ModularComponentTemplateForm):
|
|||||||
|
|
||||||
class ModuleBayTemplateForm(ComponentTemplateForm):
|
class ModuleBayTemplateForm(ComponentTemplateForm):
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
FieldSet('device_type', 'name', 'label', 'position', 'description'),
|
FieldSet('device_type', 'module_type', 'name', 'label', 'position', 'description'),
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ModuleBayTemplate
|
model = ModuleBayTemplate
|
||||||
fields = [
|
fields = [
|
||||||
'device_type', 'name', 'label', 'position', 'description',
|
'device_type', 'module_type', 'name', 'label', 'position', 'description',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@ -1453,13 +1453,13 @@ class RearPortForm(ModularDeviceComponentForm):
|
|||||||
|
|
||||||
class ModuleBayForm(DeviceComponentForm):
|
class ModuleBayForm(DeviceComponentForm):
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
FieldSet('device', 'name', 'label', 'position', 'description', 'tags',),
|
FieldSet('device', 'module', 'name', 'label', 'position', 'description', 'tags',),
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ModuleBay
|
model = ModuleBay
|
||||||
fields = [
|
fields = [
|
||||||
'device', 'name', 'label', 'position', 'description', 'tags',
|
'device', 'module', 'name', 'label', 'position', 'description', 'tags',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user