{{ $pageform := (index .context.Page.Params.forms .form) }} {{ $group := slice }}
{{ range $pageform.fields }} {{ if .required }}{{ .Scratch.Set "requiredstar" "" }}{{ else }}{{ .Scratch.Set "requiredstar" " (optioneel)" }}{{ end }} {{ if .required }}{{ .Scratch.Set "requiredtext" "required" }}{{ else }}{{ .Scratch.Set "requiredtext" "" }}{{ end }} {{ if and .group (not (in $group .group))}}
{{ if i18n (singularize .group) }}{{ i18n (singularize .group) }}{{ else }}{{ .group }}{{ end }} {{ partial "misc/expand" (dict "name" (printf "%sgroup" .group)) }}
{{ $group = $group | append .group }} {{ end }} {{ if eq .input_type "title" }}

{{ .placeholder }}

{{ else if eq .input_type "textarea" }}
{{ else if eq .input_type "radio" }}
{{ else if eq .input_type "checkbox" }}
{{ else if eq .input_type "results" }} {{ else if eq .input_type "submit" }}
{{ else if eq .input_type "mc" }} {{ $in0 := .name }} {{- $finale := slice -}} {{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }} {{ if eq .name "tags" }} {{ range $pages }} {{- if .Params.tags -}} {{- $finale = $finale | append .Params.tags -}} {{ end }} {{ end }} {{ else }} {{ range $pages }} {{ range .Param $in0 }} {{- $finale = $finale | append . -}} {{ end }} {{ end }} {{ end }} {{- $finale = $finale | uniq -}}
{{ .placeholder }} {{ if ne .expanded true }}{{ partial "misc/expand" (dict "name" (printf "%scat" $in0)) }}{{ end }}
{{ range sort $finale }} {{ end }}
{{ if eq .new true }} {{ end }}
{{ else }} {{ if eq .name "name" }}
{{ else if eq .name "address" }}
{{ else }}
{{ end }} {{ end }} {{ end }}