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

<%= form_for(@order) do |f| -%> <%= f.error_messages -%>
<%= f.label t('activerecord.models.order_list') -%>
<%= f.select(:order_list_id, @order_lists.collect{|l| [l.title, l.id]}) -%>
<%= f.label t('activerecord.models.purchase_request') -%>
<%- if @purchase_request -%> <%= link_to @purchase_request.title, @purchase_request -%> <%= f.hidden_field :purchase_request_id, :value => @purchase_request.id -%> <%- else -%> <%= f.text_field :purchase_request_id -%> <%- end -%>
<%= f.submit %>
<%- end -%>