<% if @group.users.any? %> <% @group.users.sort.each do |user| %> <% end %>
<%= l(:label_user) %>
<%= link_to_user user %> <%= delete_link group_user_path(@group, :user_id => user), :remote => true %>
<% else %>

<%= l(:label_no_data) %>

<% end %>
<%= form_for(@group, :remote => true, :url => group_users_path(@group), :html => {:method => :post}) do |f| %>
<%=l(:label_user_new)%>

<%= label_tag "user_search", l(:label_user_search) %><%= text_field_tag 'user_search', nil %>

<%= javascript_tag "observeSearchfield('user_search', null, '#{ escape_javascript autocomplete_for_user_group_path(@group) }')" %>
<%= render_principals_for_new_group_users(@group) %>

<%= submit_tag l(:button_add) %>

<% end %>