From 6a696d9ed70b5f2981f6dfa8f655ff2018be3c56 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 13 Mar 2023 15:15:38 -0400 Subject: [PATCH] Closes #11968: Add navigation menu buttons to create device & VM components --- docs/release-notes/version-3.5.md | 2 ++ netbox/netbox/navigation/menu.py | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/release-notes/version-3.5.md b/docs/release-notes/version-3.5.md index ddd9a4154..d1d6c24a5 100644 --- a/docs/release-notes/version-3.5.md +++ b/docs/release-notes/version-3.5.md @@ -31,6 +31,7 @@ A new ASN range model has been introduced to facilitate the provisioning of new * [#8958](https://github.com/netbox-community/netbox/issues/8958) - Changes in background job status can trigger webhooks * [#9073](https://github.com/netbox-community/netbox/issues/9073) - Enable syncing config context data from remote sources * [#9653](https://github.com/netbox-community/netbox/issues/9653) - Enable setting a default platform for device types +* [#10054](https://github.com/netbox-community/netbox/issues/10054) - Introduce advanced object selector for UI forms * [#10374](https://github.com/netbox-community/netbox/issues/10374) - Require unique tenant names & slugs per group (not globally) * [#10729](https://github.com/netbox-community/netbox/issues/10729) - Add date & time custom field type * [#11254](https://github.com/netbox-community/netbox/issues/11254) - Introduce the `X-Request-ID` HTTP header to annotate the unique ID of each request for change logging @@ -39,6 +40,7 @@ A new ASN range model has been introduced to facilitate the provisioning of new * [#11584](https://github.com/netbox-community/netbox/issues/11584) - Add a list view for contact assignments * [#11625](https://github.com/netbox-community/netbox/issues/11625) - Add HTMX support to ObjectEditView * [#11693](https://github.com/netbox-community/netbox/issues/11693) - Enable syncing export template content from remote sources +* [#11968](https://github.com/netbox-community/netbox/issues/11968) - Add navigation menu buttons to create device & VM components ### Other Changes diff --git a/netbox/netbox/navigation/menu.py b/netbox/netbox/navigation/menu.py index 35be8cf55..f5d15b3d8 100644 --- a/netbox/netbox/navigation/menu.py +++ b/netbox/netbox/navigation/menu.py @@ -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(