views/register: simplify HTML generation

This commit is contained in:
Sam Dodrill 2015-01-07 21:04:41 -08:00
parent 020e9e7712
commit 15c50ec516
1 changed files with 4 additions and 8 deletions

View File

@ -5,20 +5,16 @@ class LoginForm extends Widget
form method: "POST", action: "/register", ->
input type: "hidden", name: "csrf_token", value: @csrf_token
p ->
text "email address"
p "email address"
input type: "text", name: "email"
p ->
text "password"
p "password"
input type: "password", name: "password"
p ->
text "password"
p "password"
input type: "password", name: "password_again"
p ->
text "name"
p "name"
input type: "text", name: "name"
br!