blob: 39e26a66fd105a7020911d5e3e7adc952c4463c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
- only = local_assigns[:only]
- html = {:class => 'form-horizontal user form ' + (@user.new_record? ? 'new' : 'edit')}
= simple_form_for @user, :validate => true, :format => :json, :html => html do |f|
%legend
= t(only || :signup_message)
- if !only || only == :change_login
= f.input :login, :input_html => { :id => :srp_username }
- if !only || only == :change_password
= f.input :password, :required => true, :validate => true, :input_html => { :id => :srp_password }
= f.input :password_confirmation, :required => true, :input_html => { :id => :srp_password_confirmation }
.pull-right
= f.button :submit, :class => 'btn-primary'
- unless only
= link_to t(:cancel), root_url, :class => :btn
.clearfix
|