2026-11-10 20:59:30 -05:00
{% extends "base.html" %}
{% block title %}Rack{% endblock %}
{% block content %}
< div class = "lt-page-header" >
< div >
< h1 class = "lt-page-title" > Rack</ h1 >
< p class = "g-page-sub" > The rack front, drawn from the rack units on the cutsheet with live port state. Hover a port to light up every port on the same cable run; click it to open the port or the cable.</ p >
</ div >
< div class = "cs-actions no-print" >
2026-11-10 21:44:59 -05:00
< button type = "button" class = "lt-btn lt-btn-secondary lt-btn-sm" data-export = "svg" > Download SVG</ button >
< button type = "button" class = "lt-btn lt-btn-secondary lt-btn-sm" data-export = "png" > Download PNG</ button >
{% if can_edit %}
2026-11-10 20:59:30 -05:00
< a class = "lt-btn lt-btn-secondary lt-btn-sm" href = "/cutsheet#cs-items-section" > Edit positions</ a >
2026-11-10 21:44:59 -05:00
{% endif %}
2026-11-10 20:59:30 -05:00
</ div >
</ div >
2026-11-10 21:44:59 -05:00
< div class = "rack-tabs" id = "rack-tabs" role = "tablist" aria-label = "Racks" hidden ></ div >
2026-11-10 20:59:30 -05:00
< div class = "rack-warnings" id = "rack-warnings" role = "alert" hidden ></ div >
< section class = "g-section" >
< div class = "g-section-header" >
2026-11-10 21:44:59 -05:00
< h2 class = "g-section-title" id = "rack-title" > Front</ h2 >
2026-11-10 20:59:30 -05:00
< span class = "g-section-badge" id = "rack-count" > 0</ span >
</ div >
< p class = "rack-readout" id = "rack-readout" aria-live = "polite" ></ p >
< div class = "rack-legend" aria-hidden = "true" >
< span >< i class = "rack-key rack-key-ok" ></ i > matches cutsheet</ span >
< span >< i class = "rack-key rack-key-bad" ></ i > mismatch</ span >
< span >< i class = "rack-key rack-key-doc" ></ i > documented, unconfirmed</ span >
2026-11-10 21:44:59 -05:00
< label class = "rack-toggle" >< input type = "checkbox" id = "rack-show-empty" > Show empty units</ label >
2026-11-10 20:59:30 -05:00
</ div >
< div class = "rack" id = "rack" >< div class = "link-loading" > Loading rack</ div ></ div >
< p class = "cs-hint rack-unplaced" id = "rack-unplaced" ></ p >
</ section >
{% endblock %}
{% block scripts %}
< script src = "{{ url_for('static', filename='faceplates.js') }}" ></ script >
< script src = "{{ url_for('static', filename='rack.js') }}" ></ script >
{% endblock %}