Advertisement
kvitso

login.scala.html

May 5th, 2012
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.93 KB | None | 0 0
  1. @(form: Form[controllers.Application.Login])
  2.  
  3. <html>
  4.     <body>
  5.        
  6.         @helper.form(routes.Application.authenticate) {
  7.            
  8.             <h1>Sign in</h1>
  9.            
  10.             @if(form.hasGlobalErrors) {
  11.                 <p class="error">
  12.                     @form.globalError.message
  13.                 </p>
  14.             }
  15.            
  16.             @if(flash.contains("success")) {
  17.                 <p class="success">
  18.                     @flash.get("success")
  19.                 </p>
  20.             }
  21.            
  22.             <p>
  23.                 <input type="email" name="email" placeholder="Email" value="@form("email").value">
  24.             </p>
  25.             <p>
  26.                 <input type="password" name="password" placeholder="Password">
  27.             </p>
  28.             <p>
  29.                 <button type="submit">Login</button>
  30.             </p>
  31.            
  32.         }
  33.            
  34.     </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement