summaryrefslogtreecommitdiff
path: root/app/views/admin/users/_form.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/users/_form.html.haml')
-rw-r--r--app/views/admin/users/_form.html.haml20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml
index c1955b321d5..5e68a23f494 100644
--- a/app/views/admin/users/_form.html.haml
+++ b/app/views/admin/users/_form.html.haml
@@ -22,17 +22,17 @@
-if f.object.new_record?
.clearfix
- = f.label :admin, :class => "checkbox" do
+ = f.label :admin, class: "checkbox" do
= f.check_box :force_random_password, {}, true, nil
%span Generate random password
%div.password-fields
.clearfix
= f.label :password
- .input= f.password_field :password, :disabled => f.object.force_random_password
+ .input= f.password_field :password, disabled: f.object.force_random_password
.clearfix
= f.label :password_confirmation
- .input= f.password_field :password_confirmation, :disabled => f.object.force_random_password
+ .input= f.password_field :password_confirmation, disabled: f.object.force_random_password
%hr
.clearfix
= f.label :skype
@@ -46,27 +46,27 @@
.span6
.clearfix
= f.label :projects_limit
- .input= f.text_field :projects_limit, :class => "small_input"
+ .input= f.text_field :projects_limit, class: "small_input"
.alert
.clearfix
%p Make the user a GitLab administrator.
- = f.label :admin, :class => "checkbox" do
+ = f.label :admin, class: "checkbox" do
= f.check_box :admin
%span Administrator
- unless @admin_user.new_record?
.alert.alert-error
- if @admin_user.blocked
%span
- = link_to 'Unblock', unblock_admin_user_path(@admin_user), :method => :put, :class => "btn small"
+ = link_to 'Unblock', unblock_admin_user_path(@admin_user), method: :put, class: "btn small"
This user is blocked and is not able to login to GitLab
- else
%span
- = link_to 'Block', block_admin_user_path(@admin_user), :confirm => 'USER WILL BE BLOCKED! Are you sure?', :method => :put, :class => "btn small danger"
+ = link_to 'Block', block_admin_user_path(@admin_user), confirm: 'USER WILL BE BLOCKED! Are you sure?', method: :put, class: "btn small danger"
Blocked users will be removed from all projects & will not be able to login to GitLab.
.actions
- = f.submit 'Save', :class => "btn primary"
+ = f.submit 'Save', class: "btn primary"
- if @admin_user.new_record?
- = link_to 'Cancel', admin_users_path, :class => "btn"
+ = link_to 'Cancel', admin_users_path, class: "btn"
- else
- = link_to 'Cancel', admin_user_path(@admin_user), :class => "btn"
+ = link_to 'Cancel', admin_user_path(@admin_user), class: "btn"