From c50dc1eb353cd79da88a4379b96a39529835656e Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 13 Dec 2021 15:36:51 -0500 Subject: [PATCH] Standardize usage of table template --- netbox/templates/circuits/circuittype.html | 5 +- netbox/templates/circuits/provider.html | 5 +- .../templates/circuits/providernetwork.html | 5 +- .../templates/dcim/device/consoleports.html | 4 +- .../dcim/device/consoleserverports.html | 4 +- netbox/templates/dcim/device/devicebays.html | 4 +- netbox/templates/dcim/device/frontports.html | 4 +- netbox/templates/dcim/device/interfaces.html | 4 +- netbox/templates/dcim/device/inventory.html | 4 +- .../templates/dcim/device/poweroutlets.html | 4 +- netbox/templates/dcim/device/powerports.html | 4 +- netbox/templates/dcim/device/rearports.html | 4 +- netbox/templates/dcim/devicerole.html | 5 +- netbox/templates/dcim/interface.html | 2 +- netbox/templates/dcim/location.html | 5 +- netbox/templates/dcim/manufacturer.html | 5 +- netbox/templates/dcim/platform.html | 5 +- netbox/templates/dcim/powerpanel.html | 2 +- netbox/templates/dcim/rackrole.html | 5 +- netbox/templates/dcim/region.html | 9 ++- netbox/templates/dcim/sitegroup.html | 9 ++- netbox/templates/extras/object_changelog.html | 4 +- netbox/templates/extras/object_journal.html | 4 +- .../generic/object_bulk_add_component.html | 5 +- .../templates/generic/object_bulk_delete.html | 5 +- .../templates/generic/object_bulk_edit.html | 5 +- .../templates/generic/object_bulk_remove.html | 5 +- netbox/templates/inc/panel_table.html | 8 +- netbox/templates/inc/table.html | 76 +++++++++---------- netbox/templates/ipam/asn.html | 5 +- netbox/templates/ipam/fhrpgroup.html | 4 +- netbox/templates/ipam/ipaddress.html | 4 +- netbox/templates/ipam/rir.html | 5 +- netbox/templates/ipam/role.html | 5 +- netbox/templates/ipam/vlangroup.html | 2 +- netbox/templates/tenancy/contact.html | 2 +- netbox/templates/tenancy/contactgroup.html | 9 ++- netbox/templates/tenancy/contactrole.html | 5 +- netbox/templates/tenancy/tenantgroup.html | 5 +- .../virtualization/clustergroup.html | 5 +- .../templates/virtualization/clustertype.html | 5 +- .../virtualmachine/interfaces.html | 4 +- .../templates/virtualization/vminterface.html | 2 +- netbox/templates/wireless/wirelesslan.html | 5 +- .../templates/wireless/wirelesslangroup.html | 5 +- 45 files changed, 167 insertions(+), 115 deletions(-) diff --git a/netbox/templates/circuits/circuittype.html b/netbox/templates/circuits/circuittype.html index 57737a6d1..67b6d2d86 100644 --- a/netbox/templates/circuits/circuittype.html +++ b/netbox/templates/circuits/circuittype.html @@ -1,6 +1,7 @@ {% extends 'generic/object.html' %} {% load helpers %} {% load plugins %} +{% load render_table from django_tables2 %} {% block content %}
@@ -42,8 +43,8 @@
Circuits
-
- {% include 'inc/table.html' with table=circuits_table %} +
+ {% render_table circuits_table 'inc/table.html' %}
{% if perms.circuits.add_circuit %}