caboose-cms 0.4.151 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +8 -8
  2. data/app/assets/javascripts/caboose/admin_products.js +79 -0
  3. data/app/assets/javascripts/caboose/application.js +2 -1
  4. data/app/assets/javascripts/caboose/cart.js +168 -0
  5. data/app/assets/javascripts/caboose/checkout.js +151 -0
  6. data/app/assets/javascripts/caboose/checkout_module.js +312 -0
  7. data/app/assets/javascripts/caboose/checkout_step1.js +179 -0
  8. data/app/assets/javascripts/caboose/checkout_step2.js +39 -0
  9. data/app/assets/javascripts/caboose/checkout_step3.js +34 -0
  10. data/app/assets/javascripts/caboose/checkout_step4.js +97 -0
  11. data/app/assets/javascripts/caboose/main.js +99 -8
  12. data/app/assets/javascripts/caboose/product.js +284 -0
  13. data/app/assets/stylesheets/caboose/admin_products.css +86 -0
  14. data/app/assets/templates/caboose/cart/add_to_cart.jst.ejs +7 -0
  15. data/app/assets/templates/caboose/cart/line_items.jst.ejs +41 -0
  16. data/app/assets/templates/caboose/checkout/address.jst.ejs +53 -0
  17. data/app/assets/templates/caboose/checkout/forms/guest.jst.ejs +8 -0
  18. data/app/assets/templates/caboose/checkout/forms/register.jst.ejs +11 -0
  19. data/app/assets/templates/caboose/checkout/forms/signin.jst.ejs +7 -0
  20. data/app/assets/templates/caboose/checkout/line_items.jst.ejs +31 -0
  21. data/app/assets/templates/caboose/checkout/login.jst.ejs +21 -0
  22. data/app/assets/templates/caboose/checkout/payment.jst.ejs +5 -0
  23. data/app/assets/templates/caboose/checkout/shipping.jst.ejs +18 -0
  24. data/app/assets/templates/caboose/product/images.jst.ejs +8 -0
  25. data/app/assets/templates/caboose/product/options.jst.ejs +19 -0
  26. data/app/controllers/caboose/application_controller.rb +29 -1
  27. data/app/controllers/caboose/cart_controller.rb +52 -0
  28. data/app/controllers/caboose/categories_controller.rb +108 -0
  29. data/app/controllers/caboose/checkout_controller.rb +325 -0
  30. data/app/controllers/caboose/orders_controller.rb +439 -0
  31. data/app/controllers/caboose/product_images_controller.rb +38 -0
  32. data/app/controllers/caboose/products_controller.rb +737 -0
  33. data/app/controllers/caboose/reviews_controller.rb +15 -0
  34. data/app/controllers/caboose/variants_controller.rb +218 -0
  35. data/app/controllers/caboose/vendors_controller.rb +73 -0
  36. data/app/helpers/caboose/application_helper.rb +4 -0
  37. data/app/helpers/caboose/categories_helper.rb +82 -0
  38. data/app/helpers/caboose/checkout_helper.rb +20 -0
  39. data/app/helpers/caboose/products_helper.rb +8 -0
  40. data/app/mailers/caboose/orders_mailer.rb +30 -0
  41. data/app/models/caboose/address.rb +26 -0
  42. data/app/models/caboose/category.rb +89 -0
  43. data/app/models/caboose/category_membership.rb +10 -0
  44. data/app/models/caboose/core_plugin.rb +15 -37
  45. data/app/models/caboose/customization_membership.rb +10 -0
  46. data/app/models/caboose/discount.rb +16 -0
  47. data/app/models/caboose/line_item.rb +81 -0
  48. data/app/models/caboose/message.rb +20 -0
  49. data/app/models/caboose/order.rb +191 -0
  50. data/app/models/caboose/order_discount.rb +10 -0
  51. data/app/models/caboose/order_pdf.rb +78 -0
  52. data/app/models/caboose/payment_processors/authorizenet.rb +53 -0
  53. data/app/models/caboose/payment_processors/base.rb +39 -0
  54. data/app/models/caboose/payment_processors/payscape.rb +94 -0
  55. data/app/models/caboose/product.rb +145 -0
  56. data/app/models/caboose/product_image.rb +62 -0
  57. data/app/models/caboose/product_image_variant.rb +10 -0
  58. data/app/models/caboose/review.rb +13 -0
  59. data/app/models/caboose/schema.rb +205 -1
  60. data/app/models/caboose/search_filter.rb +191 -0
  61. data/app/models/caboose/shipping_calculator.rb +81 -0
  62. data/app/models/caboose/states.rb +61 -52
  63. data/app/models/caboose/tax_calculator.rb +23 -0
  64. data/app/models/caboose/tax_line.rb +9 -0
  65. data/app/models/caboose/variant.rb +99 -0
  66. data/app/models/caboose/vendor.rb +22 -0
  67. data/app/views/caboose/cart/index.html.erb +8 -0
  68. data/app/views/caboose/categories/admin_edit.html.erb +79 -0
  69. data/app/views/caboose/categories/admin_index.html.erb +11 -0
  70. data/app/views/caboose/categories/admin_new.html.erb +62 -0
  71. data/app/views/caboose/checkout/_address_form.html.erb +111 -0
  72. data/app/views/caboose/checkout/_billing_form.html.erb +47 -0
  73. data/app/views/caboose/checkout/_cart.html.erb +52 -0
  74. data/app/views/caboose/checkout/_confirm.html.erb +61 -0
  75. data/app/views/caboose/checkout/_order_discount.html.erb +40 -0
  76. data/app/views/caboose/checkout/_shipping_address.html.erb +10 -0
  77. data/app/views/caboose/checkout/_shipping_method.html.erb +2 -0
  78. data/app/views/caboose/checkout/_shipping_method_form.html.erb +21 -0
  79. data/app/views/caboose/checkout/billing.html.erb +11 -0
  80. data/app/views/caboose/checkout/discount.html.erb +11 -0
  81. data/app/views/caboose/checkout/empty.html.erb +2 -0
  82. data/app/views/caboose/checkout/error.html.erb +2 -0
  83. data/app/views/caboose/checkout/index.html.erb +43 -0
  84. data/app/views/caboose/checkout/login.html.erb +2 -0
  85. data/app/views/caboose/checkout/payment.html.erb +79 -0
  86. data/app/views/caboose/checkout/relay.html.erb +23 -0
  87. data/app/views/caboose/checkout/relay_old.html.erb +12 -0
  88. data/app/views/caboose/checkout/relay_postMessage.html.erb +19 -0
  89. data/app/views/caboose/checkout/shipping.html.erb +15 -0
  90. data/app/views/caboose/checkout/step_four.html.erb +93 -0
  91. data/app/views/caboose/checkout/step_one.html.erb +56 -0
  92. data/app/views/caboose/checkout/step_one_old.html.erb +13 -0
  93. data/app/views/caboose/checkout/step_three.html.erb +23 -0
  94. data/app/views/caboose/checkout/step_two.html.erb +52 -0
  95. data/app/views/caboose/checkout/step_two_old.html.erb +14 -0
  96. data/app/views/caboose/checkout/thanks.html.erb +5 -0
  97. data/app/views/caboose/orders/_admin_footer.html.erb +2 -0
  98. data/app/views/caboose/orders/_admin_header.html.erb +31 -0
  99. data/app/views/caboose/orders/_quickbooks_order.html.erb +0 -0
  100. data/app/views/caboose/orders/admin_delete_form.html.erb +21 -0
  101. data/app/views/caboose/orders/admin_edit.html.erb +271 -0
  102. data/app/views/caboose/orders/admin_index.html.erb +89 -0
  103. data/app/views/caboose/orders/admin_new.html.erb +42 -0
  104. data/app/views/caboose/orders/admin_print.html.erb +72 -0
  105. data/app/views/caboose/orders_mailer/customer_new_order.html.erb +1 -0
  106. data/app/views/caboose/orders_mailer/customer_status_updated.html.erb +1 -0
  107. data/app/views/caboose/orders_mailer/fulfillment_new_order.html.erb +1 -0
  108. data/app/views/caboose/orders_mailer/shipping_order_ready.html.erb +1 -0
  109. data/app/views/caboose/products/_admin_footer.html.erb +2 -0
  110. data/app/views/caboose/products/_admin_header.html.erb +32 -0
  111. data/app/views/caboose/products/_sort_options.html.erb +19 -0
  112. data/app/views/caboose/products/admin_add_upcs.html.erb +58 -0
  113. data/app/views/caboose/products/admin_delete_form.html.erb +21 -0
  114. data/app/views/caboose/products/admin_edit_categories.html.erb +73 -0
  115. data/app/views/caboose/products/admin_edit_category_images.html.erb +233 -0
  116. data/app/views/caboose/products/admin_edit_description.html.erb +38 -0
  117. data/app/views/caboose/products/admin_edit_general.html.erb +104 -0
  118. data/app/views/caboose/products/admin_edit_images.html.erb +236 -0
  119. data/app/views/caboose/products/admin_edit_options.html.erb +51 -0
  120. data/app/views/caboose/products/admin_edit_seo.html.erb +37 -0
  121. data/app/views/caboose/products/admin_edit_variant_columns.html.erb +75 -0
  122. data/app/views/caboose/products/admin_edit_variant_sort_order.html.erb +63 -0
  123. data/app/views/caboose/products/admin_edit_variants.html.erb +171 -0
  124. data/app/views/caboose/products/admin_edit_variants_single.html.erb +68 -0
  125. data/app/views/caboose/products/admin_group_variants.html.erb +433 -0
  126. data/app/views/caboose/products/admin_index.html.erb +95 -0
  127. data/app/views/caboose/products/admin_new.html.erb +41 -0
  128. data/app/views/caboose/products/admin_sort.html copy.erb +155 -0
  129. data/app/views/caboose/products/admin_sort.html.erb +254 -0
  130. data/app/views/caboose/products/details.html.erb +438 -0
  131. data/app/views/caboose/products/index.html.erb +46 -0
  132. data/app/views/caboose/products/not_available.html.erb +35 -0
  133. data/app/views/caboose/variants/admin_edit.html.erb +82 -0
  134. data/app/views/caboose/variants/admin_group.html.erb +184 -0
  135. data/app/views/caboose/variants/admin_new.html.erb +59 -0
  136. data/app/views/caboose/vendors/admin_edit.html.erb +24 -0
  137. data/app/views/caboose/vendors/admin_index.html.erb +30 -0
  138. data/app/views/caboose/vendors/admin_new.html.erb +34 -0
  139. data/app/views/layouts/caboose/store/_banner.html.erb +10 -0
  140. data/app/views/layouts/caboose/store/_banner2.html.erb +10 -0
  141. data/app/views/layouts/caboose/store/_footer.html.erb +55 -0
  142. data/app/views/layouts/caboose/store/_header.html.erb +69 -0
  143. data/app/views/layouts/caboose/store/_sidebar.html.erb +27 -0
  144. data/app/views/layouts/caboose/store/application.html.erb +33 -0
  145. data/app/views/layouts/caboose/store/authorize_net.erb +18 -0
  146. data/app/views/layouts/caboose/store/layout_about.html.erb +42 -0
  147. data/app/views/layouts/caboose/store/layout_blog.html.erb +159 -0
  148. data/app/views/layouts/caboose/store/layout_confirm.html.erb +85 -0
  149. data/app/views/layouts/caboose/store/layout_contact.html.erb +38 -0
  150. data/app/views/layouts/caboose/store/layout_default.html.erb +10 -0
  151. data/app/views/layouts/caboose/store/layout_detail.html.erb +114 -0
  152. data/app/views/layouts/caboose/store/layout_order.html.erb +77 -0
  153. data/app/views/layouts/caboose/store/layout_pricing.html.erb +182 -0
  154. data/app/views/layouts/caboose/store/layout_product.html.erb +110 -0
  155. data/app/views/layouts/caboose/store/layout_profile.html.erb +55 -0
  156. data/app/views/layouts/caboose/store/layout_single.html.erb +3 -0
  157. data/app/views/layouts/caboose/store/layout_testimonial.html.erb +110 -0
  158. data/app/views/layouts/caboose/store/layout_testing.html.erb +4 -0
  159. data/config/routes.rb +126 -0
  160. data/lib/caboose.rb +46 -1
  161. data/lib/caboose/engine.rb +39 -1
  162. data/lib/caboose/version.rb +1 -1
  163. data/lib/tasks/caboose.rake +12 -0
  164. metadata +151 -4
  165. data/app/assets/javascripts/caboose/admin_page_edit_content_bak.js +0 -164
  166. data/app/assets/javascripts/caboose/model/#Untitled-1# +0 -2
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.151'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -162,4 +162,16 @@ namespace :assets do
162
162
 
