mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
33 lines
876 B
Python
33 lines
876 B
Python
from django.utils.translation import gettext as _
|
|
from extras.plugins import PluginMenu, PluginMenuButton, PluginMenuItem
|
|
|
|
|
|
items = (
|
|
PluginMenuItem(
|
|
link='plugins:dummy_plugin:dummy_models',
|
|
link_text='Item 1',
|
|
buttons=(
|
|
PluginMenuButton(
|
|
link='admin:dummy_plugin_dummymodel_add',
|
|
title='Add a new dummy model',
|
|
icon_class='mdi mdi-plus-thick',
|
|
),
|
|
PluginMenuButton(
|
|
link='admin:dummy_plugin_dummymodel_add',
|
|
title='Add a new dummy model',
|
|
icon_class='mdi mdi-plus-thick',
|
|
),
|
|
)
|
|
),
|
|
PluginMenuItem(
|
|
link='plugins:dummy_plugin:dummy_models',
|
|
link_text='Item 2',
|
|
),
|
|
)
|
|
|
|
menu = PluginMenu(
|
|
label=_('Dummy Plugin'),
|
|
groups=(('Group 1', items),),
|
|
)
|
|
menu_items = items
|