<%= 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 -%><%= 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 -%> |