{{define "content"}}

{{.Rack.Name}} ({{.Rack.RackType}} / {{.Rack.Depth}} / {{.Rack.HeightUnits}}U)

{{if .Error}}
{{.Error}}
{{end}} {{if .Rack.Comment}}

{{.Rack.Comment}}

{{end}}
Edit
{{range $i, $fs := .FrontSlots}} {{end}}
UFrontUBack
{{$fs.Unit}} {{if $fs.IsStart}}
{{$fs.Device.Name}} {{if $fs.Device.Model}}{{$fs.Device.Model.Manufacturer}} {{$fs.Device.Model.Name}} ({{$fs.Height}}U){{end}} {{if $fs.Device.UsageDescription}}{{$fs.Device.UsageDescription}}{{end}}
{{end}}
{{(index $.BackSlots $i).Unit}} {{if (index $.BackSlots $i).IsStart}}
{{(index $.BackSlots $i).Device.Name}} {{if (index $.BackSlots $i).Device.Model}}{{(index $.BackSlots $i).Device.Model.Manufacturer}} {{(index $.BackSlots $i).Device.Model.Name}} ({{(index $.BackSlots $i).Height}}U){{end}}
{{end}}

Devices & Ports

{{range .RackedDevices}}

{{.Name}} {{if .Model}}({{.Model.Manufacturer}} {{.Model.Name}}){{end}} — U{{.RackUnitStart}} {{.RackSide}}

{{template "port_list" dict "Device" . "Connections" $.Connections}}
{{end}} {{if .UnrackedDevices}}

Unplaced Devices in Rack

{{range .UnrackedDevices}}

{{.Name}} {{if .Model}}({{.Model.Manufacturer}} {{.Model.Name}}){{end}}

{{template "port_list" dict "Device" . "Connections" $.Connections}}
{{end}} {{end}}
Add Device to Rack
{{end}}