{{ $depth:=.subform.depth }} {{ $context := .context }} {{ if (gt $depth 0 ) }} {{ end }} Name Command Command type Allow deletes Allow inserts Allow updates {{ if (gt $depth 0 ) }} Master fields Detail fields {{ end }} {{ if (gt $depth 0 ) }} {{ end }} {{ .subform.name }} {{ if (eq .subform.cmdtype "command")}} {{ partial "render-query-command" (dict "context" $context "query" .subform.embedded_query )}} {{else}} {{ partial "render-linked-string" (dict "context" $context "text" .subform.cmd "link" .subform.link) }} {{end}} {{ .subform.cmdtype }} {{ .subform.allowdeletes }} {{ .subform.allowinserts }} {{ .subform.allowupdates }} {{ if (gt $depth 0 ) }} {{ .subform.masterfields }} {{ .subform.detailfields }} {{ end }} {{ if .subform.controls }} {{ partial "control-header" $depth }} {{ range .subform.controls }} {{ if (eq .type "ListBox") }} {{ partial "indent-column" $depth }} {{ partial "control-data" (dict "context" $context "control" .) }} List sourcetype List source Bound column Dropdown {{ .listsourcetype }} {{ if (or (eq .listsourcetype "sql") (eq .listsourcetype "sql-pass-through")) }} {{ partial "render-query-command" (dict "context" $context "query" .embedded_query )}} {{ else }} {{ partial "render-linked-string" (dict "text" .listsource "link" .link "context" $context) }} {{ end }} {{ .boundcolumn }} {{ .dropdown }} {{ else }} {{ partial "indent-column" $depth }} {{ partial "control-data" (dict "context" $context "control" .) }} {{ end }} {{ if (eq .type "Grid" )}} {{ partial "control-header" (add 1 $depth) }} {{ range .columns }} {{ partial "indent-column" (add $depth 1) }} {{ partial "control-data" (dict "context" $context "control" .) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ range .subform.subforms }} {{ partial "render-subform" (dict "subform" . "context" $context) }} {{ end }}