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

+ Product: + <%=h @line_item.product_id %> +

+ +

+ Order: + <%=h @line_item.order_id %> +

+ +

+ Quantity: + <%=h @line_item.quantity %> +

+ +

+ Total price: + <%=h @line_item.total_price %> +

+ + +<%= link_to 'Edit', edit_line_item_path(@line_item) %> | +<%= link_to 'Back', line_items_path %>