<% content_for :secondary do %>
<br />
<br />
<br />
<br />
<br />
  <ul class="list">
	  <li><%= link_to t('web_link.new_link'), new_panel_web_resource_back_end_web_link_path %></li>
	  <li><%= link_to t('web_link.link_list'), panel_web_resource_back_end_web_links_path %></li>
	  <li><%= link_to t('web_link.new_link_class'), panel_web_resource_back_end_web_link_categorys_path %></li>
  </ul>
<% end -%>

<%= flash_messages %>

<br />
<br />
<br />
<br />
<br />

  <%= form_for :web_link, :action => 'search', :method => 'get', :url => panel_web_resource_back_end_web_links_path do |f| %>
  
  <%#= f.select :web_link_category_id, @web_link_categorys.collect {|t| [ t.i18n_variable[I18n.locale], t.id ] },{ :include_blank => t('web_link.select') }%>
  
  Category <%= select_tag "category_id", options_for_select(@web_link_categorys.collect{|t| [t.i18n_variable[I18n.locale], t.id]}), :prompt => t('web_link.select') %>
  
  <%= submit_tag "OK", :name => nil %> 
  
  <% end %>

<br />
<br />

<h1><%= t('web_link.list_link') %></h1>

	<table>
	  <tr>
		<th><%= t('web_link.status') %></th>
		<th><%= t('web_link.category') %></th>
		<th><%= t('web_link.name') %></th>
		<th><%= t('web_link.tags') %></th>
		<th><%= t('web_link.action') %></th>
	  </tr>

	<% @web_links.each do |post| %>
		<%= render :partial => 'web_links', :locals => {:post => post} %>
	<% end %>	
	</table>

<br />

