From a16098d5487a012340817a919150030ce5c2107b Mon Sep 17 00:00:00 2001 From: checktheroads Date: Thu, 15 Jul 2021 00:31:12 -0700 Subject: [PATCH] #6372: Fix additional bulk action button layouts --- .../templates/dcim/device/consoleports.html | 39 +++++++++--------- .../dcim/device/consoleserverports.html | 39 +++++++++--------- netbox/templates/dcim/device/devicebays.html | 33 +++++++-------- netbox/templates/dcim/device/frontports.html | 39 +++++++++--------- netbox/templates/dcim/device/inventory.html | 32 ++++++++------- .../templates/dcim/device/poweroutlets.html | 39 +++++++++--------- netbox/templates/dcim/device/powerports.html | 41 ++++++++++--------- netbox/templates/dcim/device/rearports.html | 39 +++++++++--------- 8 files changed, 155 insertions(+), 146 deletions(-) diff --git a/netbox/templates/dcim/device/consoleports.html b/netbox/templates/dcim/device/consoleports.html index 7422c878a..4a7bab4d4 100644 --- a/netbox/templates/dcim/device/consoleports.html +++ b/netbox/templates/dcim/device/consoleports.html @@ -8,31 +8,32 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DeviceConsolePortTable_config" %} {% render_table consoleport_table 'inc/table.html' %} -
- {% if perms.dcim.change_consoleport %} - - - - {% endif %} - {% if perms.dcim.delete_consoleport %} - - {% endif %} +
+
+ {% if perms.dcim.change_consoleport %} + + + + {% endif %} + {% if perms.dcim.delete_consoleport %} + + {% endif %} +
{% if perms.dcim.add_consoleport %} -
+ {% endif %} -
{% include 'inc/paginator.html' with paginator=consoleport_table.paginator page=consoleport_table.page %} diff --git a/netbox/templates/dcim/device/consoleserverports.html b/netbox/templates/dcim/device/consoleserverports.html index 2e690e978..4e97039f3 100644 --- a/netbox/templates/dcim/device/consoleserverports.html +++ b/netbox/templates/dcim/device/consoleserverports.html @@ -8,31 +8,32 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DeviceConsoleServerPortTable_config" %} {% render_table consoleserverport_table 'inc/table.html' %} -
- {% if perms.dcim.change_consoleserverport %} - - - - {% endif %} - {% if perms.dcim.delete_consoleserverport %} - - {% endif %} +
+
+ {% if perms.dcim.change_consoleserverport %} + + + + {% endif %} + {% if perms.dcim.delete_consoleserverport %} + + {% endif %} +
{% if perms.dcim.add_consoleserverport %} - {% include 'inc/paginator.html' with paginator=consoleserverport_table.paginator page=consoleserverport_table.page %} diff --git a/netbox/templates/dcim/device/devicebays.html b/netbox/templates/dcim/device/devicebays.html index 1a06cb830..31ea9b249 100644 --- a/netbox/templates/dcim/device/devicebays.html +++ b/netbox/templates/dcim/device/devicebays.html @@ -8,28 +8,29 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DeviceDeviceBayTable_config" %} {% render_table devicebay_table 'inc/table.html' %} -
- {% if perms.dcim.change_devicebay %} - - - {% endif %} - {% if perms.dcim.delete_devicebay %} - - {% endif %} +
+
+ {% if perms.dcim.change_devicebay %} + + + {% endif %} + {% if perms.dcim.delete_devicebay %} + + {% endif %} +
{% if perms.dcim.add_devicebay %} -
+ {% endif %} -
{% include 'inc/paginator.html' with paginator=devicebay_table.paginator page=devicebay_table.page %} diff --git a/netbox/templates/dcim/device/frontports.html b/netbox/templates/dcim/device/frontports.html index cfbe03863..4d15dde1b 100644 --- a/netbox/templates/dcim/device/frontports.html +++ b/netbox/templates/dcim/device/frontports.html @@ -8,31 +8,32 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DeviceFrontPortTable_config" %} {% render_table frontport_table 'inc/table.html' %} -
- {% if perms.dcim.change_frontport %} - - - - {% endif %} - {% if perms.dcim.delete_frontport %} - - {% endif %} +
+
+ {% if perms.dcim.change_frontport %} + + + + {% endif %} + {% if perms.dcim.delete_frontport %} + + {% endif %} +
{% if perms.dcim.add_frontport %} -
+ {% endif %} -
{% include 'inc/paginator.html' with paginator=frontport_table.paginator page=frontport_table.page %} diff --git a/netbox/templates/dcim/device/inventory.html b/netbox/templates/dcim/device/inventory.html index fff2875d5..6c9fdb17b 100644 --- a/netbox/templates/dcim/device/inventory.html +++ b/netbox/templates/dcim/device/inventory.html @@ -8,22 +8,24 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DeviceInventoryItemTable_config" %} {% render_table inventoryitem_table 'inc/table.html' %} -
- {% if perms.dcim.change_inventoryitem %} - - - {% endif %} - {% if perms.dcim.delete_inventoryitem %} - - {% endif %} +
+
+ {% if perms.dcim.change_inventoryitem %} + + + {% endif %} + {% if perms.dcim.delete_inventoryitem %} + + {% endif %} +
{% if perms.dcim.add_inventoryitem %} -
+
Add Inventory Item diff --git a/netbox/templates/dcim/device/poweroutlets.html b/netbox/templates/dcim/device/poweroutlets.html index b86b44f10..f9937bf27 100644 --- a/netbox/templates/dcim/device/poweroutlets.html +++ b/netbox/templates/dcim/device/poweroutlets.html @@ -8,31 +8,32 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DevicePowerOutletTable_config" %} {% render_table poweroutlet_table 'inc/table.html' %} -
- {% if perms.dcim.change_powerport %} - - - - {% endif %} - {% if perms.dcim.delete_poweroutlet %} - - {% endif %} +
+
+ {% if perms.dcim.change_powerport %} + + + + {% endif %} + {% if perms.dcim.delete_poweroutlet %} + + {% endif %} +
{% if perms.dcim.add_poweroutlet %} -
+ {% endif %} -
{% include 'inc/paginator.html' with paginator=poweroutlet_table.paginator page=poweroutlet_table.page %} diff --git a/netbox/templates/dcim/device/powerports.html b/netbox/templates/dcim/device/powerports.html index 7c0dae0fe..7d219979c 100644 --- a/netbox/templates/dcim/device/powerports.html +++ b/netbox/templates/dcim/device/powerports.html @@ -8,31 +8,32 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DevicePowerPortTable_config" %} {% render_table powerport_table 'inc/table.html' %} -
- {% if perms.dcim.change_powerport %} - - - - {% endif %} - {% if perms.dcim.delete_powerport %} - - {% endif %} +
+
+ {% if perms.dcim.change_powerport %} + + + + {% endif %} + {% if perms.dcim.delete_powerport %} + + {% endif %} +
{% if perms.dcim.add_powerport %} - {% include 'inc/paginator.html' with paginator=powerport_table.paginator page=powerport_table.page %} diff --git a/netbox/templates/dcim/device/rearports.html b/netbox/templates/dcim/device/rearports.html index f76f7e66b..f0ec37b80 100644 --- a/netbox/templates/dcim/device/rearports.html +++ b/netbox/templates/dcim/device/rearports.html @@ -8,31 +8,32 @@ {% csrf_token %} {% include 'inc/table_controls.html' with table_modal="DeviceRearPortTable_config" %} {% render_table rearport_table 'inc/table.html' %} -
- {% if perms.dcim.change_rearport %} - - - - {% endif %} - {% if perms.dcim.delete_rearport %} - - {% endif %} +
+
+ {% if perms.dcim.change_rearport %} + + + + {% endif %} + {% if perms.dcim.delete_rearport %} + + {% endif %} +
{% if perms.dcim.add_rearport %} -
+ {% endif %} -
{% include 'inc/paginator.html' with paginator=rearport_table.paginator page=rearport_table.page %}