refinerycms-stores 0.0.16 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. data/Gemfile +2 -0
  2. data/VERSION +1 -1
  3. data/app/assets/images/Excel.png +0 -0
  4. data/app/assets/images/PowerPoint.png +0 -0
  5. data/app/assets/images/Word.png +0 -0
  6. data/app/assets/images/audio-icon.png +0 -0
  7. data/app/assets/images/camera-icon.png +0 -0
  8. data/app/assets/images/html-icon.png +0 -0
  9. data/app/assets/images/muku-doc-font-128.png +0 -0
  10. data/app/assets/images/pdf-icon.png +0 -0
  11. data/app/assets/images/print-icon.png +0 -0
  12. data/app/assets/images/video-icon.png +0 -0
  13. data/app/assets/images/warning-icon.png +0 -0
  14. data/app/assets/images/zip_thumb.png +0 -0
  15. data/app/assets/stylesheets/refinery/refinerycms-stores.sass +66 -0
  16. data/app/controllers/refinery/customers/customers_controller.rb +35 -17
  17. data/app/controllers/refinery/orders/admin/orders_controller.rb +2 -1
  18. data/app/controllers/refinery/orders/orders_controller.rb +14 -9
  19. data/app/controllers/refinery/products/admin/digidownloads_controller.rb +39 -0
  20. data/app/controllers/refinery/products/admin/products_controller.rb +54 -4
  21. data/app/controllers/refinery/products/digidownloads_controller.rb +32 -0
  22. data/app/controllers/refinery/products/products_controller.rb +3 -0
  23. data/app/controllers/refinery/stores/stores_controller.rb +3 -2
  24. data/app/controllers/refinery/stores_application_controller.rb +6 -1
  25. data/app/helpers/refinery/stores/stores_helper.rb +4 -3
  26. data/app/models/refinery/addresses/address.rb +42 -0
  27. data/app/models/refinery/customers/customer.rb +7 -1
  28. data/app/models/refinery/orders/line_item.rb +10 -0
  29. data/app/models/refinery/orders/order.rb +59 -47
  30. data/app/models/refinery/products/digidownload.rb +181 -0
  31. data/app/models/refinery/products/product.rb +21 -1
  32. data/app/views/refinery/customers/customers/edit.html.haml +54 -0
  33. data/app/views/refinery/customers/{new.html.haml → customers/new.html.haml} +10 -3
  34. data/app/views/refinery/orders/admin/orders/_actions.html.haml +4 -0
  35. data/app/views/refinery/orders/admin/orders/_order.html.haml +13 -0
  36. data/app/views/refinery/orders/admin/orders/_orders.html.haml +2 -0
  37. data/app/views/refinery/orders/admin/orders/_records.html.haml +12 -0
  38. data/app/views/refinery/orders/admin/orders/_sortable_list.html.haml +4 -0
  39. data/app/views/refinery/orders/admin/orders/index.html.haml +5 -0
  40. data/app/views/refinery/orders/admin/orders/show.html.haml +80 -0
  41. data/app/views/refinery/orders/orders/edit.html.haml +2 -2
  42. data/app/views/refinery/orders/orders/index.html.haml +19 -4
  43. data/app/views/refinery/orders/orders/show.html.haml +68 -25
  44. data/app/views/refinery/products/admin/digidownloads/_actions.html.haml +19 -0
  45. data/app/views/refinery/products/admin/digidownloads/_digidownload.html.haml +13 -0
  46. data/app/views/refinery/products/admin/digidownloads/_digidownloads.html.haml +2 -0
  47. data/app/views/refinery/products/admin/digidownloads/_form.html.haml +41 -0
  48. data/app/views/refinery/products/admin/digidownloads/_records.html.haml +12 -0
  49. data/app/views/refinery/products/admin/digidownloads/_sortable_list.html.haml +4 -0
  50. data/app/views/refinery/products/admin/digidownloads/edit.html.haml +2 -0
  51. data/app/views/refinery/products/admin/digidownloads/index.html.haml +6 -0
  52. data/app/views/refinery/products/admin/digidownloads/new.html.haml +2 -0
  53. data/app/views/refinery/products/admin/products/_form.html.haml +98 -0
  54. data/app/views/refinery/products/digidownloads/index.html.haml +28 -0
  55. data/app/views/refinery/products/digidownloads/show.html.haml +39 -0
  56. data/app/views/refinery/products/products/show.html.haml +10 -9
  57. data/app/views/refinery/shared/_address.html.haml +18 -0
  58. data/app/views/refinery/{orders/orders → shared}/_address_form.html.haml +0 -0
  59. data/app/views/refinery/{stores/stores → shared}/_cart.html.haml +2 -2
  60. data/app/views/refinery/{stores/stores → shared}/_cart_item.html.haml +0 -0
  61. data/app/views/refinery/shared/_customer_head.html.haml +20 -0
  62. data/app/views/refinery/stores/admin/stores/_actions.html.haml +46 -0
  63. data/app/views/refinery/stores/stores/show.html.haml +1 -1
  64. data/config/locales/en.yml +17 -0
  65. data/config/routes.rb +24 -9
  66. data/db/migrate/3_create_orders_orders.rb +2 -0
  67. data/db/migrate/7_create_products_digidownloads.rb +33 -0
  68. data/lib/refinery/addresses.rb +11 -11
  69. data/lib/refinery/addresses/engine.rb +3 -3
  70. data/lib/refinery/auth_key.rb +44 -0
  71. data/lib/refinery/customers.rb +11 -11
  72. data/lib/refinery/customers/engine.rb +3 -3
  73. data/lib/refinery/orders.rb +1 -1
  74. data/lib/refinery/products.rb +2 -2
  75. data/lib/refinery/products/engine.rb +2 -2
  76. data/lib/refinery/stores.rb +1 -0
  77. data/lib/refinery/stores/authenticated_system.rb +25 -0
  78. data/lib/refinery/stores/engine.rb +19 -0
  79. data/lib/refinerycms-stores.rb +5 -2
  80. data/readme.md +32 -1
  81. data/refinerycms-stores.gemspec +54 -20
  82. metadata +87 -37
  83. data/app/views/refinery/customers/edit.html.haml +0 -17
  84. data/app/views/refinery/orders/admin/orders/_actions.html.erb +0 -25
  85. data/app/views/refinery/orders/admin/orders/_form.html.erb +0 -122
  86. data/app/views/refinery/orders/admin/orders/_order.html.erb +0 -20
  87. data/app/views/refinery/orders/admin/orders/_orders.html.erb +0 -2
  88. data/app/views/refinery/orders/admin/orders/_records.html.erb +0 -18
  89. data/app/views/refinery/orders/admin/orders/_sortable_list.html.erb +0 -5
  90. data/app/views/refinery/orders/admin/orders/edit.html.erb +0 -1
  91. data/app/views/refinery/orders/admin/orders/index.html.erb +0 -7
  92. data/app/views/refinery/orders/admin/orders/new.html.erb +0 -1
  93. data/app/views/refinery/products/admin/products/_form.html.erb +0 -127
  94. data/app/views/refinery/stores/admin/stores/_actions.html.erb +0 -57
  95. data/app/views/refinery/stores/stores/_customer_head.html.haml +0 -12
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-stores
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-20 00:00:00.000000000 Z
12
+ date: 2012-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: refinerycms
16
- requirement: &82054020 !ruby/object:Gem::Requirement
16
+ requirement: &23648020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82054020
24
+ version_requirements: *23648020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &82053720 !ruby/object:Gem::Requirement
27
+ requirement: &23647520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *82053720
35
+ version_requirements: *23647520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: aasm
38
- requirement: &82053460 !ruby/object:Gem::Requirement
38
+ requirement: &23646740 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>'
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *82053460
46
+ version_requirements: *23646740
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: hpricot
49
- requirement: &82053160 !ruby/object:Gem::Requirement
49
+ requirement: &23646240 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *82053160
57
+ version_requirements: *23646240
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: ruby_parser
60
- requirement: &82052820 !ruby/object:Gem::Requirement
60
+ requirement: &23645720 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *82052820
68
+ version_requirements: *23645720
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: haml-rails
71
- requirement: &82052510 !ruby/object:Gem::Requirement
71
+ requirement: &23645240 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *82052510
79
+ version_requirements: *23645240
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: stripe
82
- requirement: &82052200 !ruby/object:Gem::Requirement
82
+ requirement: &23644580 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,32 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *82052200
90
+ version_requirements: *23644580
91
+ - !ruby/object:Gem::Dependency
92
+ name: paperclip
93
+ requirement: &22166880 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *22166880
102
+ - !ruby/object:Gem::Dependency
103
+ name: aws-sdk
104
+ requirement: &22166340 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *22166340
91
113
  - !ruby/object:Gem::Dependency
