{{- $annotation := index . 0 -}} {{- $label := "Annotation" -}} {{- $fieldID := "annotation" -}} {{- if gt (len .) 1 -}} {{- if index . 1 -}} {{- $label = index . 1 -}} {{- end -}} {{- end -}} {{- if gt (len .) 2 -}} {{- if index . 2 -}} {{- $fieldID = index . 2 -}} {{- end -}} {{- end -}} {{- $toolbarID := printf "%s-toolbar" $fieldID -}}