{{define "attrs"}} name="{{.Name}}" placeholder="{{.Placeholder}}" aria-invalid="{{not .Valid}}" {{if .Error}} aria-describedby="{{.Name}}-error" {{end}} {{end}} {{define "field"}} {{.Label}} {{if eq .Type "textarea"}} {{.Value}} {{else}} {{end}} {{if .Error}} {{.Error}} {{end}} {{end}} {{define "form"}}