#{extends 'main.html' /}

Validation sample 2

#{ifErrors}

Oops, please correct these errors

#{/ifErrors} #{form @Sample2.handleSubmit()}
User informations
#{error 'username' /}
#{error 'firstname' /}
#{error 'lastname' /}
#{error 'age' /}
Password
#{error 'password' /}
#{error 'passwordConfirm' /}
Email
#{error 'email' /}
#{error 'emailConfirm' /}
Conditions
Checking this box indicates that you accept terms of use. If you do not accept these terms, do not use this website :
#{ifError 'termsOfUse'}Please accept terms of use#{/ifError}
#{/form}