diff options
Diffstat (limited to 'users/app/views/users/edit.html.haml')
-rw-r--r-- | users/app/views/users/edit.html.haml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml index 25da71a..b33c19b 100644 --- a/users/app/views/users/edit.html.haml +++ b/users/app/views/users/edit.html.haml @@ -1,5 +1,16 @@ .span8.offset2 %h2=t :settings - = render :partial => 'form', :locals => {:only => :change_login} - = render :partial => 'form', :locals => {:only => :change_password} - = render 'cancel_account' if @user == current_user + %ul.nav.nav-tabs + %li.active + %a{:href => '#account', 'data-toggle' => 'tab'}Account + %li + %a{:href => '#email', 'data-toggle' => 'tab'}Email + + .tab-content + .tab-pane.active#account + = user_form_with 'login_field', :legend => :change_login + = user_form_with 'password_fields', :legend => :change_password + = render 'cancel_account' if @user == current_user + .tab-pane#email + = user_form_with 'email_field', :legend => :set_email_address + = user_form_with 'email_forward_field', :legend => :forward_email |