<% if @group.users.any? %>
<%= l(:label_user) %> |
|
<% @group.users.sort.each do |user| %>
<%= link_to_user user %> |
<%= delete_link group_user_path(@group, :user_id => user), :remote => true %>
|
<% end %>
<% else %>
<%= l(:label_no_data) %>
<% end %>
<% users = User.active.not_in_group(@group).all(:limit => 100) %>
<% if users.any? %>
<%= form_for(@group, :remote => true, :url => group_users_path(@group),
:html => {:method => :post}) do |f| %>
<% end %>
<% end %>