tap/app/views/orders/new.html.erb

14 lines
407 B
Text
Raw Normal View History

2014-11-25 15:27:12 +01:00
<%= @user.name %>
2014-11-25 16:38:08 +01:00
<%= form_for( @order, url: user_orders_path(@user)) do |f| %>
<%= render 'application/errors', model: @order %>
2014-12-09 09:43:21 +01:00
<div id="form_products">
2014-12-05 16:15:07 +01:00
<%= f.fields_for :order_products do |op_field| %>
2014-12-09 09:43:21 +01:00
<%= render 'order_products/form_row', f: op_field %>
2014-12-04 17:02:08 +01:00
<% end %>
2014-12-09 09:43:21 +01:00
</div>
<%= render 'order_products/total_price', f: f %>
2014-11-25 15:27:12 +01:00
<%= f.submit "Order", class: "btn btn-primary " %>
<% end %>