%p Blocked users will be removed from all projects & will not be able to login to GitLab.
=link_to'Block User',block_admin_user_path(@user),data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'},method: :put,class: "btn btn-small btn-remove"
.form-group
=f.label:admin,class: 'control-label'
.col-sm-10=f.check_box:admin
-unless@user.new_record?
.alert.alert-danger
-if@user.blocked?
%p This user is blocked and is not able to login to GitLab
%p Blocked users will be removed from all projects & will not be able to login to GitLab.
=link_to'Block User',block_admin_user_path(@user),data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'},method: :put,class: "btn btn-small btn-remove"