From 881b994038c650365cdf2c540547633a33bfe02f Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 16 Feb 2024 14:17:17 -0500 Subject: [PATCH] Replace formaction properties with hx-post --- netbox/templates/dcim/component_list.html | 2 +- .../dcim/device/components_base.html | 6 +++-- .../templates/dcim/device/consoleports.html | 3 ++- .../dcim/device/consoleserverports.html | 3 ++- netbox/templates/dcim/device/frontports.html | 3 ++- netbox/templates/dcim/device/interfaces.html | 3 ++- .../templates/dcim/device/poweroutlets.html | 3 ++- netbox/templates/dcim/device/powerports.html | 3 ++- netbox/templates/dcim/device/rearports.html | 3 ++- netbox/templates/dcim/device_list.html | 22 +++++++++---------- .../dcim/devicetype/component_templates.html | 6 +++-- .../dcim/moduletype/component_templates.html | 6 ++--- netbox/templates/dcim/powerpanel.html | 6 ++--- .../templates/extras/configcontext_list.html | 2 +- .../templates/extras/configtemplate_list.html | 2 +- .../templates/extras/exporttemplate_list.html | 2 +- netbox/templates/generic/object_children.html | 6 +++-- .../virtualization/cluster/devices.html | 3 ++- .../virtualmachine/interfaces.html | 3 ++- .../virtualmachine/virtual_disks.html | 3 ++- .../virtualization/virtualmachine_list.html | 4 ++-- .../templates/buttons/bulk_delete.html | 2 +- .../templates/buttons/bulk_edit.html | 2 +- 23 files changed, 57 insertions(+), 41 deletions(-) diff --git a/netbox/templates/dcim/component_list.html b/netbox/templates/dcim/component_list.html index 4f9b543f0..089f161e7 100644 --- a/netbox/templates/dcim/component_list.html +++ b/netbox/templates/dcim/component_list.html @@ -10,7 +10,7 @@ {% endif %} {% if 'bulk_rename' in actions %} {% with bulk_rename_view=model|validated_viewname:"bulk_rename" %} - {% endwith %} diff --git a/netbox/templates/dcim/device/components_base.html b/netbox/templates/dcim/device/components_base.html index 40d3f0f80..c6f68439b 100644 --- a/netbox/templates/dcim/device/components_base.html +++ b/netbox/templates/dcim/device/components_base.html @@ -5,7 +5,8 @@ {% with bulk_edit_view=child_model|validated_viewname:"bulk_edit" %} {% if 'bulk_edit' in actions and bulk_edit_view %} @@ -14,7 +15,8 @@ {% with bulk_rename_view=child_model|validated_viewname:"bulk_rename" %} {% if 'bulk_rename' in actions and bulk_rename_view %} diff --git a/netbox/templates/dcim/device/consoleports.html b/netbox/templates/dcim/device/consoleports.html index 0e9fcb7bf..41116fe84 100644 --- a/netbox/templates/dcim/device/consoleports.html +++ b/netbox/templates/dcim/device/consoleports.html @@ -7,7 +7,8 @@ {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} diff --git a/netbox/templates/dcim/device/consoleserverports.html b/netbox/templates/dcim/device/consoleserverports.html index 09598e4f1..0284f950d 100644 --- a/netbox/templates/dcim/device/consoleserverports.html +++ b/netbox/templates/dcim/device/consoleserverports.html @@ -7,7 +7,8 @@ {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} diff --git a/netbox/templates/dcim/device/frontports.html b/netbox/templates/dcim/device/frontports.html index ed7a6a0ba..1132aea5e 100644 --- a/netbox/templates/dcim/device/frontports.html +++ b/netbox/templates/dcim/device/frontports.html @@ -7,7 +7,8 @@ {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} diff --git a/netbox/templates/dcim/device/interfaces.html b/netbox/templates/dcim/device/interfaces.html index 8b668e7eb..5c47d944d 100644 --- a/netbox/templates/dcim/device/interfaces.html +++ b/netbox/templates/dcim/device/interfaces.html @@ -11,7 +11,8 @@ {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} diff --git a/netbox/templates/dcim/device/poweroutlets.html b/netbox/templates/dcim/device/poweroutlets.html index 7f786d13c..5a9758964 100644 --- a/netbox/templates/dcim/device/poweroutlets.html +++ b/netbox/templates/dcim/device/poweroutlets.html @@ -7,7 +7,8 @@ {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} diff --git a/netbox/templates/dcim/device/powerports.html b/netbox/templates/dcim/device/powerports.html index af7c69549..669222b37 100644 --- a/netbox/templates/dcim/device/powerports.html +++ b/netbox/templates/dcim/device/powerports.html @@ -7,7 +7,8 @@ {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} diff --git a/netbox/templates/dcim/device/rearports.html b/netbox/templates/dcim/device/rearports.html index 5db8fb7bc..8cf99ccd0 100644 --- a/netbox/templates/dcim/device/rearports.html +++ b/netbox/templates/dcim/device/rearports.html @@ -7,7 +7,8 @@ {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} diff --git a/netbox/templates/dcim/device_list.html b/netbox/templates/dcim/device_list.html index 6ccb78480..e8bf7b5a0 100644 --- a/netbox/templates/dcim/device_list.html +++ b/netbox/templates/dcim/device_list.html @@ -11,63 +11,63 @@