Advertisement
Guest User

viewReister

a guest
May 5th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.77 KB | None | 0 0
  1. @(userForm:Form[User])
  2. @main("Registration"){
  3.         @if(userForm.value.isDefined){
  4.         <h1>@userForm.get.firstName (@userForm.get.secondName)</h1>
  5.         <h2>Email: @userForm.get.email</h2>
  6. } else{
  7.         <h1>Feed some data</h1>
  8.         @helper.form(action=routes.Application.post()){
  9.                 @helper.inputText(userForm("firstName"))
  10.  
  11.                 @helper.inputText(userForm("secondName"))
  12.                
  13.                 @helper.inputText(userForm("email"))
  14.                
  15.                 @helper.inputText(userForm("login"))
  16.  
  17.                 @helper.inputText(userForm("password"))
  18.  
  19.                 @helper.inputText(userForm("company"))
  20.  
  21.                 <input type='submit' name ="send" value="Feed"/>
  22.                 }
  23.         }
  24.        
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement