X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e40fdedbc285a0fa6af16e41b5b4f72e46e9987d..6ad31a32b13094ce162a2175956232403b13693f:/apps/workbench/app/views/users/_show_admin.html.erb diff --git a/apps/workbench/app/views/users/_show_admin.html.erb b/apps/workbench/app/views/users/_show_admin.html.erb index c43ce028b6..f83f9a05fd 100644 --- a/apps/workbench/app/views/users/_show_admin.html.erb +++ b/apps/workbench/app/views/users/_show_admin.html.erb @@ -1,15 +1,113 @@ -
As an admin, you can log in as this user. When you’ve -finished, you will need to log out and log in again with your own -account.
++ As an admin, you can log in as this user. When you’ve + finished, you will need to log out and log in again with your + own account. +
--<%= button_to "Log in as #{@object.full_name}", sudo_user_url(id: @object.uuid), class: 'btn btn-primary' %> -+
+ <%= button_to "Log in as #{@object.full_name}", sudo_user_url(id: @object.uuid), class: 'btn btn-primary' %> +-
As an admin, you can deactivate this user.
++ As an admin, you can setup a shell account for this user. + The login name is automatically generated from the user's e-mail address. +
--<%= link_to "Deactivate #{@object.full_name}", { action: 'unsetup', id: @object.uuid }, { confirm: "Are you sure you want to deactivate #{@object.full_name}?", method: 'post' } %> -+
+ <%= link_to "Setup shell account #{'for ' if @object.full_name.present?} #{@object.full_name}", setup_popup_user_url(id: @object.uuid), {class: 'btn btn-primary', :remote => true, 'data-toggle' => "modal", 'data-target' => '#user-setup-modal-window'} %> ++
+ As an admin, you can deactivate and reset this user. This will + remove all repository/VM permissions for the user. If you + "setup" the user again, the user will have to sign the user + agreement again. +
++ <%= button_to "Deactivate #{@object.full_name}", unsetup_user_url(id: @object.uuid), class: 'btn btn-primary', data: {confirm: "Are you sure you want to deactivate #{@object.full_name}?"} %> ++