Merge branch 'master' into 1971-show-image-thumbnails
[arvados.git] / apps / workbench / app / views / users / _show_admin.html.erb
1 <p>As an admin, you can log in as this user. When you&rsquo;ve
2 finished, you will need to log out and log in again with your own
3 account.</p>
4
5 <blockquote>
6 <%= button_to "Log in as #{@object.full_name}", sudo_user_url(id: @object.uuid), class: 'btn btn-primary' %>
7 </blockquote>
8
9 <p>As an admin, you can setup this user. Please input a VM and repository for the user. If you had previously provided any of these items, they are pre-filled for you and you can leave them as is if you would like to reuse them.</p>
10
11 <blockquote>
12 <%= link_to "Setup #{@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'}  %>
13 </blockquote>
14
15 <p>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.</p>
16
17 <blockquote>
18 <%= button_to "Deactivate #{@object.full_name}", unsetup_user_url(id: @object.uuid), class: 'btn btn-primary', confirm: "Are you sure you want to deactivate #{@object.full_name}?"%>
19 </blockquote>
20
21 <% content_for :footer_html do %>
22 <div id="user-setup-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
23 <% end %>