diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index c81ea51cb..ceddc81e8 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -66,7 +66,7 @@
  • Device Bays
  • {% endif %} {% if perms.dcim.add_inventoryitem %} -
  • Inventory Items
  • +
  • Inventory Items
  • {% endif %} @@ -731,6 +731,7 @@ {% endif %} +
    @@ -842,7 +843,7 @@ {% endif %} {% if perms.dcim.add_inventoryitem %}
    - + Add Inventory Item
    @@ -873,7 +874,7 @@ var hash = document.location.hash; var prefix = "tab_"; if (hash) { - $('.nav-tabs a[href="'+hash.replace(prefix,"")+'"]').tab('show'); + $('.nav-pills a[href="'+hash.replace(prefix,"")+'"]').tab('show'); } $('.nav-tabs a').on('shown.bs.tab', function (e) { window.location.hash = e.target.hash.replace("#", "#" + prefix); diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html index 876b9b9d7..d718163b8 100644 --- a/netbox/templates/dcim/devicetype.html +++ b/netbox/templates/dcim/devicetype.html @@ -206,28 +206,28 @@
    - {% include 'dcim/inc/devicetype_component_table.html' with table=interface_table title='Interfaces' %} + {% include 'dcim/inc/devicetype_component_table.html' with table=interface_table title='Interfaces' tab='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=front_port_table title='Front Ports' tab='frontports' %}
    - {% include 'dcim/inc/devicetype_component_table.html' with table=rear_port_table title='Rear Ports' %} + {% include 'dcim/inc/devicetype_component_table.html' with table=rear_port_table title='Rear Ports' tab='rearports' %}
    - {% include 'dcim/inc/devicetype_component_table.html' with table=consoleport_table title='Console Ports' %} + {% include 'dcim/inc/devicetype_component_table.html' with table=consoleport_table title='Console Ports' tab='consoleports' %}
    - {% include 'dcim/inc/devicetype_component_table.html' with table=consoleserverport_table title='Console Server Ports' %} + {% include 'dcim/inc/devicetype_component_table.html' with table=consoleserverport_table title='Console Server Ports' tab='consoleserverports' %}
    - {% include 'dcim/inc/devicetype_component_table.html' with table=powerport_table title='Power Ports' %} + {% include 'dcim/inc/devicetype_component_table.html' with table=powerport_table title='Power Ports' tab='powerports' %}
    - {% include 'dcim/inc/devicetype_component_table.html' with table=poweroutlet_table title='Power Outlets' %} + {% include 'dcim/inc/devicetype_component_table.html' with table=poweroutlet_table title='Power Outlets' tab='poweroutlets' %}
    - {% include 'dcim/inc/devicetype_component_table.html' with table=devicebay_table title='Device Bays' %} + {% include 'dcim/inc/devicetype_component_table.html' with table=devicebay_table title='Device Bays' tab='devicebays' %}
    diff --git a/netbox/templates/dcim/inc/devicetype_component_table.html b/netbox/templates/dcim/inc/devicetype_component_table.html index 135facc73..8794cbfae 100644 --- a/netbox/templates/dcim/inc/devicetype_component_table.html +++ b/netbox/templates/dcim/inc/devicetype_component_table.html @@ -20,7 +20,7 @@ {% endif %}
    - + Add {{ title }}