From 780ce77aedb4e15cba1f8d27f5bd61a22ecac178 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 30 Jan 2024 15:21:44 -0500 Subject: [PATCH] Closes #12776: Utilize the htmx_table tag for all embedded object tables --- netbox/templates/circuits/provider.html | 11 +++------- .../templates/circuits/provideraccount.html | 5 +---- .../templates/circuits/providernetwork.html | 5 +---- netbox/templates/core/datasource.html | 5 +---- netbox/templates/dcim/device.html | 10 ++-------- netbox/templates/dcim/interface.html | 5 +---- netbox/templates/dcim/location.html | 10 ++-------- netbox/templates/dcim/powerpanel.html | 5 +---- netbox/templates/dcim/region.html | 5 +---- netbox/templates/dcim/site.html | 10 ++-------- netbox/templates/dcim/sitegroup.html | 5 +---- .../templates/dcim/virtualdevicecontext.html | 5 +---- netbox/templates/ipam/fhrpgroup.html | 5 +---- netbox/templates/ipam/ipaddress.html | 5 +---- netbox/templates/ipam/routetarget.html | 20 ++++--------------- netbox/templates/ipam/vlan.html | 5 +---- netbox/templates/tenancy/contact.html | 5 +---- netbox/templates/tenancy/contactgroup.html | 5 +---- netbox/templates/tenancy/tenantgroup.html | 5 +---- .../virtualization/virtualmachine.html | 10 ++-------- .../templates/virtualization/vminterface.html | 5 +---- netbox/templates/vpn/ikepolicy.html | 5 +---- netbox/templates/vpn/ipsecpolicy.html | 5 +---- netbox/templates/vpn/l2vpn.html | 5 +---- netbox/templates/vpn/tunnel.html | 5 +---- netbox/templates/vpn/tunneltermination.html | 5 +---- .../templates/wireless/wirelesslangroup.html | 5 +---- 27 files changed, 36 insertions(+), 140 deletions(-) diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html index d72af1ccc..44ec1e4af 100644 --- a/netbox/templates/circuits/provider.html +++ b/netbox/templates/circuits/provider.html @@ -49,18 +49,13 @@
{% trans "Provider Accounts" %}
-
+ {% htmx_table 'circuits:provideraccount_list' provider_id=object.pk %}
+
{% trans "Circuits" %}
-
+ {% htmx_table 'circuits:circuit_list' provider_id=object.pk %}
{% plugin_full_width_page object %}
diff --git a/netbox/templates/circuits/provideraccount.html b/netbox/templates/circuits/provideraccount.html index caebd9975..9042bd98a 100644 --- a/netbox/templates/circuits/provideraccount.html +++ b/netbox/templates/circuits/provideraccount.html @@ -42,10 +42,7 @@
{% trans "Circuits" %}
-
+ {% htmx_table 'circuits:circuit_list' provider_account_id=object.pk %}
{% plugin_full_width_page object %}
diff --git a/netbox/templates/circuits/providernetwork.html b/netbox/templates/circuits/providernetwork.html index 6c45b81d8..f074db590 100644 --- a/netbox/templates/circuits/providernetwork.html +++ b/netbox/templates/circuits/providernetwork.html @@ -48,10 +48,7 @@
{% trans "Circuits" %}
-
+ {% htmx_table 'circuits:circuit_list' provider_network_id=object.pk %}
{% plugin_full_width_page object %}
diff --git a/netbox/templates/core/datasource.html b/netbox/templates/core/datasource.html index 665ea3092..3b5f86490 100644 --- a/netbox/templates/core/datasource.html +++ b/netbox/templates/core/datasource.html @@ -112,10 +112,7 @@
{% trans "Files" %}
-
+ {% htmx_table 'core:datafile_list' source_id=object.pk %}
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 0725be056..267da140b 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -154,10 +154,7 @@ {% include 'inc/panels/comments.html' %}
{% trans "Virtual Device Contexts" %}
-
+ {% htmx_table 'dcim:virtualdevicecontext_list' device_id=object.pk %} {% if perms.dcim.add_virtualdevicecontext %}