#{extends 'main.html' /}

# Validation sample 7

#{ifErrors}

## Oops, please correct these errors

#{/ifErrors} #{jQueryValidate class:models.ComplicatedUser.class, key:'user' /} #{form id:'joinForm', action:@Sample7.handleSubmit()}
User informations #{field 'user.username'}
Desired username : ${field.error}
#{/field} #{field 'user.information.firstname'}
First name : ${field.error}
#{/field} #{field 'user.information.lastname'}
Last name : ${field.error}
#{/field} #{field 'user.information.age'}
Age : ${field.error}
#{/field}
Password #{field 'user.password'}
Password : ${field.error}
#{/field} #{field 'user.passwordConfirm'}
Confirm password : ${field.error}
#{/field}
Email #{field 'user.email'}
Email address : ${field.error}
#{/field} #{field 'user.emailConfirm'}
Confirm email address : ${field.error}
#{/field}
Conditions
Checking this box indicates that you accept terms of use. If you do not accept these terms, do not use this website :
#{field 'user.termsOfUse'}
I accept terms of use : #{if field.error}Please accept terms of use#{/if}
#{/field}
#{/form}