{{define "title"}}Rooms ยท Admin{{end}} {{define "content"}}{{$L := localizer $}} {{template "page-header" dict "Title" "Rooms" "Sub" "Only admins see this page."}}
{{template "field-text" dict "Name" "Name" "Label" "New room" "Value" (index .Echo "Name") "Error" (index .Errors "Name") "Required" true}} {{template "form-foot" dict "L" $L "Submit" "Add room"}}
{{if .Rooms}}
{{range .Rooms}}{{template "list-row-action" dict "L" $L "Href" (path $ (printf "/admin/rooms/%d" .ID)) "Main" .Name}} {{end}}
{{end}} {{end}}