{{with $newmap := .}}

{{with $convPageID := convertValue .ID}} {{range getAnalogAuxByID $convPageID $newmap.unit}} {{.Name}} {{end}} {{else}} {{range getAnalogAuxByID $convPageID $newmap.unit}} {{.Name}} {{end}} {{end}}
{{with $analogInt := toInt $newmap.analogID}} {{if ge $analogInt 10}} {{range $inputnum := $newmap.analogInputsKT}}
{{range getAnalogAuxByID $inputnum $newmap.unit}} {{.Name}} {{end}}


{{end}} {{else}} {{range $inputnum := $newmap.analogInputs}}
{{range getAnalogAuxByID $inputnum $newmap.unit}} {{.Name}} {{end}}


{{end}} {{end}} {{else}} {{range $inputnum := $newmap.analogInputs}}
{{range getAnalogAuxByID $inputnum $newmap.unit}} {{.Name}} {{end}}


{{end}} {{end}}
{{displayLanguage "channel_configuration"}}
{{displayLanguage "name"}}
{{displayLanguage "io_board"}}
{{displayLanguage "io_channel"}}
{{displayLanguage "sensor_output"}}
{{with $pageCounterTmp := convertValue .ID}} {{with $pageCounter := addInt $pageCounterTmp $newmap.analogBase}} {{datakeyDropdownByID "analog" "io-board" 3 $pageCounter}} {{end}} {{else}} {{with $pageCounter := addInt $pageCounterTmp $newmap.analogBase}} {{datakeyDropdownByID "analog" "io-board" 3 $pageCounter}} {{end}} {{end}}
{{with $pageCounterTmp := convertValue .ID}} {{with $pageCounter := addInt $pageCounterTmp $newmap.analogBase}} {{datakeyDropdownByID "compSensorA" "sensor-output" 21 $pageCounter}} {{end}} {{else}} {{with $pageCounter := addInt $pageCounterTmp $newmap.analogBase}} {{datakeyDropdownByID "compSensorA" "sensor-output" 21 $pageCounter}} {{end}} {{end}}


{{displayLanguage "sensor_configuration"}}
{{displayLanguage "current_value"}}
{{displayLanguage "low_limit"}}
{{displayLanguage "sensor_type"}}
{{with $sensorVal := .sensor_mode_value }} {{sensorTypeDropdown "sensor-type" $sensorVal}}{{end}}
{{displayLanguage "high_limit"}}


{{displayLanguage "safety_configuration"}}
{{with $convPageID := convertValue $newmap.ID}} {{if ge $convPageID 10}} {{with $pageCounterTmp := convertValue $newmap.ID}} {{with $pageCounter := addInt $pageCounterTmp 151}} {{modeDataDropDownsByID "safety-configuration-" $pageCounter}} {{end}} {{else}} {{with $pageCounter := addInt $pageCounterTmp $newmap.modeBase}} {{modeDataDropDownsByID "safety-configuration-" $pageCounter}} {{end}} {{end}} {{else}} {{with $pageCounterTmp := convertValue $newmap.ID}} {{with $pageCounter := addInt $pageCounterTmp $newmap.modeBase}} {{modeDataDropDownsByID "safety-configuration-" $pageCounter}} {{end}} {{else}} {{with $pageCounter := addInt $pageCounterTmp $newmap.modeBase}} {{modeDataDropDownsByID "safety-configuration-" $pageCounter}} {{end}} {{end}} {{end}} {{else}} {{with $pageCounterTmp := convertValue $newmap.ID}} {{with $pageCounter := addInt $pageCounterTmp $newmap.modeBase}} {{modeDataDropDownsByID "safety-configuration-" $pageCounter}} {{end}} {{else}} {{with $pageCounter := addInt $pageCounterTmp $newmap.modeBase}} {{modeDataDropDownsByID "safety-configuration-" $pageCounter}} {{end}} {{end}} {{end}}
{{displayLanguage "setpoint"}}
{{displayLanguage "delay"}}
{{displayLanguages "low" "warning"}}
{{with $ti := add 824 (multiply 4 .analogID)}} {{toggleBarByID "toggle-low-warning-" (add 0 $ti) }} {{end}}
{{displayLanguage "high_warning"}}
{{with $ti := add 824 (multiply 4 .analogID)}} {{toggleBarByID "toggle-high-warning-" (add 1 $ti) }} {{end}}
{{displayLanguage "low_shutdown"}}
{{with $ti := add 824 (multiply 4 .analogID)}} {{toggleBarByID "toggle-low-shutdown-" (add 2 $ti) }} {{end}}
{{displayLanguage "high_shutdown"}}
{{with $ti := add 824 (multiply 4 .analogID)}} {{toggleBarByID "toggle-high-shutdown-" (add 3 $ti) }} {{end}}
{{end}}