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

<%= form_for :purchase_requests, :url => purchase_requests_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 -%>
<%- @purchase_requests.each_with_index do |purchase_request, i| -%> "> <%- end -%>
<%= t('activerecord.attributes.purchase_request.title') -%> <%= t('activerecord.attributes.purchase_request.price') -%> <%= t('activerecord.models.order_list') -%>
<%= link_to purchase_request.title, purchase_request -%>
<%= purchase_request.author -%> <%= purchase_request.publisher -%> <%= purchase_request.pub_date -%>
<%= purchase_request.price -%> <%= link_to purchase_request.order_list.title, order_list_purchase_requests_path(purchase_request.order_list) if purchase_request.order_list -%> <%= link_to image_tag('icons/page_white_edit.png', :size => '16x16', :alt => t('page.edit')), edit_purchase_request_path(purchase_request) -%> <%- if can? :destroy, purchase_request %> <%= link_to image_tag('icons/delete.png', :size => '16x16', :alt => t('page.destroy')), purchase_request, :confirm => t('page.are_you_sure'), :method => :delete -%> <%- end -%>
<%= will_paginate(@purchase_requests) -%>