163
163
  end
164
164
 
165
+ desc "Fix variant sort order"
166
+ task :set_variant_sort_order => :environment do
167
+ Caboose::Product.all.each do |p|
168
+ puts "Setting sort order for product #{p.id}..."
169
+ i = 1
170
+ Caboose::Variant.where(:product_id => p.id).reorder(:id).all.each do |v|
171
+ v.update_attribute('sort_order', i)
172
+ i = i + 1
173
+ end
174
+ end
175
+ end
176
+
165
177
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.151
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -196,9 +196,16 @@ files:
196
196
  - app/assets/javascripts/caboose/admin_block_edit.js
197
197
  - app/assets/javascripts/caboose/admin_images_index.js
198
198
  - app/assets/javascripts/caboose/admin_page_edit_content.js
199
- - app/assets/javascripts/caboose/admin_page_edit_content_bak.js
200
199
  - app/assets/javascripts/caboose/admin_page_new_blocks.js
200
+ - app/assets/javascripts/caboose/admin_products.js
201
201
  - app/assets/javascripts/caboose/application.js
202
+ - app/assets/javascripts/caboose/cart.js
203
+ - app/assets/javascripts/caboose/checkout.js
204
+ - app/assets/javascripts/caboose/checkout_module.js
205
+ - app/assets/javascripts/caboose/checkout_step1.js
206
+ - app/assets/javascripts/caboose/checkout_step2.js
207
+ - app/assets/javascripts/caboose/checkout_step3.js
208
+ - app/assets/javascripts/caboose/checkout_step4.js
202
209
  - app/assets/javascripts/caboose/jquery.detect.js
203
210
  - app/assets/javascripts/caboose/jquery.fileupload.js
204
211
  - app/assets/javascripts/caboose/jquery.iframe-transport.js
@@ -207,7 +214,6 @@ files:
207
214
  - app/assets/javascripts/caboose/main.js
208
215
  - app/assets/javascripts/caboose/modal.js
209
216
  - app/assets/javascripts/caboose/modal_integration.js
210
- - app/assets/javascripts/caboose/model/#Untitled-1#
211
217
  - app/assets/javascripts/caboose/model/all.js
212
218
  - app/assets/javascripts/caboose/model/attribute.js
213
219
  - app/assets/javascripts/caboose/model/bound_checkbox.js
@@ -231,6 +237,7 @@ files:
231
237
  - app/assets/javascripts/caboose/model/s3.js
232
238
  - app/assets/javascripts/caboose/model.form.page.js
233
239
  - app/assets/javascripts/caboose/model.form.user.js
240
+ - app/assets/javascripts/caboose/product.js
234
241
  - app/assets/javascripts/caboose/s3upload.js
235
242
  - app/assets/javascripts/caboose/shortcut.js
236
243
  - app/assets/javascripts/caboose/station.js
@@ -241,6 +248,7 @@ files:
241
248
  - app/assets/stylesheets/caboose/admin_images_index.css.scss
