2015-03-28 14:36:07 +01:00
|
|
|
<tr id="products_row_<%= dom_id(product) %>">
|
2015-04-03 23:56:13 +02:00
|
|
|
<td><%= image_tag product.avatar(:small) %></td>
|
|
|
|
<td><%= product.name %></td>
|
|
|
|
<td><%= euro(product.price) %></td>
|
|
|
|
<td><%= product.stock %></td>
|
2015-08-25 15:53:27 +02:00
|
|
|
<td><span class="glyphicon <%= product.deleted ? "glyphicon-check" : "glyphicon-unchecked" %>"></span></td>
|
2015-07-07 20:13:37 +02:00
|
|
|
<td><%= product.calories %></td>
|
2015-04-03 23:56:13 +02:00
|
|
|
<td><%= button_to "Edit", edit_product_path(product), method: :get, class: "btn btn-default", remote: true %></td>
|
2015-03-28 14:36:07 +01:00
|
|
|
</tr>
|