Changeset 1221
- Timestamp:
- 11/07/06 23:41:41 (2 years ago)
- Files:
-
- peasantonline/app/views/admin/list_orders.rhtml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
peasantonline/app/views/admin/list_orders.rhtml
r1054 r1221 3 3 <table> 4 4 <tr> 5 <% for column in Order.content_columns %> 6 <th><%= column.human_name %></th> 7 <% end %> 5 <th>Customer Name</th> 6 <th>Address</th> 7 <th>City, State Zip</th> 8 <th>Country</th> 9 <th>Order Total</th> 10 <th>Comments</th> 8 11 <th colspan="3"></th> 9 12 </tr> … … 11 14 <% for order in @orders %> 12 15 <tr> 13 <% for column in Order.content_columns %> 14 <td><%=h order.send(column.name) %></td> 15 <% end %> 16 <td><%= order.first_name %> <%= order.last_name %></td> 17 <td><%= order.address %></td> 18 <td><%= order.city %>, <%= order.state %> <%= order.zip %></td> 19 <td><%= order.country %></td> 20 <td><%= 21 sum = 0 22 order.line_items.each {|li| sum += li.total_price} 23 format_price(sum) 24 %></td> 25 <td><%= order.comments %></td> 16 26 <td><%= link_to 'Show', :action => 'show_orders', :id => order %></td> 17 27 <td><%= link_to 'Edit', :action => 'edit_orders', :id => order %></td>