Changeset 1233
- Timestamp:
- 11/11/06 20:05:14 (2 years ago)
- Files:
-
- peasantonline/app/helpers/admin_helper.rb (modified) (1 diff)
- peasantonline/app/views/admin/_form_orders.rhtml (modified) (1 diff)
- peasantonline/app/views/admin/list_orders.rhtml (modified) (2 diffs)
- peasantonline/db/migrate/024_add_shipping_status_to_orders.rb (added)
- peasantonline/db/schema.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
peasantonline/app/helpers/admin_helper.rb
r995 r1233 21 21 return values 22 22 end 23 24 def get_status() 25 return ["NEW", "Processed", "Shipped", "Cancelled", "Returned"] 26 end 23 27 24 28 end peasantonline/app/views/admin/_form_orders.rhtml
r1057 r1233 43 43 <p><label for="order_shipped_on">Shipped On</label><br/> 44 44 <%= date_select 'order', 'shipped_on' %></p> 45 46 <p><label for="order_status">Status</label><br/> 47 <%= select('order', 'status', get_status()) %></p> 45 48 <!--[eoform:order]--> 46 49 peasantonline/app/views/admin/list_orders.rhtml
r1221 r1233 8 8 <th>Country</th> 9 9 <th>Order Total</th> 10 <th>Order Status</th> 10 11 <th>Comments</th> 11 12 <th colspan="3"></th> … … 23 24 format_price(sum) 24 25 %></td> 26 <td><%= order.status %></td> 25 27 <td><%= order.comments %></td> 26 28 <td><%= link_to 'Show', :action => 'show_orders', :id => order %></td> peasantonline/db/schema.rb
r1138 r1233 3 3 # then regenerate this schema definition. 4 4 5 ActiveRecord::Schema.define(:version => 2 3) do5 ActiveRecord::Schema.define(:version => 24) do 6 6 7 7 create_table "categories", :force => true do |t| … … 49 49 t.column "country", :string 50 50 t.column "sales_tax", :float 51 t.column "status", :string, :default => "NEW" 51 52 end 52 53