{{if eq .selectionGroupID "1"}}
{{selectZone 1}}
{{range $index, $inputs := getReportSelection 1}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 1)))}}
{{end}}
{{end}}
{{selectZone 2}}
{{range $index, $inputs := getReportSelection 2}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 2)))}}
{{end}}
{{end}}
{{selectZone 3}}
{{range $index, $inputs := getReportSelection 3}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 3)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "2"}}
{{selectZone 4}}
{{range $index, $inputs := getReportSelection 4}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 4)))}}
{{end}}
{{end}}
{{selectZone 5}}
{{range $index, $inputs := getReportSelection 5}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 5)))}}
{{end}}
{{end}}
{{selectZone 6}}
{{range $index, $inputs := getReportSelection 6}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 6)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "3"}}
{{selectZone 7}}
{{range $index, $inputs := getReportSelection 7}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 7)))}}
{{end}}
{{end}}
{{selectZone 8}}
{{range $index, $inputs := getReportSelection 8}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 8)))}}
{{end}}
{{end}}
{{selectZone 9}}
{{range $index, $inputs := getReportSelection 9}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 9)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "4"}}
{{selectZone 10}}
{{range $index, $inputs := getReportSelection 10}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 10)))}}
{{end}}
{{end}}
{{selectZone 11}}
{{range $index, $inputs := getReportSelection 11}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 11)))}}
{{end}}
{{end}}
{{selectZone 12}}
{{range $index, $inputs := getReportSelection 12}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 12)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "5"}}
{{selectZone 13}}
{{range $index, $inputs := getReportSelection 13}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 13)))}}
{{end}}
{{end}}
{{selectZone 14}}
{{range $index, $inputs := getReportSelection 14}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 14)))}}
{{end}}
{{end}}
{{selectZone 15}}
{{range $index, $inputs := getReportSelection 15}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 15)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "6"}}
{{selectZone 16}}
{{range $index, $inputs := getReportSelection 16}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 16)))}}
{{end}}
{{end}}
{{selectZone 17}}
{{range $index, $inputs := getReportSelection 17}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 17)))}}
{{end}}
{{end}}
{{selectZone 18}}
{{range $index, $inputs := getReportSelection 18}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 18)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "7"}}
{{selectZone 19}}
{{range $index, $inputs := getReportSelection 19}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 19)))}}
{{end}}
{{end}}
{{selectZone 20}}
{{range $index, $inputs := getReportSelection 20}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 20)))}}
{{end}}
{{end}}
{{selectZone 21}}
{{range $index, $inputs := getReportSelection 21}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 21)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "8"}}
{{selectZone 22}}
{{range $index, $inputs := getReportSelection 22}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 22)))}}
{{end}}
{{end}}
{{selectZone 23}}
{{range $index, $inputs := getReportSelection 23}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 23)))}}
{{end}}
{{end}}
{{selectZone 24}}
{{range $index, $inputs := getReportSelection 24}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 24)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "9"}}
{{selectZone 25}}
{{range $index, $inputs := getReportSelection 25}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 25)))}}
{{end}}
{{end}}
{{selectZone 26}}
{{range $index, $inputs := getReportSelection 26}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 26)))}}
{{end}}
{{end}}
{{selectZone 27}}
{{range $index, $inputs := getReportSelection 27}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 27)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "10"}}
{{selectZone 28}}
{{range $index, $inputs := getReportSelection 28}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 28)))}}
{{end}}
{{end}}
{{selectZone 29}}
{{range $index, $inputs := getReportSelection 29}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 29)))}}
{{end}}
{{end}}
{{selectZone 30}}
{{range $index, $inputs := getReportSelection 30}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportSelection 30)))}}
{{end}}
{{end}}
{{else if eq .selectionGroupID "11"}}
{{displayLanguage "ammonia_detectors"}}
{{range $index, $inputs := getReportAmmoniaSelection}}
{{ if eq (modInt $index 4) 0 }}
{{end}}
{{$inputs.Selection}}
{{ if or (eq (modInt (addInt $index 1) 4) 0) (eq (addInt $index 1) (len (getReportAmmoniaSelection)))}}
{{end}}
{{end}}
{{end}}