tap/app/views/products_list/listview.html.haml

16 lines
439 B
Text
Raw Normal View History

2015-09-19 11:05:43 +02:00
= content_for :title, "Products"
2015-09-17 14:05:33 +02:00
#products-errors
.row.products
.col-md-8.col-md-offset-2
= link_to "Add products", barcode_products_path, class: "btn btn-default"
2015-09-17 14:05:33 +02:00
%table#products-table.table.table-striped
%tr
%th
%th Name
%th Price
%th Stock
%th Deleted
%th Kilocalorieën
%th
= render partial: 'products_list/product_row', collection: @products, as: :product