<%= form_for(@purchase_request) do |f| -%>
<%= f.error_messages -%>
<%= f.label t('activerecord.models.user') -%>
<%- if @user -%>
<%= link_to @user.username, @user -%>
<%- else -%>
<%= link_to current_user.username, current_user -%>
<%- end -%>
<%= f.label :title -%>
<%= f.text_area :title, :class => 'resource_textarea' -%>
<%= f.label :author -%>
<%= f.text_area :author, :class => 'resource_textarea' -%>
<%= f.label :publisher -%>
<%= f.text_area :publisher, :class => 'resource_textarea' -%>
<%= f.label :isbn -%>
<%= f.text_field :isbn, :class => 'resource_isbn_issn' -%>
<%= f.label :pub_date -%>
<%= f.text_field :pub_date -%>
<%= f.label :price -%>
<%= f.text_field :price, :class => 'resource_integer' -%>
<%= f.label :url -%>
<%= f.url_field :url, :class => 'resource_url' -%>
<%= f.label :note -%>
<%= f.text_area :note, :class => 'resource_textarea' -%>
<%= f.submit %>
<%- end -%>