92
114
  name: jeweler
93
- requirement: &82051780 !ruby/object:Gem::Requirement
115
+ requirement: &22165700 !ruby/object:Gem::Requirement
94
116
  none: false
95
117
  requirements:
96
118
  - - ! '>='
@@ -98,7 +120,7 @@ dependencies:
98
120
  version: '0'
99
121
  type: :development
100
122
  prerelease: false
101
- version_requirements: *82051780
123
+ version_requirements: *22165700
102
124
  description: Complete engine for Stripe gateway-based shopping cart to be used with
103
125
  a RefineryCMS project
104
126
  email: dsaronin@gmail.com
@@ -112,12 +134,26 @@ files:
112
134
  - LICENSE.txt
113
135
  - Rakefile
114
136
  - VERSION
137
+ - app/assets/images/Excel.png
138
+ - app/assets/images/PowerPoint.png
139
+ - app/assets/images/Word.png
140
+ - app/assets/images/audio-icon.png
141
+ - app/assets/images/camera-icon.png
142
+ - app/assets/images/html-icon.png
143
+ - app/assets/images/muku-doc-font-128.png
144
+ - app/assets/images/pdf-icon.png
145
+ - app/assets/images/print-icon.png
146
+ - app/assets/images/video-icon.png
147
+ - app/assets/images/warning-icon.png
148
+ - app/assets/images/zip_thumb.png
115
149
  - app/assets/stylesheets/refinery/refinerycms-stores.sass
