{{template "_layout.html" .}} {{define "title"}}{{ .title }}{{end}} {{define "meta"}} {{end}} {{define "head"}} {{end}} {{define "form-field"}} {{if eq .Type "hidden"}} {{else}}
{{if .Description}}
{{.Description}}
{{end}} {{if eq .Type "text"}} {{end}} {{if eq .Type "textarea"}} {{end}} {{if eq .Type "select"}} {{end}} {{if eq .Type "checkboxes"}} {{range $choice := .Choices}}
{{end}} {{end}} {{if eq .Type "radios"}} {{range $choice := .Choices}}
{{end}} {{end}}
{{.Error}}
{{end}} {{end}} {{define "content"}}

{{.title}}

{{if .hasSuccess}}
{{.submitMessage}}
{{else}}
{{.header}}
{{range $field := .fields}} {{block "form-field" $field}}{{end}} {{end}}
{{end}}
{{end}}