2015-04-03 23:56:13 +02:00
|
|
|
<div id="products-errors"></div>
|
2015-03-28 14:36:07 +01:00
|
|
|
<div class="row products">
|
|
|
|
<div class="col-md-8 col-md-offset-2">
|
|
|
|
<h1>Products</h1>
|
|
|
|
<%= render partial: 'flash' %>
|
2015-09-01 23:13:20 +02:00
|
|
|
<%= link_to "Add Stock", new_stock_path, class: "btn btn-default" %>
|
2015-03-28 14:36:07 +01:00
|
|
|
|
|
|
|
<table id="products-table" class="table table-striped">
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Price</th>
|
|
|
|
<th>Stock</th>
|
2015-08-25 15:53:27 +02:00
|
|
|
<th>Deleted</th>
|
2015-07-07 20:13:37 +02:00
|
|
|
<th>Kilocalorieën</th>
|
2015-03-28 14:36:07 +01:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<%= render partial: 'products_list/product_row', collection: @products, as: :product %>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|