tap/app/views/orders/new.html.erb
2015-03-10 11:37:48 +01:00

15 lines
429 B
Text

<h3>Order for <%= @user.nickname %> (Huidige schuld: <%= euro(@user.balance) %>)</h3>
<div class="row">
<%= f_form_for [@user, @order] do |f| %>
<%= f.error_messages %>
<div class="col-md-12">
<%= f.fields_for :order_items do |op_field| %>
<%= render op_field.object, f: op_field, product: op_field.object.product %>
<% end %>
</div>
<%= render 'orders/price', f: f %>
<% end %>
</div>