Initial NetBox Floor Planner plugin

Drag & drop SVG floor plan designer for NetBox 4.7.2+ with rack/device
placement, smart snapping, undo/redo, view mode with status colouring,
SVG/PNG export, REST layout API and English/German translations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-04 12:18:13 +01:00
commit c4dc5d53ce
31 files changed
+3041

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
from django.utils.translation import gettext_lazy as _
from utilities.choices import ChoiceSet
class ItemTypeChoices(ChoiceSet):
TYPE_RACK = 'rack'
TYPE_DEVICE = 'device'
TYPE_WALL = 'wall'
TYPE_DOOR = 'door'
TYPE_WINDOW = 'window'
TYPE_AREA = 'area'
TYPE_COLUMN = 'column'
TYPE_COOLING = 'cooling'
TYPE_POWER = 'power'
TYPE_LABEL = 'label'
CHOICES = [
(TYPE_RACK, _('Rack'), 'blue'),
(TYPE_DEVICE, _('Device'), 'purple'),
(TYPE_WALL, _('Wall'), 'gray'),
(TYPE_DOOR, _('Door'), 'orange'),
(TYPE_WINDOW, _('Window'), 'cyan'),
(TYPE_AREA, _('Area'), 'green'),
(TYPE_COLUMN, _('Column'), 'gray'),
(TYPE_COOLING, _('Cooling unit'), 'teal'),
(TYPE_POWER, _('Power / UPS'), 'yellow'),
(TYPE_LABEL, _('Label'), 'dark'),
]