116
150
  - app/controllers/refinery/addresses/admin/addresses_controller.rb
117
151
  - app/controllers/refinery/customers/customers_controller.rb
118
152
  - app/controllers/refinery/orders/admin/orders_controller.rb
119
153
  - app/controllers/refinery/orders/orders_controller.rb
154
+ - app/controllers/refinery/products/admin/digidownloads_controller.rb
120
155
  - app/controllers/refinery/products/admin/products_controller.rb
156
+ - app/controllers/refinery/products/digidownloads_controller.rb
121
157
  - app/controllers/refinery/products/products_controller.rb
122
158
  - app/controllers/refinery/stores/admin/stores_controller.rb
123
159
  - app/controllers/refinery/stores/stores_controller.rb
@@ -128,6 +164,7 @@ files:
128
164
  - app/models/refinery/customers/customer.rb
129
165
  - app/models/refinery/orders/line_item.rb
130
166
  - app/models/refinery/orders/order.rb
167
+ - app/models/refinery/products/digidownload.rb
131
168
  - app/models/refinery/products/product.rb
132
169
  - app/models/refinery/stores/store.rb
133
170
  - app/views/refinery/addresses/admin/addresses/_actions.html.erb
@@ -139,18 +176,15 @@ files:
139
176
  - app/views/refinery/addresses/admin/addresses/edit.html.erb
140
177
  - app/views/refinery/addresses/admin/addresses/index.html.erb
141
178
  - app/views/refinery/addresses/admin/addresses/new.html.erb
