@* #form-define *@ @(userForm: Form[UserData])(implicit messages: Messages) @* #form-define *@ @import scalaguide.forms.scalaforms._ @import scalaguide.forms.scalaforms.controllers.routes
@* #form-user-generated *@

Age:
  This field is required!
  Another error
  Required
  Another constraint

@* #form-user-generated *@
@* #form-user *@ @helper.form(action = routes.Application.userPost()) { @helper.inputText(userForm("name")) @helper.inputText(userForm("age")) } @* #form-user *@ @* #global-errors *@ @if(userForm.hasGlobalErrors) {

@for(error <- userForm.globalErrors) {
- @error.format
}

} @* #global-errors *@ @helper.form(action = routes.Application.userPost()) { @* #form-user-parameters *@ @helper.inputText(userForm("name"), Symbol("id") -> "name", Symbol("size") -> 30) @* #form-user-parameters *@ @helper.inputText(userForm("age")) @* #form-user-parameters-html *@ @helper.input(userForm("name")) { (id, name, value, args) => } @* #form-user-parameters-html *@ }