2014-11-25 15:27:12 +01:00
|
|
|
<%= @user.name %>
|
|
|
|
|
|
|
|
<% @products.each do |p| %>
|
2014-11-26 11:58:51 +01:00
|
|
|
<%= render "orders/order_button" , p: p %>
|
2014-11-25 15:27:12 +01:00
|
|
|
<% end %>
|
|
|
|
|
2014-11-25 16:38:08 +01:00
|
|
|
<%= form_for( @order, url: user_orders_path(@user)) do |f| %>
|
2014-11-25 15:27:12 +01:00
|
|
|
<%= f.submit "Order", class: "btn btn-primary " %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="padding-top: 50px;" class="order_list ">
|
|
|
|
<p>
|
|
|
|
Nothing ordered yet!
|
|
|
|
</p>
|
|
|
|
</div>
|