242
249
  - app/assets/stylesheets/caboose/admin_main.css
243
250
  - app/assets/stylesheets/caboose/admin_page_edit_content.css
251
+ - app/assets/stylesheets/caboose/admin_products.css
244
252
  - app/assets/stylesheets/caboose/application.css
245
253
  - app/assets/stylesheets/caboose/bound_input.css
246
254
  - app/assets/stylesheets/caboose/caboose.css
@@ -261,7 +269,19 @@ files:
261
269
  - app/assets/stylesheets/caboose/station_modal.css
262
270
  - app/assets/stylesheets/caboose/station_sidebar.css
263
271
  - app/assets/stylesheets/caboose/tinymce.css
272
+ - app/assets/templates/caboose/cart/add_to_cart.jst.ejs
273
+ - app/assets/templates/caboose/cart/line_items.jst.ejs
274
+ - app/assets/templates/caboose/checkout/address.jst.ejs
275
+ - app/assets/templates/caboose/checkout/forms/guest.jst.ejs
276
+ - app/assets/templates/caboose/checkout/forms/register.jst.ejs
277
+ - app/assets/templates/caboose/checkout/forms/signin.jst.ejs
278
+ - app/assets/templates/caboose/checkout/line_items.jst.ejs
279
+ - app/assets/templates/caboose/checkout/login.jst.ejs
280
+ - app/assets/templates/caboose/checkout/payment.jst.ejs
281
+ - app/assets/templates/caboose/checkout/shipping.jst.ejs
264
282
  - app/assets/templates/caboose/messages/error.jst.ejs
283
+ - app/assets/templates/caboose/product/images.jst.ejs
284
+ - app/assets/templates/caboose/product/options.jst.ejs
265
285
  - app/controllers/caboose/ab_options_controller.rb
266
286
  - app/controllers/caboose/ab_variants_controller.rb
267
287
  - app/controllers/caboose/admin_controller.rb
@@ -272,6 +292,9 @@ files:
272
292
  - app/controllers/caboose/block_types_controller.rb
273
293
  - app/controllers/caboose/blocks_controller.rb
274
294
  - app/controllers/caboose/calendars_controller.rb
295
+ - app/controllers/caboose/cart_controller.rb
296
+ - app/controllers/caboose/categories_controller.rb
297
+ - app/controllers/caboose/checkout_controller.rb
275
298
  - app/controllers/caboose/domains_controller.rb
276
299
  - app/controllers/caboose/event_groups_controller.rb
277
300
  - app/controllers/caboose/events_controller.rb
@@ -280,26 +303,36 @@ files:
280
303
  - app/controllers/caboose/logout_controller.rb
281
304
  - app/controllers/caboose/media_categories_controller.rb
282
305
  - app/controllers/caboose/modal_controller.rb
306
+ - app/controllers/caboose/orders_controller.rb
283
307
  - app/controllers/caboose/page_permissions_controller.rb
284
308
  - app/controllers/caboose/pages_controller.rb
285
309
  - app/controllers/caboose/permissions_controller.rb
286
310
  - app/controllers/caboose/posts_controller.rb
311
+ - app/controllers/caboose/product_images_controller.rb
312
+ - app/controllers/caboose/products_controller.rb
287
313
  - app/controllers/caboose/redirects_controller.rb
