X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fline_items%2Findex.html.erb;fp=app%2Fviews%2Fline_items%2Findex.html.erb;h=7b07453a386db305552edf0d0c37ab97d4089479;hb=3ac66882338fa1c3f6d73ba68093b7fcfb399574;hp=0000000000000000000000000000000000000000;hpb=1b429173b63fb15c46a8bc319ae58e9c5584054c;p=depot.git diff --git a/app/views/line_items/index.html.erb b/app/views/line_items/index.html.erb new file mode 100644 index 0000000..7b07453 --- /dev/null +++ b/app/views/line_items/index.html.erb @@ -0,0 +1,26 @@ +

Listing line_items

+ + + + + + + + + +<% for line_item in @line_items %> + + + + + + + + + +<% end %> +
ProductOrderQuantityTotal price
<%=h line_item.product_id %><%=h line_item.order_id %><%=h line_item.quantity %><%=h line_item.total_price %><%= link_to 'Show', line_item %><%= link_to 'Edit', edit_line_item_path(line_item) %><%= link_to 'Destroy', line_item, :confirm => 'Are you sure?', :method => :delete %>
+ +
+ +<%= link_to 'New line_item', new_line_item_path %>