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