<%= setup_context :trail => [[I18n.t("user._frontend.section.manage_access"), {:controller => :users, :action => :manage_access}]], :title => @user.username %>
<%= link_to_help :topic => "repository_users" %>

<%= I18n.t("user._frontend.section.manage_access") %>

<%= form_for @user, :as => "update_groups", :url => {:action => :update_groups}, :html => {:class => 'form-horizontal aspace-record-form'} do |f| %> <%= readonly_context :user, @user do |readonly| %> <%= readonly.label_and_textfield "username" %> <%= readonly.label_and_textfield "name" %> <% end %> <%= form_context :user, @user do |form| %> <% if user_can?('manage_repository') %>

<%= I18n.t("group._plural") %>

<% @groups.each do |group| %> <% end %>
<%= check_box_tag("groups[]", group.uri, params.has_key?("groups") ? params["groups"].include?(group.uri) : @user.groups.include?(group.uri), :id => group.group_code) %> <%= label_tag group.group_code, group.group_code %> <%= label_tag group.group_code, group.description %>
<% end %>
<%= link_to I18n.t("actions.cancel"), {:controller => :welcome}, :class => "btn btn-cancel btn-default" %>
<% end %> <% end %>