{{define "form"}}

{{.Title}}

{{.PreFormHTML}} {{if eq .Submitted true}} {{if eq .SubmitSuccess true}}
{{index .SubmitMessages 0}}
{{else}}
Something went wrong, please correct these errors before continuing:
{{end}} {{end}}
{{if ne .Username ""}} {{end}} {{range $index, $field := .Fields}} {{if or (ne $field.Description "") (eq $field.Separator true)}} {{end}} {{end}} {{if eq .BackLink ""}} {{else}} {{end}}
{{$field.Label}} {{if eq $field.Type "text"}} {{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 "captcha"}}
{{end}}
{{$field.Description}} {{if eq $field.Separator true}}
{{end}}
{{if eq .SubmitRed true}} {{else}} {{end}} Back {{if eq .SubmitRed true}} {{else}} {{end}}
{{.PostFormHTML}} {{end}} {{define "form_page"}} {{template "meta_tags" .Title}} {{template "user_style" .}}
{{template "page_top" .}}
{{template "form" .Form}}
{{template "page_bottom" .}}
{{template "analytics"}} {{end}}