{% extends 'netbox_rack_design/design_editor.html' %} {% load i18n %} {% load rack_design %} {# ------------------------------------------------------------------------- #} {# The CHASSIS LAYER (spec §10.3). #} {# #} {# Deliberately EXTENDS the rack editor rather than forking it: the drawer, #} {# the legend/role/tenant toolbar and Save are identical, because a chassis #} {# IS a rack here -- bays in place of units. Only three things differ, and #} {# each is an override block on the parent template: #} {# #} {# rd_canvas chassis columns instead of rack blocks #} {# rd_scope_panel a Chassis panel instead of the Racks panel #} {# rd_layer_switch a way back to the rack view #} {# #} {# The palette itself is filtered to child device types by editor.js, which #} {# reads data-rd-chassis-layer on the root -- so a non-child type can never be #} {# offered as a bay occupant in the first place. #} {# ------------------------------------------------------------------------- #} {# The drawer's third section holds chassis here, not racks. #} {% block rd_scope_section_label %}{% trans "Chassis" %}{% endblock %} {% block rd_layer_switch %} {# Not labelled "Racks": the drawer already has a Racks/Chassis section toggle #} {# and two identical labels in one button row is unreadable. #} {% trans "Rack view" %} {% endblock rd_layer_switch %} {% block rd_scope_panel %}
{% trans "No chassis in this design's scope — add a parent device in the rack view first." %}