{{template "header.html" .}} {{set . "ERROR_CLASS" "has-error"}}

Validation sample 4

{{if .errors}}

Oops, please correct these errors

{{end}}
User informations {{with $field := field "user.Username" .}}
{{$field.Error}}
{{end}} {{with $field := field "user.FirstName" .}}
{{$field.Error}}
{{end}} {{with $field := field "user.LastName" .}}
{{$field.Error}}
{{end}} {{with $field := field "user.Age" .}}
{{$field.Error}}
{{end}}
Password {{with $field := field "user.Password" .}}
{{$field.Error}}
{{end}} {{with $field := field "user.PasswordConfirm" .}}
{{$field.Error}}
{{end}}
Email {{with $field := field "user.Email" .}}
{{$field.Error}}
{{end}} {{with $field := field "user.EmailConfirm" .}}
{{$field.Error}}
{{end}}
Conditions
Checking this box indicates that you accept terms of use. If you do not accept these terms, do not use this website :
{{with $field := field "user.TermsOfUse" .}}
{{$field.Error}}
{{end}}
{{template "footer.html" .}}