{% extends 'generic/object.html' %} {% load buttons %} {% load helpers %} {% load plugins %} {% block title %}{{ object.manufacturer }} {{ object.model }}{% endblock %} {% block breadcrumbs %} {{ block.super }} {% endblock %} {% block extra_controls %} {% if perms.dcim.change_devicetype %} {% endif %} {% endblock %} {% block extra_tabs %} {% with tab_name='device-bay-templates' devicebay_count=object.devicebaytemplates.count %} {% if active_tab == tab_name or devicebay_count %} {% endif %} {% endwith %} {% with tab_name='module-bay-templates' modulebay_count=object.modulebaytemplates.count %} {% if active_tab == tab_name or modulebay_count %} {% endif %} {% endwith %} {% with tab_name='interface-templates' interface_count=object.interfacetemplates.count %} {% if active_tab == tab_name or interface_count %} {% endif %} {% endwith %} {% with tab_name='front-port-templates' frontport_count=object.frontporttemplates.count %} {% if active_tab == tab_name or frontport_count %} {% endif %} {% endwith %} {% with tab_name='rear-port-templates' rearport_count=object.rearporttemplates.count %} {% if active_tab == tab_name or rearport_count %} {% endif %} {% endwith %} {% with tab_name='console-port-templates' consoleport_count=object.consoleporttemplates.count %} {% if active_tab == tab_name or consoleport_count %} {% endif %} {% endwith %} {% with tab_name='console-server-port-templates' consoleserverport_count=object.consoleserverporttemplates.count %} {% if active_tab == tab_name or consoleserverport_count %} {% endif %} {% endwith %} {% with tab_name='power-port-templates' powerport_count=object.powerporttemplates.count %} {% if active_tab == tab_name or powerport_count %} {% endif %} {% endwith %} {% with tab_name='power-outlet-templates' poweroutlet_count=object.poweroutlettemplates.count %} {% if active_tab == tab_name or poweroutlet_count %} {% endif %} {% endwith %} {% with tab_name='inventory-item-templates' inventoryitem_count=object.inventoryitemtemplates.count %} {% if active_tab == tab_name or inventoryitem_count %} {% endif %} {% endwith %} {% endblock %}