{% extends '_base.html' %} {% load helpers %} {% load render_table from django_tables2 %} {% block title %}{{ devicetype }}{% endblock %} {% block content %}
{% if perms.dcim.change_devicetype or perms.dcim.delete_devicetype %}
{% if perms.dcim.change_devicetype %} Edit this device type {% endif %} {% if perms.dcim.delete_devicetype %} Delete this device type {% endif %}
{% endif %}

{{ devicetype }}

Chassis
Manufacturer {{ devicetype.manufacturer }}
Model Name {{ devicetype.model }}
Height (U) {{ devicetype.u_height }}
Full Depth {{ devicetype.is_full_depth|yesno|capfirst }}
Function
Is a Console Server {{ devicetype.is_console_server|yesno|capfirst }}
Is a PDU {{ devicetype.is_pdu|yesno|capfirst }}
Is a Network Device {{ devicetype.is_network_device|yesno|capfirst }}
{% include 'dcim/inc/devicetype_component_table.html' with table=consoleport_table title='Console Ports' add_url='dcim:devicetype_add_consoleport' delete_url='dcim:devicetype_delete_consoleport' %} {% include 'dcim/inc/devicetype_component_table.html' with table=powerport_table title='Power Ports' add_url='dcim:devicetype_add_powerport' delete_url='dcim:devicetype_delete_powerport' %}
{% if devicetype.is_network_device %} {% include 'dcim/inc/devicetype_component_table.html' with table=devicebay_table title='Device Bays' add_url='dcim:devicetype_add_devicebay' delete_url='dcim:devicetype_delete_devicebay' %} {% endif %} {% if devicetype.is_network_device %} {% include 'dcim/inc/devicetype_component_table.html' with table=interface_table title='Interfaces' add_url='dcim:devicetype_add_interface' delete_url='dcim:devicetype_delete_interface' %} {% endif %} {% if devicetype.is_console_server %} {% include 'dcim/inc/devicetype_component_table.html' with table=consoleserverport_table title='Console Server Ports' add_url='dcim:devicetype_add_consoleserverport' delete_url='dcim:devicetype_delete_consoleserverport' %} {% endif %} {% if devicetype.is_pdu %} {% include 'dcim/inc/devicetype_component_table.html' with table=poweroutlet_table title='Power Outlets' add_url='dcim:devicetype_add_poweroutlet' delete_url='dcim:devicetype_delete_poweroutlet' %} {% endif %}
{% endblock %}