diff options
Diffstat (limited to 'users/app/views/users/edit.html.haml')
-rw-r--r-- | users/app/views/users/edit.html.haml | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml index 49b4f6c..434c025 100644 --- a/users/app/views/users/edit.html.haml +++ b/users/app/views/users/edit.html.haml @@ -1,19 +1 @@ -.span8.offset2 - %h2=t :settings - - tabs = [] - - content_for :account do - = user_form_with 'login_and_password_fields', :legend => :update_login_and_password if @user == current_user - = render 'deactivate_account' if @user != current_user and @user.enabled? - = render 'enable_account' if @user != current_user and !@user.enabled? - = render 'cancel_account' - - tabs << :account - - if @user == current_user - - content_for :email do - %legend=t :email_address - =t :associated_email - = render @user.email_address, :as => :span - = user_form_with 'public_key_field', :legend => :public_key - = user_form_with 'email_forward_field', :legend => :forward_email - = user_form_with 'email_aliases', :legend => :add_email_alias - - tabs << :email - = render 'tabs/tabs', :tabs => tabs += render 'edit' |