142
- - app/views/refinery/customers/edit.html.haml
143
- - app/views/refinery/customers/new.html.haml
144
- - app/views/refinery/orders/admin/orders/_actions.html.erb
145
- - app/views/refinery/orders/admin/orders/_form.html.erb
146
- - app/views/refinery/orders/admin/orders/_order.html.erb
147
- - app/views/refinery/orders/admin/orders/_orders.html.erb
148
- - app/views/refinery/orders/admin/orders/_records.html.erb
149
- - app/views/refinery/orders/admin/orders/_sortable_list.html.erb
150
- - app/views/refinery/orders/admin/orders/edit.html.erb
151
- - app/views/refinery/orders/admin/orders/index.html.erb
152
- - app/views/refinery/orders/admin/orders/new.html.erb
153
- - app/views/refinery/orders/orders/_address_form.html.haml
179
+ - app/views/refinery/customers/customers/edit.html.haml
180
+ - app/views/refinery/customers/customers/new.html.haml
181
+ - app/views/refinery/orders/admin/orders/_actions.html.haml
182
+ - app/views/refinery/orders/admin/orders/_order.html.haml
183
+ - app/views/refinery/orders/admin/orders/_orders.html.haml
184
+ - app/views/refinery/orders/admin/orders/_records.html.haml
185
+ - app/views/refinery/orders/admin/orders/_sortable_list.html.haml
186
+ - app/views/refinery/orders/admin/orders/index.html.haml
187
+ - app/views/refinery/orders/admin/orders/show.html.haml
154
188
  - app/views/refinery/orders/orders/_card_form.html.haml
155
189
  - app/views/refinery/orders/orders/_order_snapshot.html.haml
156
190
  - app/views/refinery/orders/orders/confirmation.html.haml
@@ -158,8 +192,17 @@ files:
158
192
  - app/views/refinery/orders/orders/index.html.haml
159
193
  - app/views/refinery/orders/orders/purchase.html.haml
160
194
  - app/views/refinery/orders/orders/show.html.haml
195
+ - app/views/refinery/products/admin/digidownloads/_actions.html.haml
196
+ - app/views/refinery/products/admin/digidownloads/_digidownload.html.haml
197
+ - app/views/refinery/products/admin/digidownloads/_digidownloads.html.haml
198
+ - app/views/refinery/products/admin/digidownloads/_form.html.haml
199
+ - app/views/refinery/products/admin/digidownloads/_records.html.haml
200
+ - app/views/refinery/products/admin/digidownloads/_sortable_list.html.haml
201
+ - app/views/refinery/products/admin/digidownloads/edit.html.haml
202
+ - app/views/refinery/products/admin/digidownloads/index.html.haml
203
+ - app/views/refinery/products/admin/digidownloads/new.html.haml
161
204
  - app/views/refinery/products/admin/products/_actions.html.erb
162
- - app/views/refinery/products/admin/products/_form.html.erb
205
+ - app/views/refinery/products/admin/products/_form.html.haml
163
206
  - app/views/refinery/products/admin/products/_product.html.erb
164
207
  - app/views/refinery/products/admin/products/_products.html.erb
165
208
  - app/views/refinery/products/admin/products/_records.html.erb
@@ -167,8 +210,15 @@ files:
167
210
  - app/views/refinery/products/admin/products/edit.html.erb
168
211
  - app/views/refinery/products/admin/products/index.html.erb
169
212
  - app/views/refinery/products/admin/products/new.html.erb
213
+ - app/views/refinery/products/digidownloads/index.html.haml
214
+ - app/views/refinery/products/digidownloads/show.html.haml
170
215
  - app/views/refinery/products/products/show.html.haml
171
- - app/views/refinery/stores/admin/stores/_actions.html.erb
216
+ - app/views/refinery/shared/_address.html.haml
217
+ - app/views/refinery/shared/_address_form.html.haml
218
+ - app/views/refinery/shared/_cart.html.haml
219
+ - app/views/refinery/shared/_cart_item.html.haml
220
+ - app/views/refinery/shared/_customer_head.html.haml
221
+ - app/views/refinery/stores/admin/stores/_actions.html.haml
172
222
  - app/views/refinery/stores/admin/stores/_form.html.erb
173
223
  - app/views/refinery/stores/admin/stores/_records.html.erb
174
224
  - app/views/refinery/stores/admin/stores/_sortable_list.html.erb
@@ -177,9 +227,6 @@ files:
177
227
  - app/views/refinery/stores/admin/stores/edit.html.erb
