mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix up device component tab navigation & return URLs
This commit is contained in:
@@ -258,7 +258,8 @@ class DeviceConsolePortTable(ConsolePortTable):
|
||||
actions = ButtonsColumn(
|
||||
model=ConsolePort,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=CONSOLEPORT_BUTTONS
|
||||
prepend_template=CONSOLEPORT_BUTTONS,
|
||||
return_url_extra='%23tab_consoleports'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -290,7 +291,8 @@ class DeviceConsoleServerPortTable(ConsoleServerPortTable):
|
||||
actions = ButtonsColumn(
|
||||
model=ConsoleServerPort,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=CONSOLESERVERPORT_BUTTONS
|
||||
prepend_template=CONSOLESERVERPORT_BUTTONS,
|
||||
return_url_extra='%23tab_consoleserverports'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -325,7 +327,8 @@ class DevicePowerPortTable(PowerPortTable):
|
||||
actions = ButtonsColumn(
|
||||
model=PowerPort,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=POWERPORT_BUTTONS
|
||||
prepend_template=POWERPORT_BUTTONS,
|
||||
return_url_extra='%23tab_powerports'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -367,7 +370,8 @@ class DevicePowerOutletTable(PowerOutletTable):
|
||||
actions = ButtonsColumn(
|
||||
model=PowerOutlet,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=POWEROUTLET_BUTTONS
|
||||
prepend_template=POWEROUTLET_BUTTONS,
|
||||
return_url_extra='%23tab_poweroutlets'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -426,7 +430,8 @@ class DeviceInterfaceTable(InterfaceTable):
|
||||
actions = ButtonsColumn(
|
||||
model=Interface,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=INTERFACE_BUTTONS
|
||||
prepend_template=INTERFACE_BUTTONS,
|
||||
return_url_extra='%23tab_interfaces'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -472,7 +477,8 @@ class DeviceFrontPortTable(FrontPortTable):
|
||||
actions = ButtonsColumn(
|
||||
model=FrontPort,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=FRONTPORT_BUTTONS
|
||||
prepend_template=FRONTPORT_BUTTONS,
|
||||
return_url_extra='%23tab_frontports'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -509,7 +515,8 @@ class DeviceRearPortTable(RearPortTable):
|
||||
actions = ButtonsColumn(
|
||||
model=RearPort,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=REARPORT_BUTTONS
|
||||
prepend_template=REARPORT_BUTTONS,
|
||||
return_url_extra='%23tab_rearports'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -550,7 +557,8 @@ class DeviceDeviceBayTable(DeviceBayTable):
|
||||
actions = ButtonsColumn(
|
||||
model=DeviceBay,
|
||||
buttons=('edit', 'delete'),
|
||||
prepend_template=DEVICEBAY_BUTTONS
|
||||
prepend_template=DEVICEBAY_BUTTONS,
|
||||
return_url_extra='%23tab_devicebays'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
@@ -589,7 +597,8 @@ class DeviceInventoryItemTable(InventoryItemTable):
|
||||
)
|
||||
actions = ButtonsColumn(
|
||||
model=InventoryItem,
|
||||
buttons=('edit', 'delete')
|
||||
buttons=('edit', 'delete'),
|
||||
return_url_extra='%23tab_inventoryitems'
|
||||
)
|
||||
|
||||
class Meta(DeviceComponentTable.Meta):
|
||||
|
Reference in New Issue
Block a user