<% if available_principals.size > 20 %>

<%= simple_format(l('notice_to_many_principals_to_display'))%>

<% elsif available_principals.size == 0 %>

<%= l('notice_no_principals_found')%>

<% else %> <%= principals_check_box_tags 'member[user_ids][]', available_principals %>

<%= l(:label_role_plural) %>: <% roles.each do |role| %> <% end %>

<%= submit_tag l(:button_add), :id => 'member-add-submit' %>

<% end %>