From 259d0e96f28635501e94eda5addfff1945d534ca Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 8 May 2023 18:26:28 +0530 Subject: [PATCH] Adds dimensions card to device view (#12509) * adds dimensions card to device view #12286 * Update netbox/templates/dcim/device.html Co-authored-by: Jeremy Stretch --------- Co-authored-by: Jeremy Stretch --- 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..13d5f2a94 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 +
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 %}