From 803809f26033f74d1ac684ec2fad501860ac1bc8 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Fri, 5 May 2023 23:51:06 +0530 Subject: [PATCH] adds dimensions card to device view #12286 --- netbox/templates/dcim/device.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 2c79ab006..2072bff99 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -300,6 +300,29 @@ {% include 'inc/panels/contacts.html' %} {% include 'inc/panels/image_attachments.html' %} +
+
Dimensions
+
+ + + + + + + + + +
Height + {{ object.device_type.u_height }}U ({% if object.desc_units %}descending{% else %}ascending{% endif %}) +
Weight + {% if object.device_type.weight %} + {{ object.device_type.weight|floatformat }} {{ object.device_type.get_weight_unit_display }} + {% else %} + {{ ''|placeholder }} + {% endif %} +
+
+
{% if object.rack and object.position %}