<%= content_tag :div ,:id => "users_checkbox_ary",:class => 'clear' do -%>
<% sys_users = User.all -%>
	<% sys_users.each do |user| -%>
	
			<div class="checkblock">
				
				<% user.sub_roles.each do |sr| %>
					<div class="for_unit" style="display:none;"> <%= sr.key %></div>
				<% end %>
				<%= content_tag :div,:data=>{'original-title'=>t('news.news_bulletin.approval_setting_window_title'),:content => "#{user.sub_roles.collect{|sr| sr.key}.join(',')}"},:class=>"checkbox clear" do %>
					<div class="check-icon">
					</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"   -%>
				<%end -%>
			</div>

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