<% if @group.users.any? %>
<%= User.model_name.human %> |
|
<% @group.users.sort.each do |user| %>
<%= link_to_user user %> |
<%= link_to l(:button_delete), member_of_group_path(@group, user),
:method => :delete,
:remote => :true,
:class => 'icon icon-del' %>
|
<% end %>
<% else %>
<%= l(:label_no_data) %>
<% end %>
<% users = User.active.not_in_group(@group).all(:limit => 100) %>
<% if users.any? %>
<%= form_tag(members_of_group_path(@group), :method => :post, :remote => true) do |f| %>
<% end %>
<% end %>