9 lines
386 B
Text
9 lines
386 B
Text
%tr{:id => "products_row_#{dom_id(product)}"}
|
|
%td= image_tag product.avatar(:small)
|
|
%td= product.name
|
|
%td= euro(product.price)
|
|
%td= product.stock
|
|
%td
|
|
%span{:class => "glyphicon #{product.deleted ? "glyphicon-check" : "glyphicon-unchecked"}"}
|
|
%td= product.calories
|
|
%td= button_to "Edit", edit_product_path(product), method: :get, class: "btn btn-default", remote: true
|