2015-09-19 11:05:43 +02:00
|
|
|
%tr{id: "products_row_#{dom_id(product)}"}
|
|
|
|
%td= link_to image_tag(product.avatar(:small)), edit_product_path(product)
|
2015-09-17 14:05:33 +02:00
|
|
|
%td= product.name
|
|
|
|
%td= euro(product.price)
|
|
|
|
%td= product.stock
|
|
|
|
%td
|
2015-09-19 11:05:43 +02:00
|
|
|
%span{class: "glyphicon #{product.deleted ? "glyphicon-check" : "glyphicon-unchecked"}"}
|
2015-09-17 14:05:33 +02:00
|
|
|
%td= product.calories
|
2015-09-19 11:05:43 +02:00
|
|
|
%td= link_to "Edit", edit_product_path(product), class: "btn btn-default", remote: true
|