10 lines
267 B
Cheetah
10 lines
267 B
Cheetah
|
{{define "form_input"}}
|
||
|
{{ if .Schema.Types }}
|
||
|
{{ $root := . }}
|
||
|
{{range .Schema.Types}}
|
||
|
{{ $inputBlock := printf "%s_%s" "form_input" . }}
|
||
|
{{ include $inputBlock $root }}
|
||
|
{{end}}
|
||
|
{{ else }}
|
||
|
{{ end }}
|
||
|
{{end}}
|