Moved to Netbeans 6.5. Started order creation
[depot.git] / app / views / line_items / index.html.erb
1 <h1>Listing line_items</h1>
2
3 <table>
4 <tr>
5 <th>Product</th>
6 <th>Order</th>
7 <th>Quantity</th>
8 <th>Total price</th>
9 </tr>
10
11 <% for line_item in @line_items %>
12 <tr>
13 <td><%=h line_item.product_id %></td>
14 <td><%=h line_item.order_id %></td>
15 <td><%=h line_item.quantity %></td>
16 <td><%=h line_item.total_price %></td>
17 <td><%= link_to 'Show', line_item %></td>
18 <td><%= link_to 'Edit', edit_line_item_path(line_item) %></td>
19 <td><%= link_to 'Destroy', line_item, :confirm => 'Are you sure?', :method => :delete %></td>
20 </tr>
21 <% end %>
22 </table>
23
24 <br />
25
26 <%= link_to 'New line_item', new_line_item_path %>