<%= t('page.listing', :model => t('activerecord.models.subject')) -%>

<%= form_for :subjects, :url => subjects_path, :html => {:method => 'get'} do -%>

<%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%> <%= submit_tag t('page.search') -%>

<%- end -%>
<%- subjects.each do |subject| -%> "> <%- end -%>
<%= t('activerecord.attributes.subject.term') -%>
<%= link_to subject.term, subject -%> <%- if can? :update, subject -%> <%= link_to t('page.edit'), edit_subject_path(subject) -%> <%- end -%> <%- if can? :delete, subject -%> <%= link_to t('page.destroy'), subject, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%> <%- end -%>
<%= paginate(subjects) -%>