summaryrefslogtreecommitdiff
path: root/lib/generators/nifty/authentication/templates/views/haml/_form.html.haml
blob: 992ee9cad1cf90f85de82f4af6d72596d7ef56d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
= form_for @<%= user_singular_name %> do |f|
  = f.error_messages
  .field
    = f.label :username
    = f.text_field :username
  .field
    = f.label :email, "Email Address"
    = f.text_field :email
  .field
    = f.label :password
    = f.password_field :password
  .field
    = f.label :password_confirmation, "Confirm Password"
    = f.password_field :password_confirmation
  .actions
    = f.submit (@<%= user_singular_name %>.new_record? ? "Sign up" : "Update")