New BrandingProfile model (migration 0001) with logo upload, color pickers, font, Word template upload, table style and extra CSS, plus list/edit/delete views, an HTML preview and a menu entry with add button. Access is controlled via the model's Django permissions. Profiles from the database are offered first in the export form (the default profile preselected); profiles from PLUGINS_CONFIG still work. Bump version to 0.2.0 - requires "manage.py migrate". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
739 B
Python
23 lines
739 B
Python
from netbox.plugins import PluginMenuButton, PluginMenuItem
|
|
|
|
menu_items = (
|
|
PluginMenuItem(
|
|
link="plugins:netbox_customer_export:select",
|
|
link_text="Kundendokumentation",
|
|
permissions=["dcim.view_site"],
|
|
),
|
|
PluginMenuItem(
|
|
link="plugins:netbox_customer_export:branding_list",
|
|
link_text="Branding-Profile",
|
|
permissions=["netbox_customer_export.view_brandingprofile"],
|
|
buttons=(
|
|
PluginMenuButton(
|
|
link="plugins:netbox_customer_export:branding_add",
|
|
title="Hinzufügen",
|
|
icon_class="mdi mdi-plus-thick",
|
|
permissions=["netbox_customer_export.add_brandingprofile"],
|
|
),
|
|
),
|
|
),
|
|
)
|