<% content_for :status_bar do %>

<%= t('headings') %>

<% end %>
<% if @headings.total_entries > Heading.per_page || params[:q].present? %> <% form_tag('/headings', :method => :get, :class => "skip-prompt form-search pull-right") do %> <%= text_field_tag :q, params[:q], :class => "search-query", :placeholder => "Lemma" %> <%= submit_tag "Cerca", :name => "", :class => "btn btn-small" %> <% end %> <% end %>
<%= link_to t('new_heading'), new_heading_path, { :class => "btn btn-small new" } %> <%= link_to ' ' + t('import_heading'), import_csv_headings_path, { :class => "btn btn-small" } %>
<% if @headings.size > 0 %> <%= display_page_entries_info @headings %> <% @headings.each do |heading| %> <% end %>
<%= sortable("heading_type", t('heading_type')) %> <%= sortable("name", t('heading_name')) %> <%= sortable("dates", t('heading_dates')) %> <%= sortable("qualifier", t('heading_qualifier')) %>    
<%= show_value(heading.heading_type, "t") %> <%= link_to heading.name, edit_heading_path(heading) %> <%= heading.dates %> <%= heading.qualifier %> <%= link_to t('show'), heading %> <%= link_to t('destroy'), heading, :confirm => 'Are you sure?', :method => :delete %>
<%= will_paginate @headings %> <% else %>

Non sono presenti lemmi.

<% end %>