summaryrefslogtreecommitdiff
path: root/users/app/views/users/edit.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-07-03 14:07:59 -0700
committerjessib <jessib@leap.se>2013-07-03 14:07:59 -0700
commit6c413d3b0c4f9343fe35dbd6ad65b87dca4b4831 (patch)
tree115808c1aa70bb7a3257bbc15779b9b942950c27 /users/app/views/users/edit.html.haml
parent3ead553bdd6b28c8210d9dcb764db407ba580c23 (diff)
Accounts can be enabled or not. Admins can edit this property.
Diffstat (limited to 'users/app/views/users/edit.html.haml')
-rw-r--r--users/app/views/users/edit.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml
index 97bd48d..49b4f6c 100644
--- a/users/app/views/users/edit.html.haml
+++ b/users/app/views/users/edit.html.haml
@@ -3,6 +3,8 @@
- 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