<% content_for :page_specific_css do %>
	<%= stylesheet_link_tag "inc/permission-checkbox"  %>
<% end %>
<% content_for :page_specific_javascript do %>
	<%= javascript_include_tag "bootstrap"  %>
	<%= javascript_include_tag "inc/permission-checkbox"  %>
	<%= javascript_include_tag "inc/search"  %>
<% 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") %>
								<%= search_field_tag 'user_filter' %>
            </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">
var availableTags = [];
$(function() {

	$('#category_id').change(function() {
	  $(this).parents('form').submit();
	});
</script>