Files
NetBox-FloorPlan2.0/netbox_floorplanner/choices.py
T
MrBlakeandClaude Opus 5.5 c4dc5d53ce 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]>
2026-11-04 12:18:13 +01:00

29 lines
846 B
Python

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'),
]