summaryrefslogtreecommitdiff
path: root/users/app/views/users/_form.html.haml
blob: 891424197bdb788832f1e8ad85b6a41f6173a627 (plain)
1
2
3
4
5
6
7
8
= simple_form_for @user, :validate => true, :html => {:class => 'form-horizontal'} do |f|
  %legend
    = @user.new_record? ? t(:signup_message) : t(:edit_settings)
  = f.input :login, :input_html => { :id => :srp_username }
  = f.input :password, :required => true, :validate => true, :input_html => { :id => :srp_password }
  = f.input :password_confirmation, :required => true, :input_html => { :id => :srp_password_confirmation }
  = f.button :submit, :class => 'btn-primary' 
  = link_to t(:cancel), root_url, :class => :btn