Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @(userForm:Form[User])
- @main("Registration"){
- @if(userForm.value.isDefined){
- <h1>@userForm.get.firstName (@userForm.get.secondName)</h1>
- <h2>Email: @userForm.get.email</h2>
- } else{
- <h1>Feed some data</h1>
- @helper.form(action=routes.Application.post()){
- @helper.inputText(userForm("firstName"))
- @helper.inputText(userForm("secondName"))
- @helper.inputText(userForm("email"))
- @helper.inputText(userForm("login"))
- @helper.inputText(userForm("password"))
- @helper.inputText(userForm("company"))
- <input type='submit' name ="send" value="Feed"/>
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement