diff --git a/netbox/templates/dcim/inc/panels/racktype_dimensions.html b/netbox/templates/dcim/inc/panels/racktype_dimensions.html new file mode 100644 index 000000000..e955413ed --- /dev/null +++ b/netbox/templates/dcim/inc/panels/racktype_dimensions.html @@ -0,0 +1,48 @@ +{% load i18n %} +
{% trans "Form factor" %} | +{{ object.get_form_factor_display|placeholder }} | +
---|---|
{% trans "Width" %} | +{{ object.get_width_display }} | +
{% trans "Height" %} | +{{ object.u_height }}U | +
{% trans "Outer Width" %} | ++ {% if object.outer_width %} + {{ object.outer_width }} {{ object.get_outer_unit_display }} + {% else %} + {{ ''|placeholder }} + {% endif %} + | +
{% trans "Outer Depth" %} | ++ {% if object.outer_depth %} + {{ object.outer_depth }} {{ object.get_outer_unit_display }} + {% else %} + {{ ''|placeholder }} + {% endif %} + | +
{% trans "Mounting Depth" %} | ++ {% if object.mounting_depth %} + {{ object.mounting_depth }} {% trans "Millimeters" %} + {% else %} + {{ ''|placeholder }} + {% endif %} + | +
{% trans "Starting Unit" %} | +{{ object.starting_unit }} | +
---|---|
{% trans "Descending Units" %} | +{% checkmark object.desc_units %} | +
{% trans "Region" %} | -- {% nested_tree object.site.region %} - | -
---|---|
{% trans "Site" %} | -{{ object.site|linkify }} | -
{% trans "Location" %} | -{% nested_tree object.location %} | -
{% trans "Facility ID" %} | -{{ object.facility_id|placeholder }} | -
{% trans "Tenant" %} | -- {% if object.tenant.group %} - {{ object.tenant.group|linkify }} / - {% endif %} - {{ object.tenant|linkify|placeholder }} - | -
{% trans "Status" %} | -{% badge object.get_status_display bg_color=object.get_status_color %} | -
{% trans "Rack Type" %} | -{{ object.rack_type|linkify|placeholder }} | -
{% trans "Role" %} | -{{ object.role|linkify|placeholder }} | -
{% trans "Description" %} | -{{ object.description|placeholder }} | -
{% trans "Serial Number" %} | -{{ object.serial|placeholder }} | -
{% trans "Asset Tag" %} | -{{ object.asset_tag|placeholder }} | -
{% trans "Space Utilization" %} | -{% utilization_graph object.get_utilization %} | -
{% trans "Power Utilization" %} | -{% utilization_graph object.get_power_utilization %} | -
{% trans "Form factor" %} | -{{ object.get_form_factor_display|placeholder }} | -
---|---|
{% trans "Width" %} | -{{ object.get_width_display }} | -
{% trans "Height" %} | -{{ object.u_height }}U ({% if object.desc_units %}{% trans "descending" %}{% else %}{% trans "ascending" %}{% endif %}) | -
{% trans "Starting Unit" %} | -- {{ object.starting_unit }} - | -
{% trans "Outer Width" %} | -- {% if object.outer_width %} - {{ object.outer_width }} {{ object.get_outer_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Outer Depth" %} | -- {% if object.outer_depth %} - {{ object.outer_depth }} {{ object.get_outer_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Mounting Depth" %} | -- {% if object.mounting_depth %} - {{ object.mounting_depth }} {% trans "Millimeters" %} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Rack Weight" %} | -- {% if object.weight %} - {{ object.weight|floatformat }} {{ object.get_weight_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Maximum Weight" %} | -- {% if object.max_weight %} - {{ object.max_weight }} {{ object.get_weight_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Total Weight" %} | -- {{ object.total_weight|floatformat }} {% trans "Kilograms" %} - ({{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %}) - | -
{% trans "Region" %} | +{% nested_tree object.site.region %} | +
---|---|
{% trans "Site" %} | +{{ object.site|linkify }} | +
{% trans "Location" %} | +{% nested_tree object.location %} | +
{% trans "Facility ID" %} | +{{ object.facility_id|placeholder }} | +
{% trans "Tenant" %} | ++ {% if object.tenant.group %} + {{ object.tenant.group|linkify }} / + {% endif %} + {{ object.tenant|linkify|placeholder }} + | +
{% trans "Status" %} | +{% badge object.get_status_display bg_color=object.get_status_color %} | +
{% trans "Rack Type" %} | +{{ object.rack_type|linkify|placeholder }} | +
{% trans "Role" %} | +{{ object.role|linkify|placeholder }} | +
{% trans "Description" %} | +{{ object.description|placeholder }} | +
{% trans "Serial Number" %} | +{{ object.serial|placeholder }} | +
{% trans "Asset Tag" %} | +{{ object.asset_tag|placeholder }} | +
{% trans "Space Utilization" %} | +{% utilization_graph object.get_utilization %} | +
{% trans "Power Utilization" %} | +{% utilization_graph object.get_power_utilization %} | +
{% trans "Rack Weight" %} | ++ {% if object.weight %} + {{ object.weight|floatformat }} {{ object.get_weight_unit_display }} + {% else %} + {{ ''|placeholder }} + {% endif %} + | +
---|---|
{% trans "Maximum Weight" %} | ++ {% if object.max_weight %} + {{ object.max_weight }} {{ object.get_weight_unit_display }} + {% else %} + {{ ''|placeholder }} + {% endif %} + | +
{% trans "Total Weight" %} | ++ {{ object.total_weight|floatformat }} {% trans "Kilograms" %} + ({{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %}) + | +
{% trans "Width" %} | -{{ object.get_width_display }} | -
---|---|
{% trans "Height" %} | -{{ object.u_height }}U ({% if object.desc_units %}{% trans "descending" %}{% else %}{% trans "ascending" %}{% endif %}) | -
{% trans "Starting Unit" %} | -- {{ object.starting_unit }} - | -
{% trans "Outer Width" %} | -- {% if object.outer_width %} - {{ object.outer_width }} {{ object.get_outer_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Outer Depth" %} | -- {% if object.outer_depth %} - {{ object.outer_depth }} {{ object.get_outer_unit_display }} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Mounting Depth" %} | -- {% if object.mounting_depth %} - {{ object.mounting_depth }} {% trans "Millimeters" %} - {% else %} - {{ ''|placeholder }} - {% endif %} - | -
{% trans "Rack Weight" %} | @@ -99,11 +58,6 @@ |