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

25 lines
541 B
Text
Raw Normal View History

2014-11-25 15:27:12 +01:00
<%= @user.name %>
<% @products.each do |p| %>
<%#= render "orders/order_button" %>
<!-- dit moet in een andere file -->
<button class="btn btn-default product-btn"
data-name= '<%= p.name %>'
date-price= '<%= p.sale_price %>'>
<%= p.name %>
</button>
<!-- tot hier -->
<% end %>
<%= form_for( @order, url: orders_user_path(@user)) do |f| %>
<%= f.submit "Order", class: "btn btn-primary " %>
<% end %>
<div style="padding-top: 50px;" class="order_list ">
<p>
Nothing ordered yet!
</p>
</div>