<%= content_tag :div ,:id => "users_checkbox_ary", do -%>
<% sys_users = User.all -%>
	<% sys_users.each do |user| -%>
	
			<div class="checkblock">
				<div class="checkbox clear">
					<div class="check-icon">
						<i class="icons-check-2 icons-white"></i>
					</div>
					<div class='member-avatar'>
						<% if user.avatar? %>
							<%= image_tag(user.avatar.thumb.url,:class => "member-img") %>
						<% else %>
							<%= image_tag "person.png",:class => "member-img" %>
						<% end %>	
					</div>
					<%= label_tag "lab-user-#{user.id}", (user.name rescue ''),:class=>"member-name",:id=>nil -%>
					<%= check_box_tag "[users][#{user.id}]", 'true',users.include?(user),:class => "check"   -%>
				</div>
			</div>

	<% end -%>
<% end -%>