{{with $stuff := .}} {{with $convertedPageID := toInt $stuff.pageID}} {{range $index, $zone := $stuff.oneToThirtyThree}} {{if and (eq $zone 1) (eq $convertedPageID $zone)}}

{{displayLanguage "report_selections"}}: {{selectZone $convertedPageID}}

{{else if eq $convertedPageID $zone}}

{{displayLanguage "report_selections"}}: {{if gt $convertedPageID 30}}{{displayLanguage "ammonia_detectors"}}{{else}}{{selectZone $convertedPageID}}{{end}}

{{if ne $convertedPageID 33}}
{{end}} {{end}} {{end}} {{end}} {{end}}
{{with $convertedID := toInt .pageID}} {{if gt $convertedID 30}} {{range $index, $setpoint := getReportAnalogAmmoniaInputs $convertedID}} {{if eq (modInt $index 33) 0}}
{{end}} {{if eq (modInt $index 3) 0}}
{{end}}
{{if or (eq (modInt $index 3) 2) (eq (addInt $index 1) (len (getReportAnalogAmmoniaInputs $convertedID)))}}
{{end}} {{if or (eq (modInt $index 30) 29) (eq (addInt $index 1) (len (getReportAnalogAmmoniaInputs $convertedID))) }}
{{end}} {{end}} {{else}} {{range $index, $setpoint := getReportAnalogAuxInputs $convertedID}} {{if eq (modInt $index 30) 0}}
{{end}} {{if eq (modInt $index 3) 0}}
{{end}}
{{if or (eq (modInt $index 3) 2) (eq (addInt $index 1) (len (getReportAnalogAuxInputs $convertedID)))}}
{{end}} {{if or (eq (modInt $index 30) 29) (eq (addInt $index 1) (len (getReportAnalogAuxInputs $convertedID))) }}
{{end}} {{end}} {{end}} {{end}}