mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #11968: Add navigation menu buttons to create device & VM components
This commit is contained in:
@@ -78,16 +78,16 @@ DEVICES_MENU = Menu(
|
||||
MenuGroup(
|
||||
label=_('Device Components'),
|
||||
items=(
|
||||
get_model_item('dcim', 'interface', _('Interfaces'), actions=['import']),
|
||||
get_model_item('dcim', 'frontport', _('Front Ports'), actions=['import']),
|
||||
get_model_item('dcim', 'rearport', _('Rear Ports'), actions=['import']),
|
||||
get_model_item('dcim', 'consoleport', _('Console Ports'), actions=['import']),
|
||||
get_model_item('dcim', 'consoleserverport', _('Console Server Ports'), actions=['import']),
|
||||
get_model_item('dcim', 'powerport', _('Power Ports'), actions=['import']),
|
||||
get_model_item('dcim', 'poweroutlet', _('Power Outlets'), actions=['import']),
|
||||
get_model_item('dcim', 'modulebay', _('Module Bays'), actions=['import']),
|
||||
get_model_item('dcim', 'devicebay', _('Device Bays'), actions=['import']),
|
||||
get_model_item('dcim', 'inventoryitem', _('Inventory Items'), actions=['import']),
|
||||
get_model_item('dcim', 'interface', _('Interfaces')),
|
||||
get_model_item('dcim', 'frontport', _('Front Ports')),
|
||||
get_model_item('dcim', 'rearport', _('Rear Ports')),
|
||||
get_model_item('dcim', 'consoleport', _('Console Ports')),
|
||||
get_model_item('dcim', 'consoleserverport', _('Console Server Ports')),
|
||||
get_model_item('dcim', 'powerport', _('Power Ports')),
|
||||
get_model_item('dcim', 'poweroutlet', _('Power Outlets')),
|
||||
get_model_item('dcim', 'modulebay', _('Module Bays')),
|
||||
get_model_item('dcim', 'devicebay', _('Device Bays')),
|
||||
get_model_item('dcim', 'inventoryitem', _('Inventory Items')),
|
||||
get_model_item('dcim', 'inventoryitemrole', _('Inventory Item Roles')),
|
||||
),
|
||||
),
|
||||
@@ -216,7 +216,7 @@ VIRTUALIZATION_MENU = Menu(
|
||||
label=_('Virtual Machines'),
|
||||
items=(
|
||||
get_model_item('virtualization', 'virtualmachine', _('Virtual Machines')),
|
||||
get_model_item('virtualization', 'vminterface', _('Interfaces'), actions=['import']),
|
||||
get_model_item('virtualization', 'vminterface', _('Interfaces')),
|
||||
),
|
||||
),
|
||||
MenuGroup(
|
||||
|
Reference in New Issue
Block a user