{{define "content"}}

Wall Sockets

{{if .Error}}
{{.Error}}
{{end}} {{range .Sockets}} {{end}}
NameLocationModelCommentPorts
{{.Name}} {{.Location}} {{if .Model}}{{.Model.Name}}{{end}} {{.Comment}} {{range .Ports}} {{$pid := .ID}}{{$color := "#333"}}{{$bg := ""}} {{range $.Connections}}{{if and .Port1 .Port2}}{{if eq .Port1.ID $pid}}{{$color = .Color}}{{$bg = .Color}}{{else if eq .Port2.ID $pid}}{{$color = .Color}}{{$bg = .Color}}{{end}}{{end}}{{end}} {{.Name}} {{end}}
Add Wall Socket
{{end}}