summaryrefslogtreecommitdiff
path: root/users/app/views/users/edit.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/views/users/edit.html.haml')
-rw-r--r--users/app/views/users/edit.html.haml17
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..4192959 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', :change_login
+ = user_form_with 'password_fields', :change_password
+ = render 'cancel_account' if @user == current_user
+ .tab-pane#email
+ = user_form_with 'email_field', :set_email_address
+ = user_form_with 'email_forward_field', :forward_email