288
314
  - app/controllers/caboose/register_controller.rb
315
+ - app/controllers/caboose/reviews_controller.rb
289
316
  - app/controllers/caboose/roles_controller.rb
290
317
  - app/controllers/caboose/settings_controller.rb
291
318
  - app/controllers/caboose/sites_controller.rb
292
319
  - app/controllers/caboose/station_controller.rb
293
320
  - app/controllers/caboose/users_controller.rb
321
+ - app/controllers/caboose/variants_controller.rb
322
+ - app/controllers/caboose/vendors_controller.rb
294
323
  - app/helpers/caboose/application_helper.rb
324
+ - app/helpers/caboose/categories_helper.rb
325
+ - app/helpers/caboose/checkout_helper.rb
295
326
  - app/helpers/caboose/pages_helper.rb
296
327
  - app/helpers/caboose/permissions_helper.rb
297
328
  - app/helpers/caboose/products_helper.rb
298
329
  - app/mailers/caboose/login_mailer.rb
330
+ - app/mailers/caboose/orders_mailer.rb
299
331
  - app/models/caboose/ab_option.rb
300
332
  - app/models/caboose/ab_testing.rb
301
333
  - app/models/caboose/ab_value.rb
302
334
  - app/models/caboose/ab_variant.rb
335
+ - app/models/caboose/address.rb
303
336
  - app/models/caboose/approval_request.rb
304
337
  - app/models/caboose/asset.rb
305
338
  - app/models/caboose/authenticator.rb
@@ -314,37 +347,59 @@ files:
314
347
  - app/models/caboose/calendar.rb
315
348
  - app/models/caboose/calendar_event.rb
316
349
  - app/models/caboose/calendar_event_group.rb
350
+ - app/models/caboose/category.rb
351
+ - app/models/caboose/category_membership.rb
317
352
  - app/models/caboose/core_plugin.rb
318
353
  - app/models/caboose/crumbtrail.rb
354
+ - app/models/caboose/customization_membership.rb
319
355
  - app/models/caboose/database_session.rb
356
+ - app/models/caboose/discount.rb
320
357
  - app/models/caboose/domain.rb
358
+ - app/models/caboose/line_item.rb
321
359
  - app/models/caboose/media_category.rb
322
360
  - app/models/caboose/media_file.rb
323
361
  - app/models/caboose/media_image.rb
324
362
  - app/models/caboose/menu_block.rb
363
+ - app/models/caboose/message.rb
364
+ - app/models/caboose/order.rb
365
+ - app/models/caboose/order_discount.rb
366
+ - app/models/caboose/order_pdf.rb
325
367
  - app/models/caboose/page.rb
326
368
  - app/models/caboose/page_bar_generator.rb
327
369
  - app/models/caboose/page_permission.rb
328
370
  - app/models/caboose/page_tag.rb
329
371
  - app/models/caboose/pager.rb
372
+ - app/models/caboose/payment_processors/authorizenet.rb
373
+ - app/models/caboose/payment_processors/base.rb
374
+ - app/models/caboose/payment_processors/payscape.rb
330
375
  - app/models/caboose/permanent_redirect.rb
331
376
  - app/models/caboose/permission.rb
332
377
  - app/models/caboose/post.rb
333
378
  - app/models/caboose/post_category.rb
334
379
  - app/models/caboose/post_category_membership.rb
380
+ - app/models/caboose/product.rb
381
+ - app/models/caboose/product_image.rb
382
+ - app/models/caboose/product_image_variant.rb
383
+ - app/models/caboose/review.rb
335
384
  - app/models/caboose/rich_text_block_parser.rb
336
385
  - app/models/caboose/role.rb
337
386
  - app/models/caboose/role_membership.rb
338
387
  - app/models/caboose/role_permission.rb
339
388
  - app/models/caboose/schema.rb
389
+ - app/models/caboose/search_filter.rb
340
390
  - app/models/caboose/setting.rb
391
+ - app/models/caboose/shipping_calculator.rb
341
392
  - app/models/caboose/site.rb
342
393
  - app/models/caboose/site_membership.rb
343
394
  - app/models/caboose/smtp_config.rb
344
395
  - app/models/caboose/states.rb
345
396
  - app/models/caboose/std_class.rb
397
+ - app/models/caboose/tax_calculator.rb
398
+ - app/models/caboose/tax_line.rb
346
399
  - app/models/caboose/user.rb
347
400
  - app/models/caboose/utilities/schema.rb
401
+ - app/models/caboose/variant.rb
402
+ - app/models/caboose/vendor.rb
348
403
  - app/views/caboose/ab_variants/admin_edit.html.erb
349
404
  - app/views/caboose/ab_variants/admin_index.html.erb
