{{define "form"}} {{.PreFormHTML}}
{{if eq .Submitted true}} {{if eq .SubmitSuccess true}}
{{index .SubmitMessages 0}}
{{else}}
{{end}} {{end}} {{if ne .Username ""}} {{end}}
{{range $field := .Fields}} {{if eq $field.Type "text"}} {{else if eq $field.Type "number"}} {{else if eq $field.Type "username"}} {{else if eq $field.Type "email"}} {{else if eq $field.Type "current-password"}} {{else if eq $field.Type "new-password"}} {{else if eq $field.Type "textarea"}} {{else if eq $field.Type "captcha"}}
{{else if eq $field.Type "radio"}} {{ range $val := $field.RadioValues}}
{{ end }} {{else if eq $field.Type "description"}} {{$field.DefaultValue}} {{end}} {{if ne $field.Description ""}}
{{$field.Description}}
{{end}} {{end}} {{if eq .SubmitRed true}} {{else}} {{end}}
{{.PostFormHTML}} {{end}} {{define "form_page"}} {{template "meta_tags" .Title}}
{{template "page_top" .}}

{{.Form.Title}}


{{template "form" .Form}}
{{template "page_bottom" .}}
{{template "analytics"}} {{end}}