<% if @group.users.any? %>
<%= l(:label_user) %> |
|
<% @group.users.sort.each do |user| %>
<%= link_to_user user %> |
<%= link_to_remote l(:button_delete), { :url => group_user_path(@group, :user_id => user), :method => :delete }, :class => 'icon icon-del' %>
|
<% end %>
<% else %>
<%= l(:label_no_data) %>
<% end %>
<% users = User.active.not_in_group(@group).all(:limit => 100) %>
<% if users.any? %>
<% remote_form_for(@group, :url => group_users_path(@group), :html => {:method => :post}) do |f| %>
<% end %>
<% end %>