<% # 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| %>


		<% @users.each do |users| %>

			<div class="checkblock">
				<div class='checkbox clear'>
					<div class="check-icon"></div>
					<div class="member-avatar">
					
					<% if users.avatar? %>
						<%= image_tag(users.avatar.thumb.url,:class => "member-img") %>
					<% else %>
						<%= image_tag "person.png",:class => "member-img" %>
					<% end %>	
					
					</div>
					<%= label_tag "lab-user-#{users.id}", (users.name rescue ''),:class=>"member-name",:id=>nil -%>
					<%= check_box_tag "[users][#{users.id}]", 'true', true,:class => "check"   -%>
				</div>
			</div>

		<% end %>
		
<% end %>
		