Interfaces with a WirelessLink are now traced like cables; wireless-only connections are drawn blue and dotted with a "Funk" label, also in the location overviews (counted as "1× Funk"). The plugin gets its own "Kunden-Export" menu with icon in the main navigation instead of the Plugins dropdown. Co-Authored-By: Claude Opus 5.5 <[email protected]>
47 lines
1.5 KiB
Python
47 lines
1.5 KiB
Python
from django.utils.translation import gettext_lazy as _
|
|
from netbox.plugins import PluginMenu, PluginMenuButton, PluginMenuItem
|
|
|
|
_items = (
|
|
PluginMenuItem(
|
|
link="plugins:netbox_customer_export:select",
|
|
link_text=_("Customer Documentation"),
|
|
permissions=["dcim.view_site"],
|
|
),
|
|
PluginMenuItem(
|
|
link="plugins:netbox_customer_export:symbol_list",
|
|
link_text=_("Topology Symbols"),
|
|
permissions=["netbox_customer_export.view_topologysymbol"],
|
|
buttons=(
|
|
PluginMenuButton(
|
|
link="plugins:netbox_customer_export:symbol_add",
|
|
title=_("Add"),
|
|
icon_class="mdi mdi-plus-thick",
|
|
permissions=["netbox_customer_export.add_topologysymbol"],
|
|
),
|
|
),
|
|
),
|
|
PluginMenuItem(
|
|
link="plugins:netbox_customer_export:branding_list",
|
|
link_text=_("Branding Profiles"),
|
|
permissions=["netbox_customer_export.view_brandingprofile"],
|
|
buttons=(
|
|
PluginMenuButton(
|
|
link="plugins:netbox_customer_export:branding_add",
|
|
title=_("Add"),
|
|
icon_class="mdi mdi-plus-thick",
|
|
permissions=["netbox_customer_export.add_brandingprofile"],
|
|
),
|
|
),
|
|
),
|
|
)
|
|
|
|
# Eigener Eintrag im obersten Navigationsmenü statt unter „Plugins“
|
|
menu = PluginMenu(
|
|
label=_("Customer Export"),
|
|
groups=(
|
|
(_("Export"), _items[:1]),
|
|
(_("Settings"), _items[1:]),
|
|
),
|
|
icon_class="mdi mdi-file-document-multiple-outline",
|
|
)
|