350
405
  - app/views/caboose/ab_variants/admin_new.html.erb
@@ -401,6 +456,36 @@ files:
401
456
  - app/views/caboose/blocks/admin_render_second_level.json.erb
402
457
  - app/views/caboose/calendars/admin_edit.html.erb
403
458
  - app/views/caboose/calendars/admin_index.html.erb
459
+ - app/views/caboose/cart/index.html.erb
460
+ - app/views/caboose/categories/admin_edit.html.erb
461
+ - app/views/caboose/categories/admin_index.html.erb
462
+ - app/views/caboose/categories/admin_new.html.erb
463
+ - app/views/caboose/checkout/_address_form.html.erb
464
+ - app/views/caboose/checkout/_billing_form.html.erb
465
+ - app/views/caboose/checkout/_cart.html.erb
466
+ - app/views/caboose/checkout/_confirm.html.erb
467
+ - app/views/caboose/checkout/_order_discount.html.erb
468
+ - app/views/caboose/checkout/_shipping_address.html.erb
469
+ - app/views/caboose/checkout/_shipping_method.html.erb
470
+ - app/views/caboose/checkout/_shipping_method_form.html.erb
471
+ - app/views/caboose/checkout/billing.html.erb
472
+ - app/views/caboose/checkout/discount.html.erb
473
+ - app/views/caboose/checkout/empty.html.erb
474
+ - app/views/caboose/checkout/error.html.erb
475
+ - app/views/caboose/checkout/index.html.erb
476
+ - app/views/caboose/checkout/login.html.erb
477
+ - app/views/caboose/checkout/payment.html.erb
478
+ - app/views/caboose/checkout/relay.html.erb
479
+ - app/views/caboose/checkout/relay_old.html.erb
480
+ - app/views/caboose/checkout/relay_postMessage.html.erb
481
+ - app/views/caboose/checkout/shipping.html.erb
482
+ - app/views/caboose/checkout/step_four.html.erb
483
+ - app/views/caboose/checkout/step_one.html.erb
484
+ - app/views/caboose/checkout/step_one_old.html.erb
485
+ - app/views/caboose/checkout/step_three.html.erb
486
+ - app/views/caboose/checkout/step_two.html.erb
487
+ - app/views/caboose/checkout/step_two_old.html.erb
488
+ - app/views/caboose/checkout/thanks.html.erb
404
489
  - app/views/caboose/events/admin_edit.html.erb
405
490
  - app/views/caboose/events/admin_index.html.erb
406
491
  - app/views/caboose/events/admin_new.html.erb
@@ -416,6 +501,18 @@ files:
416
501
  - app/views/caboose/login/reset_password_form.html.erb
417
502
  - app/views/caboose/login_mailer/forgot_password_email.html.erb
418
503
  - app/views/caboose/modal/index.html.erb
504
+ - app/views/caboose/orders/_admin_footer.html.erb
505
+ - app/views/caboose/orders/_admin_header.html.erb
506
+ - app/views/caboose/orders/_quickbooks_order.html.erb
507
+ - app/views/caboose/orders/admin_delete_form.html.erb
508
+ - app/views/caboose/orders/admin_edit.html.erb
509
+ - app/views/caboose/orders/admin_index.html.erb
510
+ - app/views/caboose/orders/admin_new.html.erb
511
+ - app/views/caboose/orders/admin_print.html.erb
512
+ - app/views/caboose/orders_mailer/customer_new_order.html.erb
513
+ - app/views/caboose/orders_mailer/customer_status_updated.html.erb
514
+ - app/views/caboose/orders_mailer/fulfillment_new_order.html.erb
515
+ - app/views/caboose/orders_mailer/shipping_order_ready.html.erb
419
516
  - app/views/caboose/pages/_admin_footer.html.erb
420
517
  - app/views/caboose/pages/_admin_header.html.erb
421
518
  - app/views/caboose/pages/_content.html.erb
@@ -449,6 +546,30 @@ files:
449
546
  - app/views/caboose/posts/admin_new.html.erb
450
547
  - app/views/caboose/posts/detail.html.erb
451
548
  - app/views/caboose/posts/index.html.erb