178
228
  - app/views/refinery/stores/admin/stores/index.html.erb
179
229
  - app/views/refinery/stores/admin/stores/new.html.erb
180
- - app/views/refinery/stores/stores/_cart.html.haml
181
- - app/views/refinery/stores/stores/_cart_item.html.haml
182
- - app/views/refinery/stores/stores/_customer_head.html.haml
183
230
  - app/views/refinery/stores/stores/_list_product.html.haml
184
231
  - app/views/refinery/stores/stores/index.html.haml
185
232
  - app/views/refinery/stores/stores/show.html.haml
@@ -195,10 +242,12 @@ files:
195
242
  - db/migrate/4_create_orders_line_items.rb
196
243
  - db/migrate/5_create_addresses_addresses.rb
197
244
  - db/migrate/6_create_customers_customers.rb
245
+ - db/migrate/7_create_products_digidownloads.rb
198
246
  - db/seeds.rb
199
247
  - lib/generators/refinery/stores_generator.rb
200
248
  - lib/refinery/addresses.rb
201
249
  - lib/refinery/addresses/engine.rb
250
+ - lib/refinery/auth_key.rb
202
251
  - lib/refinery/cart.rb
203
252
  - lib/refinery/cart_item.rb
204
253
  - lib/refinery/customers.rb
@@ -209,6 +258,7 @@ files:
209
258
  - lib/refinery/products/engine.rb
210
259
  - lib/refinery/store_gateway.rb
211
260
  - lib/refinery/stores.rb
261
+ - lib/refinery/stores/authenticated_system.rb
212
262
  - lib/refinery/stores/engine.rb
213
263
  - lib/refinerycms-stores.rb
214
264
  - lib/tasks/refinery/stores.rake
@@ -246,7 +296,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
246
296
  version: '0'
247
297
  segments:
248
298
  - 0
249
- hash: -228309859
299
+ hash: 662146076701638305
250
300
  required_rubygems_version: !ruby/object:Gem::Requirement
251
301
  none: false
252
302
  requirements:
@@ -255,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
305
  version: '0'
256
306
  requirements: []
257
307
  rubyforge_project:
258
- rubygems_version: 1.8.10
308
+ rubygems_version: 1.8.15
259
309
  signing_key:
260
310
  specification_version: 3
261
311
  summary: refinerycms shopping cart engine
