|
@@ -211,7 +211,7 @@ class RackTypeForm(NetBoxModelForm):
|
|
|
slug = SlugField()
|
|
slug = SlugField()
|
|
|
|
|
|
|
|
fieldsets = (
|
|
fieldsets = (
|
|
|
- FieldSet('manufacturer', 'name', 'slug', 'description', 'form_factor', 'tags', name=_('Rack Type')),
|
|
|
|
|
|
|
+ FieldSet('manufacturer', 'name', 'slug', 'description', 'form_factor', 'airflow', 'tags', name=_('Rack Type')),
|
|
|
FieldSet(
|
|
FieldSet(
|
|
|
'width', 'u_height',
|
|
'width', 'u_height',
|
|
|
InlineFields('outer_width', 'outer_depth', 'outer_unit', label=_('Outer Dimensions')),
|
|
InlineFields('outer_width', 'outer_depth', 'outer_unit', label=_('Outer Dimensions')),
|
|
@@ -226,7 +226,7 @@ class RackTypeForm(NetBoxModelForm):
|
|
|
fields = [
|
|
fields = [
|
|
|
'manufacturer', 'name', 'slug', 'form_factor', 'width', 'u_height', 'starting_unit', 'desc_units',
|
|
'manufacturer', 'name', 'slug', 'form_factor', 'width', 'u_height', 'starting_unit', 'desc_units',
|
|
|
'outer_width', 'outer_depth', 'outer_unit', 'mounting_depth', 'weight', 'max_weight', 'weight_unit',
|
|
'outer_width', 'outer_depth', 'outer_unit', 'mounting_depth', 'weight', 'max_weight', 'weight_unit',
|
|
|
- 'description', 'comments', 'tags',
|
|
|
|
|
|
|
+ 'airflow', 'description', 'comments', 'tags',
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
@@ -268,8 +268,8 @@ class RackForm(TenancyForm, NetBoxModelForm):
|
|
|
fields = [
|
|
fields = [
|
|
|
'site', 'location', 'name', 'facility_id', 'tenant_group', 'tenant', 'status', 'role', 'serial',
|
|
'site', 'location', 'name', 'facility_id', 'tenant_group', 'tenant', 'status', 'role', 'serial',
|
|
|
'asset_tag', 'rack_type', 'form_factor', 'width', 'u_height', 'starting_unit', 'desc_units', 'outer_width',
|
|
'asset_tag', 'rack_type', 'form_factor', 'width', 'u_height', 'starting_unit', 'desc_units', 'outer_width',
|
|
|
- 'outer_depth', 'outer_unit', 'mounting_depth', 'weight', 'max_weight', 'weight_unit', 'description',
|
|
|
|
|
- 'comments', 'tags',
|
|
|
|
|
|
|
+ 'outer_depth', 'outer_unit', 'mounting_depth', 'airflow', 'weight', 'max_weight', 'weight_unit',
|
|
|
|
|
+ 'description', 'comments', 'tags',
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
def __init__(self, *args, **kwargs):
|
|
@@ -290,7 +290,7 @@ class RackForm(TenancyForm, NetBoxModelForm):
|
|
|
self.fieldsets = (
|
|
self.fieldsets = (
|
|
|
*self.fieldsets,
|
|
*self.fieldsets,
|
|
|
FieldSet(
|
|
FieldSet(
|
|
|
- 'form_factor', 'width', 'starting_unit', 'u_height',
|
|
|
|
|
|
|
+ 'form_factor', 'width', 'starting_unit', 'u_height', 'airflow',
|
|
|
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')
|
|
@@ -398,13 +398,14 @@ class ModuleTypeForm(NetBoxModelForm):
|
|
|
|
|
|
|
|
fieldsets = (
|
|
fieldsets = (
|
|
|
FieldSet('manufacturer', 'model', 'part_number', 'description', 'tags', name=_('Module Type')),
|
|
FieldSet('manufacturer', 'model', 'part_number', 'description', 'tags', name=_('Module Type')),
|
|
|
- FieldSet('weight', 'weight_unit', name=_('Weight'))
|
|
|
|
|
|
|
+ FieldSet('airflow', 'weight', 'weight_unit', name=_('Chassis'))
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
class Meta:
|
|
class Meta:
|
|
|
model = ModuleType
|
|
model = ModuleType
|
|
|
fields = [
|
|
fields = [
|
|
|
- 'manufacturer', 'model', 'part_number', 'weight', 'weight_unit', 'description', 'comments', 'tags',
|
|
|
|
|
|
|
+ 'manufacturer', 'model', 'part_number', 'airflow', 'weight', 'weight_unit', 'description',
|
|
|
|
|
+ 'comments', 'tags',
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
|