549
+ - app/views/caboose/products/_admin_footer.html.erb
550
+ - app/views/caboose/products/_admin_header.html.erb
551
+ - app/views/caboose/products/_sort_options.html.erb
552
+ - app/views/caboose/products/admin_add_upcs.html.erb
553
+ - app/views/caboose/products/admin_delete_form.html.erb
554
+ - app/views/caboose/products/admin_edit_categories.html.erb
555
+ - app/views/caboose/products/admin_edit_category_images.html.erb
556
+ - app/views/caboose/products/admin_edit_description.html.erb
557
+ - app/views/caboose/products/admin_edit_general.html.erb
558
+ - app/views/caboose/products/admin_edit_images.html.erb
559
+ - app/views/caboose/products/admin_edit_options.html.erb
560
+ - app/views/caboose/products/admin_edit_seo.html.erb
561
+ - app/views/caboose/products/admin_edit_variant_columns.html.erb
562
+ - app/views/caboose/products/admin_edit_variant_sort_order.html.erb
563
+ - app/views/caboose/products/admin_edit_variants.html.erb
564
+ - app/views/caboose/products/admin_edit_variants_single.html.erb
565
+ - app/views/caboose/products/admin_group_variants.html.erb
566
+ - app/views/caboose/products/admin_index.html.erb
567
+ - app/views/caboose/products/admin_new.html.erb
568
+ - app/views/caboose/products/admin_sort.html copy.erb
569
+ - app/views/caboose/products/admin_sort.html.erb
570
+ - app/views/caboose/products/details.html.erb
571
+ - app/views/caboose/products/index.html.erb
572
+ - app/views/caboose/products/not_available.html.erb
452
573
  - app/views/caboose/redirects/admin_edit.html.erb
453
574
  - app/views/caboose/redirects/admin_index.html.erb
454
575
  - app/views/caboose/redirects/admin_new.html.erb
@@ -470,6 +591,12 @@ files:
470
591
  - app/views/caboose/users/my_account.html.erb
471
592
  - app/views/caboose/users/new.html.erb
472
593
  - app/views/caboose/users/update_pic.html.erb
594
+ - app/views/caboose/variants/admin_edit.html.erb
595
+ - app/views/caboose/variants/admin_group.html.erb
596
+ - app/views/caboose/variants/admin_new.html.erb
597
+ - app/views/caboose/vendors/admin_edit.html.erb
598
+ - app/views/caboose/vendors/admin_index.html.erb
599
+ - app/views/caboose/vendors/admin_new.html.erb
473
600
  - app/views/layouts/caboose/_content.html.erb
474
601
  - app/views/layouts/caboose/_station.html.erb
475
602
  - app/views/layouts/caboose/_station_link.html.erb
@@ -479,6 +606,26 @@ files:
479
606
  - app/views/layouts/caboose/empty.html.erb
480
607
  - app/views/layouts/caboose/error404.html.erb
481
608
  - app/views/layouts/caboose/modal.html.erb
609
+ - app/views/layouts/caboose/store/_banner.html.erb
610
+ - app/views/layouts/caboose/store/_banner2.html.erb
611
+ - app/views/layouts/caboose/store/_footer.html.erb
612
+ - app/views/layouts/caboose/store/_header.html.erb
613
+ - app/views/layouts/caboose/store/_sidebar.html.erb
614
+ - app/views/layouts/caboose/store/application.html.erb
615
+ - app/views/layouts/caboose/store/authorize_net.erb
616
+ - app/views/layouts/caboose/store/layout_about.html.erb
617
+ - app/views/layouts/caboose/store/layout_blog.html.erb
618
+ - app/views/layouts/caboose/store/layout_confirm.html.erb
619
+ - app/views/layouts/caboose/store/layout_contact.html.erb
620
+ - app/views/layouts/caboose/store/layout_default.html.erb
621
+ - app/views/layouts/caboose/store/layout_detail.html.erb
622
+ - app/views/layouts/caboose/store/layout_order.html.erb
623
+ - app/views/layouts/caboose/store/layout_pricing.html.erb
624
+ - app/views/layouts/caboose/store/layout_product.html.erb
625
+ - app/views/layouts/caboose/store/layout_profile.html.erb
626
+ - app/views/layouts/caboose/store/layout_single.html.erb
627
+ - app/views/layouts/caboose/store/layout_testimonial.html.erb
628
+ - app/views/layouts/caboose/store/layout_testing.html.erb
482
629
  - bin/caboose
483
630
  - config/routes.rb
484
631
  - config/tinymce.yml
