% # encoding: utf-8 %>
<%= form_for('member_select_search', :remote => true, :html => { :id => 'member_select_search', :class => 'member_select_search'} , :url => @member_select_search_url ) do |f| %>
<% @member_select_results.each do |results| %>
<% if results.avatar? %>
<%= image_tag(results.avatar.thumb.url,:class => "member-img") %>
<% else %>
<%= image_tag "person.png",:class => "member-img" %>
<% end %>
<%= label_tag "lab-user-#{results.id}", (results.name rescue ''),:class=>"member-name",:id=>nil -%>
<%= check_box_tag "[users][#{results.id}]", 'true', true, :class => "check" -%>
<% end %>
<% end %>