mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
11969 fix rack edit
This commit is contained in:
parent
8da9da5f1a
commit
211626b9b2
@ -261,7 +261,7 @@ class RackForm(TenancyForm, NetBoxModelForm):
|
|||||||
comments = CommentField()
|
comments = CommentField()
|
||||||
|
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
FieldSet('site', 'location', 'name', 'status', 'role', 'rack_type', 'description', 'tags', name=_('Rack')),
|
FieldSet('site', 'location', 'name', 'status', 'role', 'rack_type', 'description', 'airflow', 'tags', name=_('Rack')),
|
||||||
FieldSet('facility_id', 'serial', 'asset_tag', name=_('Inventory Control')),
|
FieldSet('facility_id', 'serial', 'asset_tag', name=_('Inventory Control')),
|
||||||
FieldSet('tenant_group', 'tenant', name=_('Tenancy')),
|
FieldSet('tenant_group', 'tenant', name=_('Tenancy')),
|
||||||
)
|
)
|
||||||
@ -293,7 +293,7 @@ class RackForm(TenancyForm, NetBoxModelForm):
|
|||||||
self.fieldsets = (
|
self.fieldsets = (
|
||||||
*self.fieldsets,
|
*self.fieldsets,
|
||||||
FieldSet(
|
FieldSet(
|
||||||
'form_factor', 'width', 'starting_unit', 'u_height', 'airflow',
|
'form_factor', 'width', 'starting_unit', 'u_height',
|
||||||
InlineFields('outer_width', 'outer_depth', 'outer_unit', label=_('Outer Dimensions')),
|
InlineFields('outer_width', 'outer_depth', 'outer_unit', label=_('Outer Dimensions')),
|
||||||
InlineFields('weight', 'max_weight', 'weight_unit', label=_('Weight')),
|
InlineFields('weight', 'max_weight', 'weight_unit', label=_('Weight')),
|
||||||
'mounting_depth', 'desc_units', name=_('Dimensions')
|
'mounting_depth', 'desc_units', name=_('Dimensions')
|
||||||
|
Loading…
Reference in New Issue
Block a user