@@ -1,17 +0,0 @@
1
- - content_for :header, t('pick_new_password_for', :scope => 'refinery.users.reset', :email => @refinery_user.email)
2
- = form_for resource, :as => resource_name, |
3
- :url => refinery.refinery_customers_customer_path, |
4
- :html => { :method => :put } do |f| |
5
- = render '/refinery/admin/error_messages', :object => @refinery_user, :include_object_name => true
6
- .field
7
- = f.label :password
8
- = f.password_field :password, :class => 'larger widest'
9
- .field
10
- = f.label :password_confirmation
11
- = f.password_field :password_confirmation, :class => 'larger widest'
12
- = render '/refinery/admin/form_actions', :f => f, |
13
- :continue_editing => false, |
14
- :submit_button_text => t('reset_password', :scope => 'refinery.users.reset'), |
15
- :cancel_url => refinery.new_refinery_user_session_path, |
16
- :cancel_title => nil, |
17
- :hide_delete => true |
@@ -1,25 +0,0 @@
1
- <ul>
2
- <% if ::Refinery::Orders::Admin::OrdersController.searchable? %>
3
- <li>
4
- <%= render '/refinery/admin/search', :url => refinery.orders_admin_orders_path %>
5
- </li>
6
- <% end %>
7
- <li>
8
- <%= link_to t('.create_new'), refinery.new_orders_admin_order_path,
9
- :class => "add_icon" %>
10
- </li>
11
- <% if !searching? && ::Refinery::Orders::Admin::OrdersController.sortable? && ::Refinery::Orders::Order.any? %>
12
- <li>
13
- <%= link_to t('.reorder', :what => "Orders"),
14
- refinery.orders_admin_orders_path,
15
- :id => "reorder_action",
16
- :class => "reorder_icon" %>
17
-
18
- <%= link_to t('.reorder_done', :what => "Orders"),
19
- refinery.orders_admin_orders_path,
20
- :id => "reorder_action_done",
21
- :style => "display: none;",
22
- :class => "reorder_icon" %>
23
- </li>
24
- <% end %>
25
- </ul>
@@ -1,122 +0,0 @@
1
- <%= form_for [refinery, :orders_admin, @order] do |f| -%>
2
- <%= render '/refinery/admin/error_messages',
3
- :object => @order,
4
- :include_object_name => true %>
5
-
6
-
7
- <div class='field'>
8
- <%= f.label :order_number -%>
9
- <%= f.number_field :order_number -%>
10
-
11
- </div>
12
-
13
- <div class='field'>
14
- <%= f.label :order_customer -%>
15
- <%= f.text_field :order_customer -%>
16
-
17
- </div>
18
-
19
- <div class='field'>
20
- <%= f.label :order_status -%>
21
- <%= f.text_field :order_status -%>
22
-
23
- </div>
24
-
25
- <div class='field'>
26
- <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
27
- <ul id='page_parts'>
28
- <% [:order_notes].each_with_index do |part, part_index| %>
29
- <li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
30
- <%= link_to t("#{part}", :scope => "activerecord.attributes.refinery/orders/order", :default => part.to_s.titleize), "##{part}" %>
31
- </li>
32
- <% end %>
33
- </ul>
34
- <div id='page_part_editors'>
35
- <% [:order_notes].each do |part| %>
36
- <div class='page_part' id='<%= part %>'>
37
- <%= f.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
38
- </div>
39
- <% end %>
40
- </div>
41
- </div>
42
-
43
- </div>
44
-
45
- <div class='field'>
46
- <%= f.label :shipping_type -%>
47
- <%= f.text_field :shipping_type -%>
48
-
49
- </div>
50
-
51
- <div class='field'>
52
- <%= f.label :shipped_on -%>
53
- <%= f.datetime_select :shipped_on -%>
54
-
55
- </div>
56
-
57
- <div class='field'>
58
- <%= f.label :product_total -%>
59
- <%= f.text_field :product_total -%>
60
-
61
- </div>
62
-
63
- <div class='field'>
64
- <%= f.label :shipping_charges -%>
65
- <%= f.text_field :shipping_charges -%>
66
-
67
- </div>
68
-
69
- <div class='field'>
70
- <%= f.label :tax_charges -%>
71
- <%= f.text_field :tax_charges -%>
72
-
73
- </div>
74
-
75
- <div class='field'>
76
- <%= f.label :cc_last4 -%>
77
- <%= f.text_field :cc_last4 -%>
78
-
79
- </div>
80
-
81
- <div class='field'>
82
- <%= f.label :cc_card_type -%>
83
- <%= f.text_field :cc_card_type -%>
84
-
85
- </div>
86
-
87
- <div class='field'>
88
- <%= f.label :cc_expiry_month -%>
89
- <%= f.number_field :cc_expiry_month -%>
90
-
91
- </div>
92
-
93
- <div class='field'>
94
- <%= f.label :cc_expiry_year -%>
95
- <%= f.number_field :cc_expiry_year -%>
96
-
97
- </div>
98
-
99
- <div class='field'>
100
- <%= f.label :cc_token -%>
101
- <%= f.text_field :cc_token -%>
102
-
103
- </div>
104
-
105
- <div class='field'>
106
- <%= f.label :cc_purchased_on -%>
107
- <%= f.datetime_select :cc_purchased_on -%>
108
-
109
- </div>
110
-
111
- <%= render '/refinery/admin/form_actions', :f => f,
112
- :continue_editing => false,
113
- :delete_title => t('delete', :scope => 'refinery.orders.admin.orders.order'),
114
- :delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @order.order_status) %>
115
- <% end -%>
116
- <% content_for :javascripts do %>
117
- <script>
118
- $(document).ready(function(){
119
- page_options.init(false, '', '');
120
- });
121
- </script>
122
- <% end %>