Changeset 1221

Show
Ignore:
Timestamp:
11/07/06 23:41:41 (2 years ago)
Author:
james
Message:

order interface cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • peasantonline/app/views/admin/list_orders.rhtml

    r1054 r1221  
    33<table> 
    44  <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> 
    811        <th colspan="3"></th> 
    912  </tr> 
     
    1114<% for order in @orders %> 
    1215  <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> 
    1626    <td><%= link_to 'Show', :action => 'show_orders', :id => order %></td> 
    1727    <td><%= link_to 'Edit', :action => 'edit_orders', :id => order %></td>