@@ -1,164 +0,0 @@
1
-
2
- var PageContentController = function(page_id) { this.init(page_id); };
3
-
4
- PageContentController.prototype = {
5
-
6
- page_id: false,
7
- new_block_type_id: false,
8
-
9
- init: function(page_id)
10
- {
11
- this.page_id = page_id;
12
- var that = this;
13
- //this.render_blocks(function() {
14
- // that.sortable_blocks();
15
- // that.draggable_blocks();
16
- //});
17
- },
18
-
19
- sortable_blocks: function()
20
- {
21
- var that = this;
22
- $('#blocks').sortable({
23
- //hoverClass: "ui-state-active",
24
- placeholder: 'sortable-placeholder',
25
- forcePlaceholderSize: true,
26
- handle: '.sort_handle',
27
- receive: function(e, ui) {
28
- that.new_block_type_id = ui.item.attr('id').replace('new_block_', '');
29
- },
30
- update: function(e, ui) {
31
- if (that.new_block_type_id)
32
- {
33
- $.ajax({
34
- url: '/admin/pages/' + that.page_id + '/blocks',
35
- type: 'post',
36
- data: { block_type_id: that.new_block_type_id, index: ui.item.index() },
37
- success: function(resp) { that.render_blocks(function() { that.edit_block(resp.block.id); }); }
38
- });
39
- that.new_block_type_id = false;
40
- }
41
- else
42
- {
43
- $.ajax({
44
- url: '/admin/pages/' + that.page_id + '/block-order',
45
- type: 'put',
46
- data: $('#blocks').sortable('serialize', { key: "block_ids[]" }),
47
- success: function(resp) {}
48
- });
49
- }
50
- }
51
- });
52
- },
53
-
54
- draggable_blocks: function()
55
- {
56
- $('#new_blocks li').draggable({
57
- dropOnEmpty: true,
58
- connectToSortable: "#blocks",
59
- helper: "clone",
60
- revert: "invalid"
61
- });
62
- },
63
-
64
- edit_block: function(block_id)
65
- {
66
- caboose_modal_url('/admin/pages/' + this.page_id + '/blocks/' + block_id + '/edit');
67
- },
68
-
69
- delete_block: function(block_id, confirm)
70
- {
71
- var that = this;
72
- if (!confirm)
73
- {
74
- var p = $('<p/>')
75
- .addClass('note warning')
76
- .append("Are you sure you want to delete the block? ")
77
- .append($('<input/>').attr('type', 'button').val('Yes').click(function() { that.delete_block(block_id, true); })).append(" ")
78
- .append($('<input/>').attr('type', 'button').val('No').click(function() { that.render_block(block_id); }));
79
- $('#block_container_' + block_id).attr('onclick','').unbind('click');
80
- $('#block_container_' + block_id).empty().append(p);
81
- return;
82
- }
83
- $.ajax({
84
- url: '/admin/pages/' + this.page_id + '/blocks/' + block_id,
85
- type: 'delete',
86
- success: function(resp) {
87
- that.render_blocks();
88
- }
89
- });
90
- },
91
-
92
- /*****************************************************************************
93
- Block Rendering
94
- *****************************************************************************/
95
-
96
- render_blocks: function(after)
97
- {
98
- $('#blocks').empty();
99
- var that = this;
100
- $.ajax({
101
- url: '/admin/pages/' + this.page_id + '/blocks/render?empty_text=[Empty, click to edit]',
102
- success: function(blocks) {
103
- if (blocks.length == 0)
104
- {
105
- $('#blocks').parent().append("<p>This page is empty. Please add a new block.</p>");
106
- }
107
- $(blocks).each(function(i,b) {
108
- $('#blocks')
109
- .append($('<li/>')
110
- .attr('id', 'block_container_' + b.id)
111
- //.append($('<a/>').attr('id', 'block_' + b.id + '_sort_handle' ).addClass('sort_handle' ).append($('<span/>').addClass('ui-icon ui-icon-arrow-2-n-s')))
112
- //.append($('<a/>').attr('id', 'block_' + b.id + '_delete_handle').addClass('delete_handle').append($('<span/>').addClass('ui-icon ui-icon-close')).click(function(e) { e.preventDefault(); that.delete_block(b.id); }))
113
- //.append($('<div/>').attr('id', 'block_' + b.id).addClass('block'))
114
- );
115
- });
116
- $(blocks).each(function(i,b) {
117
- that.render_block_html(b.id, b.html);
118
- });
119
- that.set_clickable();
120
- if (after) after();
121
- }
122
- });
123
- },
124
-
125
- render_block_html: function(block_id, html)
126
- {
127
- var that = this;
128
- $('#block_container_' + block_id).empty().html(html);
129
- },
130
-
131
- set_clickable: function()
132
- {
133
- var that = this;
134
- $.ajax({
135
- url: '/admin/pages/' + this.page_id + '/blocks/tree',
136
- success: function(blocks) {
137
- $(blocks).each(function(i,b) {
138
- that.set_clickable_helper(b);
139
- });
140
- }
141
- });
142
- },
143
-
144
- set_clickable_helper: function(b)
145
- {
146
- var that = this;
147
- if (!b.children || b.children.length == 0)
148
- {
149
- $('#block_' + b.id).attr('onclick','').unbind('click');
150
- $('#block_' + b.id).click(function(e) { that.edit_block(b.id); });
151
- }
152
- else
153
- {
154
- $.each(b.children, function(i, b2) {
155
- that.set_clickable_helper(b2);
156
- });
157
- }
158
- }
159
- };
160
-
161
- function toggle_blocks()
162
- {
163
- $('#new_blocks_container2').slideToggle();
164
- }