diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html index 03d314aa6..b9db8db6f 100644 --- a/netbox/templates/dcim/devicetype.html +++ b/netbox/templates/dcim/devicetype.html @@ -63,149 +63,157 @@ {% endblock %} {% block content %} -
-
-
-
- Chassis +
+
+
+
+ Chassis +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Manufacturer{{ devicetype.manufacturer }}
Model Name + {{ devicetype.model }}
+ {{ devicetype.slug }} +
Part Number{{ devicetype.part_number|placeholder }}
Height (U){{ devicetype.u_height }}
Full Depth + {% if devicetype.is_full_depth %} + + {% else %} + + {% endif %} +
Parent/Child + {{ devicetype.get_subdevice_role_display|placeholder }} +
Front Image + {% if devicetype.front_image %} + + {{ devicetype.front_image.name }} + + {% else %} + + {% endif %} +
Rear Image + {% if devicetype.rear_image %} + + {{ devicetype.rear_image.name }} + + {% else %} + + {% endif %} +
Instances{{ instance_count }}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Manufacturer{{ devicetype.manufacturer }}
Model Name - {{ devicetype.model }}
- {{ devicetype.slug }} -
Part Number{{ devicetype.part_number|placeholder }}
Height (U){{ devicetype.u_height }}
Full Depth - {% if devicetype.is_full_depth %} - - {% else %} - - {% endif %} -
Parent/Child - {{ devicetype.get_subdevice_role_display|placeholder }} -
Front Image - {% if devicetype.front_image %} - - {{ devicetype.front_image.name }} - - {% else %} - - {% endif %} -
Rear Image - {% if devicetype.rear_image %} - - {{ devicetype.rear_image.name }} - - {% else %} - - {% endif %} -
Instances{{ instance_count }}
+ {% plugin_left_page devicetype %}
- {% plugin_left_page devicetype %} -
-
- {% include 'inc/custom_fields_panel.html' with obj=devicetype %} - {% include 'extras/inc/tags_panel.html' with tags=devicetype.tags.all url='dcim:devicetype_list' %} -
-
- Comments +
+ {% include 'inc/custom_fields_panel.html' with obj=devicetype %} + {% include 'extras/inc/tags_panel.html' with tags=devicetype.tags.all url='dcim:devicetype_list' %} +
+
+ Comments +
+
+ {% if devicetype.comments %} + {{ devicetype.comments|render_markdown }} + {% else %} + None + {% endif %} +
-
- {% if devicetype.comments %} - {{ devicetype.comments|render_markdown }} - {% else %} - None - {% endif %} + {% plugin_right_page devicetype %} +
+
+
+
+ {% plugin_full_width_page devicetype %} +
+
+
+
+ +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=interface_table title='Interfaces' %} +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=front_port_table title='Front Ports' %} +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=rear_port_table title='Rear Ports' %} +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=consoleport_table title='Console Ports' %} +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=consoleserverport_table title='Console Server Ports' %} +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=powerport_table title='Power Ports' %} +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=poweroutlet_table title='Power Outlets' %} +
+
+ {% include 'dcim/inc/devicetype_component_table.html' with table=devicebay_table title='Device Bays' %} +
- {% plugin_right_page devicetype %}
-
-{% if devicetype.consoleporttemplates.exists or devicetype.powerporttemplates.exists %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=consoleport_table title='Console Ports' %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=powerport_table title='Power Ports' %} -
-
-{% endif %} -
-
- {% plugin_full_width_page devicetype %} -
-
-{% if devicetype.is_parent_device or devicebay_table.rows %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=devicebay_table title='Device Bays' %} -
-
-{% endif %} -{% if devicetype.consoleserverporttemplates.exists %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=consoleserverport_table title='Console Server Ports' %} -
-
-{% endif %} -{% if devicetype.poweroutlettemplates.exists %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=poweroutlet_table title='Power Outlets' %} -
-
-{% endif %} -{% if devicetype.interfacetemplates.exists %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=interface_table title='Interfaces' %} -
-
-{% endif %} -{% if devicetype.frontporttemplates.exists or devicetype.rearporttemplates.exists %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=front_port_table title='Front Ports' %} -
-
- {% include 'dcim/inc/devicetype_component_table.html' with table=rear_port_table title='Rear Ports' %} -
-
-{% endif %} {% endblock %}