<%= content_tag :div ,:id => "users_checkbox_ary",:class => 'clear' do -%>
<% sys_users = User.all -%>
	<% sys_users.each do |sys_user| -%>
	
			<div class="checkblock">
				
				<% sys_user.sub_roles.each do |sr| %>
					<div class="for_unit" style="display:none;"> <%= sr.key %></div>
				<% end %>
				<%= content_tag :div,:data=>{'original-title'=>t('announcement.bulletin.approval_setting_window_title'),:content => "#{sys_user.sub_roles.collect{|sr| sr.key}.join(',')}"},:class=>"checkbox clear" do %>
					<div class="check-icon">
					</div>
					<div class='member-avatar'>
						<% if sys_user.avatar? %>
							<%= image_tag(sys_user.avatar.thumb.url,:class => "member-img") %>
						<% else %>
							<%= image_tag "person.png",:class => "member-img" %>
						<% end %>	
					</div>
					<%= label_tag "lab-user-#{sys_user.id}", (sys_user.name rescue ''),:class=>"member-name",:id=>nil -%>
					<%= check_box_tag "[users][#{sys_user.id}]", 'true',users.include?(sys_user),:class => "check"   -%>
				<%end -%>
			</div>

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