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

16 lines
424 B
Text
Raw Normal View History

2014-12-15 18:56:13 +01:00
<h3>Order for <%= @user.nickname %> (<%= euro(@user.balance) %>)</h3>
2014-11-25 15:27:12 +01:00
2014-12-10 00:45:49 +01:00
<div class="row">
2015-02-09 17:06:24 +01:00
<%= f_form_for [@user, @order] do |f| %>
2015-02-09 11:58:43 +01:00
<%= f.error_messages %>
2014-12-10 00:38:48 +01:00
<div class="col-md-12">
2015-02-09 17:06:24 +01:00
<%= f.fields_for :order_items do |op_field| %>
<%= render op_field.object, f: op_field, product: op_field.object.product %>
2014-12-15 18:56:13 +01:00
<% end %>
2014-12-10 00:38:48 +01:00
</div>
2015-02-09 17:06:24 +01:00
<%= render 'order_items/total_price', f: f %>
<% end %>
2014-12-10 00:45:49 +01:00
</div>