<% content_for :page_specific_css do %>
	<%= stylesheet_link_tag "inc/permission-checkbox"  %>
<% end %>
<% content_for :page_specific_javascript do %>
	<%= javascript_include_tag "inc/permission-checkbox"  %>
<% end %>
<%#= label_tag :fact_check_setting, t("announcement.bulletin.fact_check_setting") %>
<%= form_tag('', :remote => true)  %>
<div class="subnav">
    <ul class="nav nav-pills filter">
        <li class="accordion-group">
            <div class="form-search" style="margin: 5px 10px;">
                <%= label_tag :category, t("announcement.bulletin.category") %>
                <%= select_tag "category_id", options_from_collection_for_select(@bulletin_categorys, "id", "key") %>
            </div>
        </li>
    </ul>
</div>
<%#= label_tag :role, t("admin.roles") %>
<div class="clear">
<%= content_tag :div do -%>
	<% form_tag :action => "update_setting"  do %>
		<%= render :partial => "privilege_user", :locals => {:users => @users_array} %>
		<%= submit_tag "Update" %>
	<% end -%>
<% end -%>
</div>

<script type="text/javascript" charset="utf-8">
	$('#category_id').change(function() {
	  $(this).parents('form').submit();
	});
</script>