|
|
@@ -20,11 +20,33 @@ ORGANIZATION_MENU = Menu(
|
|
|
get_model_item('dcim', 'location', _('Locations')),
|
|
|
),
|
|
|
),
|
|
|
+ MenuGroup(
|
|
|
+ label=_('Tenancy'),
|
|
|
+ items=(
|
|
|
+ get_model_item('tenancy', 'tenant', _('Tenants')),
|
|
|
+ get_model_item('tenancy', 'tenantgroup', _('Tenant Groups')),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ MenuGroup(
|
|
|
+ label=_('Contacts'),
|
|
|
+ items=(
|
|
|
+ get_model_item('tenancy', 'contact', _('Contacts')),
|
|
|
+ get_model_item('tenancy', 'contactgroup', _('Contact Groups')),
|
|
|
+ get_model_item('tenancy', 'contactrole', _('Contact Roles')),
|
|
|
+ get_model_item('tenancy', 'contactassignment', _('Contact Assignments'), actions=['import']),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+)
|
|
|
+
|
|
|
+RACKS_MENU = Menu(
|
|
|
+ label=_('Racks'),
|
|
|
+ icon_class='mdi mdi-door-sliding',
|
|
|
+ groups=(
|
|
|
MenuGroup(
|
|
|
label=_('Racks'),
|
|
|
items=(
|
|
|
get_model_item('dcim', 'rack', _('Racks')),
|
|
|
- get_model_item('dcim', 'racktype', _('Rack Types')),
|
|
|
get_model_item('dcim', 'rackrole', _('Rack Roles')),
|
|
|
get_model_item('dcim', 'rackreservation', _('Reservations')),
|
|
|
MenuItem(
|
|
|
@@ -35,19 +57,9 @@ ORGANIZATION_MENU = Menu(
|
|
|
),
|
|
|
),
|
|
|
MenuGroup(
|
|
|
- label=_('Tenancy'),
|
|
|
+ label=_('Rack Types'),
|
|
|
items=(
|
|
|
- get_model_item('tenancy', 'tenant', _('Tenants')),
|
|
|
- get_model_item('tenancy', 'tenantgroup', _('Tenant Groups')),
|
|
|
- ),
|
|
|
- ),
|
|
|
- MenuGroup(
|
|
|
- label=_('Contacts'),
|
|
|
- items=(
|
|
|
- get_model_item('tenancy', 'contact', _('Contacts')),
|
|
|
- get_model_item('tenancy', 'contactgroup', _('Contact Groups')),
|
|
|
- get_model_item('tenancy', 'contactrole', _('Contact Roles')),
|
|
|
- get_model_item('tenancy', 'contactassignment', _('Contact Assignments'), actions=['import']),
|
|
|
+ get_model_item('dcim', 'racktype', _('Rack Types')),
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
@@ -460,6 +472,7 @@ ADMIN_MENU = Menu(
|
|
|
|
|
|
MENUS = [
|
|
|
ORGANIZATION_MENU,
|
|
|
+ RACKS_MENU,
|
|
|
DEVICES_MENU,
|
|
|
CONNECTIONS_MENU,
|
|
|
WIRELESS_MENU,
|