<!-- <% content_for :secondary do %>
<br />
<br />
<br />
<br />
<br />
  <ul class="list">
	  <li><%= link_to t('bulletin.new_announcement'), new_panel_announcement_back_end_bulletin_path %></li>
	  <li><%= link_to t('bulletin.announcement_list'), panel_announcement_back_end_bulletins_path %></li>
	  <li><%= link_to t('bulletin.new_announcement_class'), panel_announcement_back_end_bulletin_categorys_path %></li>
  </ul>
<% end -%>

<%= flash_messages %>

<br />
<br />
<br />
<br />
<br />
  
  <fieldset><legend><%= t('bulletin.search') %></legend>	

  <%= form_for :bulletin, :action => 'search', :method => 'get', :url => panel_announcement_back_end_bulletins_path do |f| %>
  
  <%#= f.select :bulletin_category_id, @bulletin_categorys.collect {|t| [ t.i18n_variable[I18n.locale], t.id ] },{ :include_blank => t('bulletin.select') }%>
  
  Category <%= select_tag "category_id", options_for_select(@bulletin_categorys.collect{|t| [t.i18n_variable[I18n.locale], t.id]}), :prompt => t('bulletin.select') %>
  
  KeyWord <%= text_field_tag :search, params[:search], :id => 'search_field' %>
  
  <%= submit_tag "Search", :name => nil %> 
  
  <% end %>

  
  </fieldset>

<br />
<br />


<br />
 -->

<%= render 'filter' %>
<table class="table main-list">
	<thead>
		<tr>
			<th class="span1 strong">
				<input type="checkbox">
				<a href class="list-remove"><i class="icon-trash"></i></a>
			</th>
			<th class="span1"><%= t('bulletin.status') %></th>
			<th class="span1-2"><%= t('bulletin.category') %></th>
			<th class="span7 select"><%= t('bulletin.title') %></th>
			<th class="span1-2"><%= t('bulletin.start_date') %></th>
			<th class="span1-2"><%= t('bulletin.end_date') %></th>
			<th class="span1-2"><%= t('bulletin.tags') %></th>
			<th class="span1-2"><%= t('bulletin.last_modified') %></th>
		</tr>
	</thead>
	<tbody>
		<%= render :partial => 'bulletin', :collection => @bulletins %>
	</tbody>
</table>

<div class="form-actions">
	<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('admin.add'), new_panel_announcement_back_end_bulletin_path, :class => 'btn btn-primary' %>
</div>

