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