2014-12-10 00:38:48 +01:00
|
|
|
<h3>Order for <%= @user.nickname %></h3>
|
2014-11-25 15:27:12 +01:00
|
|
|
|
2014-12-10 00:45:49 +01:00
|
|
|
<div class="row">
|
|
|
|
<%= form_for @order, url: user_orders_path(@user) do |f| %>
|
|
|
|
<%= render 'application/errors', model: @order %>
|
2014-12-05 07:55:28 +01:00
|
|
|
|
2014-12-10 00:38:48 +01:00
|
|
|
<div class="col-md-12">
|
|
|
|
<%= f.fields_for :order_products do |op_field| %>
|
2014-12-10 00:45:49 +01:00
|
|
|
<%= render 'order_products/form_row', f: op_field %>
|
|
|
|
<% end %>
|
2014-12-10 00:38:48 +01:00
|
|
|
</div>
|
|
|
|
|
2014-12-10 00:45:49 +01:00
|
|
|
<div class="col-md-3 form_total">
|
2014-12-10 00:38:48 +01:00
|
|
|
<%= render 'order_products/total_price', f: f %>
|
|
|
|
</div>
|
2014-12-09 22:36:24 +01:00
|
|
|
|
2014-11-25 15:27:12 +01:00
|
|
|
<% end %>
|
2014-12-10 00:45:49 +01:00
|
|
|
</div>
|