{{define "content"}} {{if .Success}}

{{TTheme $.LangCode "forms.public.thank_you"}}

{{if .Form.SuccessMessage.Valid}}{{.Form.SuccessMessage.String}}{{else}}{{TTheme $.LangCode "forms.public.default_success"}}{{end}}

{{TTheme $.LangCode "forms.public.submit_another"}}

{{else}}

{{.Form.Title}}

{{if .Form.Description.Valid}}{{if .Form.Description.String}}

{{.Form.Description.String}}

{{end}}{{end}} {{if index .Errors "_form"}}

{{index .Errors "_form"}}

{{end}} {{if index .Errors "_captcha"}}

{{index .Errors "_captcha"}}

{{end}}
{{range .Fields}} {{if eq .Type "captcha"}} {{if hcaptchaEnabled}}
{{hcaptchaWidget}}
{{end}} {{else}}
{{if eq .Type "textarea"}} {{else if eq .Type "select"}} {{else if or (eq .Type "radio") (eq .Type "checkbox")}} {{$name := .Name}}{{$type := .Type}}{{$selected := index $.Values .Name}} {{range parseJSON .Options.String}} {{end}} {{else if eq .Type "file"}} {{else}} {{end}} {{if .HelpText.Valid}}{{if .HelpText.String}}{{.HelpText.String}}{{end}}{{end}} {{if index $.Errors .Name}}

{{index $.Errors .Name}}

{{end}}
{{end}} {{end}}
{{end}} {{end}}