blob: fc835af34c73cecde1c25bbe116cfd2c47cc06b5 (
plain)
1
2
3
4
5
6
7
8
9
|
- html = {:class => 'form-horizontal user form ' + (@user.new_record? ? 'new' : 'edit')}
= simple_form_for @user, :validate => true, :format => :json, :html => html 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
|