From 187f4fa4aa24e6647f71a369f9c5cb8067098dbc Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 14 Mar 2021 17:26:33 -0700 Subject: [PATCH] fix device & device component templates --- netbox/dcim/tables/template_code.py | 136 +++++++-------- netbox/templates/dcim/device.html | 4 +- netbox/templates/dcim/device/base.html | 162 ++++++------------ .../templates/dcim/device/consoleports.html | 6 +- .../dcim/device/consoleserverports.html | 8 +- netbox/templates/dcim/device/devicebays.html | 8 +- netbox/templates/dcim/device/frontports.html | 6 +- netbox/templates/dcim/device/interfaces.html | 10 +- .../templates/dcim/device/poweroutlets.html | 4 +- netbox/templates/dcim/device/powerports.html | 4 +- netbox/templates/dcim/device/rearports.html | 4 +- .../templates/dcim/device_component_add.html | 40 ++--- .../dcim/inc/device_component_table.html | 10 +- netbox/utilities/tables.py | 2 +- 14 files changed, 175 insertions(+), 229 deletions(-) diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index 5b76b88da..c8da868b9 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -65,7 +65,7 @@ MPTT_LINK = """ POWERFEED_CABLE = """ {{ value }} - + """ @@ -77,7 +77,7 @@ POWERFEED_CABLETERMINATION = """ """ RACKGROUP_ELEVATIONS = """ - + """ @@ -93,24 +93,24 @@ UTILIZATION_GRAPH = """ CONSOLEPORT_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% if perms.dcim.delete_cable %} - + {% endif %} {% elif perms.dcim.add_cable %} - - + + - -