spree_core 0.60.6 → 0.70.RC1
Sign up to get free protection for your applications and to get access to all the features.
- data/{public → app/assets}/images/admin/bg/active-tab.png +0 -0
- data/{public → app/assets}/images/admin/bg/admin_tab_back.png +0 -0
- data/{public → app/assets}/images/admin/bg/admin_tab_selected_back.png +0 -0
- data/{public → app/assets}/images/admin/bg/content-back-blue.png +0 -0
- data/{public → app/assets}/images/admin/bg/content-back-green.png +0 -0
- data/{public → app/assets}/images/admin/bg/content-back.png +0 -0
- data/{public → app/assets}/images/admin/bg/flash-error.png +0 -0
- data/{public → app/assets}/images/admin/bg/flash-notice.png +0 -0
- data/{public → app/assets}/images/admin/bg/green-stripes.gif +0 -0
- data/{public → app/assets}/images/admin/bg/green-stripes.png +0 -0
- data/{public → app/assets}/images/admin/bg/grid_header_back.png +0 -0
- data/{public → app/assets}/images/admin/bg/grid_header_back_green.png +0 -0
- data/{public → app/assets}/images/admin/bg/header-bg.png +0 -0
- data/{public → app/assets}/images/admin/bg/header.png +0 -0
- data/{public → app/assets}/images/admin/bg/header_bg.jpg +0 -0
- data/{public → app/assets}/images/admin/bg/menu-current.png +0 -0
- data/{public → app/assets}/images/admin/bg/red-stripes.gif +0 -0
- data/{public → app/assets}/images/admin/bg/red-stripes.png +0 -0
- data/{public → app/assets}/images/admin/bg/spree_50.png +0 -0
- data/{public → app/assets}/images/admin/bg/subnav-divider.png +0 -0
- data/{public → app/assets}/images/admin/bg/subnav.png +0 -0
- data/{public → app/assets}/images/admin/bg/tab-back.png +0 -0
- data/{public → app/assets}/images/admin/buttons/blue/left_01.png +0 -0
- data/{public → app/assets}/images/admin/buttons/blue/right_01.png +0 -0
- data/{public → app/assets}/images/admin/buttons/drag-handle-green.png +0 -0
- data/{public → app/assets}/images/admin/buttons/green/left_01.png +0 -0
- data/{public → app/assets}/images/admin/buttons/green/right_01.png +0 -0
- data/{public → app/assets}/images/admin/buttons/left_01.png +0 -0
- data/{public → app/assets}/images/admin/buttons/left_01_small.png +0 -0
- data/{public → app/assets}/images/admin/buttons/orange/left_03.png +0 -0
- data/{public → app/assets}/images/admin/buttons/orange/right_03.png +0 -0
- data/{public → app/assets}/images/admin/buttons/right_01.png +0 -0
- data/{public → app/assets}/images/admin/buttons/right_01_small.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/1.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/10.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/2.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/3.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/4.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/5.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/6.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/7.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/8.png +0 -0
- data/{public → app/assets}/images/admin/icons/16x16/9.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/1.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/10.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/11.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/2.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/3.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/4.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/5.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/6.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/7.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/8.png +0 -0
- data/{public → app/assets}/images/admin/icons/32x32/9.png +0 -0
- data/{public → app/assets}/images/admin/icons/accept.png +0 -0
- data/{public → app/assets}/images/admin/icons/add.gif +0 -0
- data/{public → app/assets}/images/admin/icons/add.png +0 -0
- data/{public → app/assets}/images/admin/icons/arrow-down.gif +0 -0
- data/{public → app/assets}/images/admin/icons/cross.png +0 -0
- data/{public → app/assets}/images/admin/icons/delete.gif +0 -0
- data/{public → app/assets}/images/admin/icons/delete.png +0 -0
- data/{public → app/assets}/images/admin/icons/drag.gif +0 -0
- data/{public → app/assets}/images/admin/icons/edit.gif +0 -0
- data/{public → app/assets}/images/admin/icons/edit.png +0 -0
- data/{public → app/assets}/images/admin/icons/email.png +0 -0
- data/{public → app/assets}/images/admin/icons/error.png +0 -0
- data/{public → app/assets}/images/admin/icons/exclamation.png +0 -0
- data/{public → app/assets}/images/admin/icons/feed.png +0 -0
- data/{public → app/assets}/images/admin/icons/pdf.png +0 -0
- data/{public → app/assets}/images/admin/icons/reorder.gif +0 -0
- data/{public → app/assets}/images/admin/icons/search.gif +0 -0
- data/{public → app/assets}/images/admin/icons/send-email.png +0 -0
- data/{public → app/assets}/images/admin/icons/stop.png +0 -0
- data/app/assets/images/admin/icons/switch.png +0 -0
- data/{public → app/assets}/images/admin/icons/tick.png +0 -0
- data/{public → app/assets}/images/admin/icons/up.gif +0 -0
- data/{public → app/assets}/images/admin/icons/xls.png +0 -0
- data/{public/images → app/assets/images/admin}/progress.gif +0 -0
- data/{public/images → app/assets/images/creditcards}/amex_cid.gif +0 -0
- data/{public/images → app/assets/images/creditcards}/creditcard.gif +0 -0
- data/{public/images → app/assets/images/creditcards}/discover_cid.gif +0 -0
- data/{public/images → app/assets/images/creditcards}/master_cid.jpg +0 -0
- data/{public/images → app/assets/images/creditcards}/visa_cid.gif +0 -0
- data/{public → app/assets}/images/favicon.ico +0 -0
- data/{public/images → app/assets/images/icons}/add-to-cart.png +0 -0
- data/{public/images → app/assets/images/icons}/checkout.png +0 -0
- data/app/assets/images/icons/delete.png +0 -0
- data/{public/images → app/assets/images/icons}/update.png +0 -0
- data/app/assets/images/noimage/mini.png +0 -0
- data/app/assets/images/noimage/product.png +0 -0
- data/app/assets/images/noimage/small.png +0 -0
- data/{public → app/assets}/images/spinner.gif +0 -0
- data/{public → app/assets}/javascripts/admin/address_states.js +4 -4
- data/{public/javascripts/admin.js → app/assets/javascripts/admin/admin.js.erb} +90 -93
- data/app/assets/javascripts/admin/calculator.js +15 -0
- data/{public → app/assets}/javascripts/admin/checkouts/edit.js +13 -13
- data/app/assets/javascripts/admin/gateway.js +13 -0
- data/app/assets/javascripts/admin/images/index.js +10 -0
- data/app/assets/javascripts/admin/images/new.js +5 -0
- data/app/assets/javascripts/admin/nested-attribute.js +23 -0
- data/app/assets/javascripts/admin/orders/edit.js +15 -0
- data/app/assets/javascripts/admin/orders/edit_form.js +16 -0
- data/{public → app/assets}/javascripts/admin/payments/new.js +0 -0
- data/app/assets/javascripts/admin/products.js +23 -0
- data/app/assets/javascripts/admin/spree_core.js +10 -0
- data/app/assets/javascripts/admin/taxonomy.js +206 -0
- data/app/assets/javascripts/admin/underscore-min.js +26 -0
- data/app/assets/javascripts/admin/zone.js +44 -0
- data/app/assets/javascripts/store/cart.js +11 -0
- data/app/assets/javascripts/store/checkout.js +77 -0
- data/app/assets/javascripts/store/product.js +49 -0
- data/app/assets/javascripts/store/spree_core.js +6 -0
- data/{public/stylesheets/admin/admin-forms.css → app/assets/stylesheets/admin/admin-form.css.erb} +27 -16
- data/{public → app/assets}/stylesheets/admin/admin-reset.css +0 -0
- data/{public/stylesheets/admin/admin-tables.css → app/assets/stylesheets/admin/admin-tables.css.erb} +3 -2
- data/{public → app/assets}/stylesheets/admin/admin-typography.css +2 -2
- data/{public/stylesheets/admin/admin.css → app/assets/stylesheets/admin/admin.css.erb} +22 -46
- data/{public/stylesheets/admin/autocomplete.css → app/assets/stylesheets/admin/edit_checkouts.css} +6 -7
- data/{public → app/assets}/stylesheets/admin/grids.css +107 -107
- data/app/assets/stylesheets/admin/spree_core.css +16 -0
- data/{public → app/assets}/stylesheets/admin/token-input.css +0 -0
- data/app/assets/stylesheets/store/reset.css +175 -0
- data/app/assets/stylesheets/store/screen.css +122 -0
- data/app/assets/stylesheets/store/spree_core.css +5 -0
- data/app/controllers/admin/base_controller.rb +3 -32
- data/app/controllers/admin/general_settings_controller.rb +14 -15
- data/app/controllers/admin/line_items_controller.rb +1 -1
- data/app/controllers/admin/mail_methods_controller.rb +13 -0
- data/app/controllers/admin/option_types_controller.rb +1 -2
- data/app/controllers/admin/orders_controller.rb +9 -8
- data/app/controllers/admin/product_groups_controller.rb +1 -2
- data/app/controllers/admin/products_controller.rb +4 -6
- data/app/controllers/admin/prototypes_controller.rb +1 -0
- data/app/controllers/admin/resource_controller.rb +7 -1
- data/app/controllers/admin/shipments_controller.rb +1 -1
- data/app/controllers/admin/states_controller.rb +1 -1
- data/app/controllers/admin/tax_categories_controller.rb +6 -0
- data/app/controllers/admin/taxons_controller.rb +0 -9
- data/app/controllers/admin/users_controller.rb +9 -5
- data/app/controllers/admin/variants_controller.rb +22 -0
- data/app/controllers/admin/zones_controller.rb +1 -1
- data/app/controllers/checkout_controller.rb +6 -0
- data/app/controllers/content_controller.rb +1 -1
- data/app/controllers/home_controller.rb +10 -0
- data/app/controllers/orders_controller.rb +11 -7
- data/app/controllers/products_controller.rb +0 -1
- data/app/helpers/admin/base_helper.rb +4 -8
- data/app/helpers/admin/navigation_helper.rb +9 -2
- data/app/helpers/checkout_helper.rb +7 -3
- data/app/helpers/hook_helper.rb +5 -15
- data/app/helpers/products_helper.rb +4 -0
- data/app/helpers/spree/base_helper.rb +55 -12
- data/app/helpers/taxons_helper.rb +0 -16
- data/app/mailers/test_mailer.rb +10 -0
- data/app/models/activator.rb +27 -0
- data/app/models/adjustment.rb +32 -12
- data/app/models/app_configuration.rb +7 -6
- data/app/models/calculator/vat.rb +27 -43
- data/app/models/creditcard.rb +23 -34
- data/app/models/gateway.rb +1 -0
- data/app/models/image.rb +7 -2
- data/app/models/order.rb +30 -17
- data/app/models/payment.rb +5 -11
- data/app/models/payment_method.rb +0 -4
- data/app/models/payment_method/check.rb +0 -4
- data/app/models/product.rb +22 -9
- data/app/models/product_group.rb +4 -8
- data/app/models/product_scope.rb +1 -1
- data/app/models/shipment.rb +1 -6
- data/app/models/tax_category.rb +6 -0
- data/app/models/tax_rate.rb +10 -0
- data/app/models/taxon.rb +3 -3
- data/app/models/zone.rb +4 -4
- data/app/views/admin/adjustments/_adjustments_table.html.erb +3 -3
- data/app/views/admin/adjustments/edit.html.erb +1 -1
- data/app/views/admin/adjustments/new.html.erb +1 -1
- data/app/views/admin/configurations/index.html.erb +54 -56
- data/app/views/admin/general_settings/edit.html.erb +13 -38
- data/app/views/admin/general_settings/show.html.erb +13 -23
- data/app/views/admin/images/_form.html.erb +4 -4
- data/app/views/admin/images/edit.html.erb +4 -4
- data/app/views/admin/images/index.html.erb +7 -21
- data/app/views/admin/images/new.html.erb +8 -18
- data/app/views/admin/inventory_settings/edit.html.erb +3 -3
- data/app/views/admin/inventory_units/adjust.html.erb +2 -2
- data/app/views/admin/line_items/create.js.erb +4 -0
- data/app/views/admin/mail_methods/_form.html.erb +3 -6
- data/app/views/admin/mail_methods/edit.html.erb +3 -3
- data/app/views/admin/mail_methods/index.html.erb +17 -21
- data/app/views/admin/mail_methods/new.html.erb +3 -3
- data/app/views/admin/option_types/_available.html.erb +5 -4
- data/app/views/admin/option_types/_option_value_fields.html.erb +1 -1
- data/app/views/admin/option_types/_selected.html.erb +6 -6
- data/app/views/admin/option_types/edit.html.erb +4 -4
- data/app/views/admin/option_types/index.html.erb +6 -6
- data/app/views/admin/option_types/{new.erb → new.html.erb} +1 -1
- data/app/views/admin/option_types/new.js.erb +2 -0
- data/app/views/admin/option_types/selected.html.erb +1 -1
- data/app/views/admin/orders/_add_product.html.erb +4 -4
- data/app/views/admin/orders/_form.html.erb +31 -42
- data/app/views/admin/orders/_line_item.html.erb +10 -15
- data/app/views/admin/orders/_user_form.html.erb +11 -6
- data/app/views/admin/orders/edit.html.erb +12 -16
- data/app/views/admin/orders/history.html.erb +3 -3
- data/app/views/admin/orders/index.html.erb +33 -45
- data/app/views/admin/orders/new.html.erb +5 -6
- data/app/views/admin/orders/show.html.erb +7 -9
- data/app/views/admin/orders/user.html.erb +2 -7
- data/app/views/admin/payment_methods/_form.html.erb +8 -8
- data/app/views/admin/payment_methods/edit.html.erb +1 -1
- data/app/views/admin/payment_methods/index.html.erb +19 -28
- data/app/views/admin/payment_methods/new.html.erb +2 -2
- data/app/views/admin/payments/_form.html.erb +1 -1
- data/app/views/admin/payments/_list.html.erb +2 -2
- data/app/views/admin/payments/_transaction_list.html.erb +3 -3
- data/app/views/admin/payments/credit.html.erb +1 -1
- data/app/views/admin/payments/index.html.erb +1 -1
- data/app/views/admin/payments/new.html.erb +2 -2
- data/app/views/admin/payments/show.html.erb +1 -1
- data/app/views/admin/payments/source_forms/_gateway.html.erb +6 -6
- data/app/views/admin/payments/source_views/_gateway.html.erb +1 -1
- data/app/views/admin/product_groups/_preview.html.erb +8 -8
- data/app/views/admin/product_groups/_product_scope.html.erb +5 -5
- data/app/views/admin/product_groups/edit.html.erb +6 -9
- data/app/views/admin/product_groups/index.html.erb +6 -6
- data/app/views/admin/product_groups/new.html.erb +2 -2
- data/app/views/admin/product_groups/show.html.erb +4 -4
- data/app/views/admin/product_groups/update.js.erb +5 -1
- data/app/views/admin/product_properties/_product_property_fields.html.erb +1 -1
- data/app/views/admin/product_properties/index.html.erb +11 -11
- data/app/views/admin/products/_form.html.erb +75 -72
- data/app/views/admin/products/_option_types.html.erb +34 -34
- data/app/views/admin/products/_properties_form.erb +2 -2
- data/app/views/admin/products/edit.html.erb +2 -3
- data/app/views/admin/products/index.html.erb +25 -34
- data/app/views/admin/products/{new.erb → new.html.erb} +4 -5
- data/app/views/admin/products/new.js.erb +3 -0
- data/app/views/admin/properties/_form.html.erb +13 -10
- data/app/views/admin/properties/edit.html.erb +1 -1
- data/app/views/admin/properties/index.html.erb +5 -5
- data/app/views/admin/properties/{new.erb → new.html.erb} +2 -2
- data/app/views/admin/properties/new.js.erb +2 -0
- data/app/views/admin/prototypes/_form.html.erb +18 -18
- data/app/views/admin/prototypes/_prototypes.html.erb +22 -0
- data/app/views/admin/prototypes/available.js.erb +2 -0
- data/app/views/admin/prototypes/edit.html.erb +1 -1
- data/app/views/admin/prototypes/index.html.erb +6 -6
- data/app/views/admin/prototypes/{new.erb → new.html.erb} +2 -2
- data/app/views/admin/prototypes/new.js.erb +2 -0
- data/app/views/admin/reports/index.html.erb +2 -2
- data/app/views/admin/reports/sales_total.html.erb +1 -1
- data/app/views/admin/return_authorizations/_form.html.erb +2 -2
- data/app/views/admin/return_authorizations/edit.html.erb +4 -4
- data/app/views/admin/return_authorizations/index.html.erb +5 -5
- data/app/views/admin/return_authorizations/new.html.erb +2 -2
- data/app/views/admin/shared/_address.html.erb +1 -1
- data/app/views/admin/shared/_address_form.html.erb +3 -4
- data/app/views/admin/shared/_calculator_fields.html.erb +3 -3
- data/app/views/admin/shared/_configuration_menu.html.erb +13 -14
- data/app/views/admin/shared/_destroy.js.erb +1 -1
- data/app/views/admin/shared/_edit_resource_links.html.erb +1 -1
- data/app/views/admin/shared/_group_from_products_form.html.erb +1 -1
- data/app/views/admin/shared/_head.html.erb +26 -0
- data/app/views/admin/shared/_new_adjustment_button.html.erb +4 -4
- data/app/views/admin/shared/_new_resource_links.html.erb +1 -1
- data/app/views/admin/shared/_order_details.html.erb +0 -1
- data/app/views/admin/shared/_order_tabs.html.erb +42 -47
- data/app/views/admin/shared/_product_sub_menu.html.erb +6 -8
- data/app/views/admin/shared/_product_tabs.html.erb +19 -23
- data/app/views/admin/shared/_report_criteria.html.erb +2 -2
- data/app/views/admin/shared/_show_resource_links.html.erb +2 -2
- data/app/views/admin/shared/_tabs.html.erb +1 -1
- data/app/views/admin/shipments/_form.html.erb +37 -41
- data/app/views/admin/shipments/edit.html.erb +13 -15
- data/app/views/admin/shipments/index.html.erb +21 -30
- data/app/views/admin/shipments/new.html.erb +6 -6
- data/app/views/admin/shipping_categories/_form.html.erb +2 -2
- data/app/views/admin/shipping_categories/edit.html.erb +1 -1
- data/app/views/admin/shipping_categories/index.html.erb +5 -5
- data/app/views/admin/shipping_categories/new.html.erb +1 -1
- data/app/views/admin/shipping_methods/_form.html.erb +4 -5
- data/app/views/admin/shipping_methods/edit.html.erb +7 -7
- data/app/views/admin/shipping_methods/index.html.erb +13 -22
- data/app/views/admin/shipping_methods/new.html.erb +7 -7
- data/app/views/admin/states/_state_list.html.erb +6 -6
- data/app/views/admin/states/edit.html.erb +1 -1
- data/app/views/admin/states/index.html.erb +3 -3
- data/app/views/admin/states/{new.erb → new.html.erb} +1 -1
- data/app/views/admin/states/new.js.erb +2 -0
- data/app/views/admin/tax_categories/index.html.erb +7 -7
- data/app/views/admin/tax_categories/new.html.erb +1 -1
- data/app/views/admin/tax_rates/_form.html.erb +5 -5
- data/app/views/admin/tax_rates/edit.html.erb +1 -1
- data/app/views/admin/tax_rates/index.html.erb +5 -5
- data/app/views/admin/tax_rates/new.html.erb +1 -1
- data/app/views/admin/tax_settings/edit.html.erb +10 -4
- data/app/views/admin/tax_settings/show.html.erb +8 -4
- data/app/views/admin/taxonomies/_form.html.erb +2 -2
- data/app/views/admin/taxonomies/_js_head.html.erb +0 -1
- data/app/views/admin/taxonomies/_list.html.erb +3 -3
- data/app/views/admin/taxonomies/edit.erb +2 -2
- data/app/views/admin/taxonomies/index.html.erb +4 -4
- data/app/views/admin/taxonomies/new.html.erb +2 -2
- data/app/views/admin/taxons/_form.html.erb +2 -2
- data/app/views/admin/taxons/_taxon_table.html.erb +10 -10
- data/app/views/admin/taxons/available.js.erb +7 -14
- data/app/views/admin/taxons/edit.html.erb +2 -2
- data/app/views/admin/taxons/selected.html.erb +9 -9
- data/app/views/admin/trackers/_form.html.erb +7 -6
- data/app/views/admin/trackers/edit.html.erb +1 -1
- data/app/views/admin/trackers/index.html.erb +8 -13
- data/app/views/admin/trackers/new.html.erb +1 -1
- data/app/views/admin/users/_form.html.erb +13 -14
- data/app/views/admin/users/edit.html.erb +7 -7
- data/app/views/admin/users/index.html.erb +20 -34
- data/app/views/admin/users/new.html.erb +7 -7
- data/app/views/admin/users/show.html.erb +2 -2
- data/app/views/admin/variants/_form.html.erb +6 -6
- data/app/views/admin/variants/edit.html.erb +3 -3
- data/app/views/admin/variants/index.html.erb +6 -6
- data/app/views/admin/variants/new.html.erb +8 -0
- data/app/views/admin/variants/new.js.erb +2 -0
- data/app/views/admin/zones/_country_member.html.erb +1 -1
- data/app/views/admin/zones/_form.html.erb +1 -1
- data/app/views/admin/zones/_member_type.html.erb +2 -2
- data/app/views/admin/zones/_state_member.html.erb +2 -2
- data/app/views/admin/zones/_zone_member.html.erb +2 -2
- data/app/views/admin/zones/edit.html.erb +1 -1
- data/app/views/admin/zones/index.html.erb +8 -9
- data/app/views/admin/zones/new.html.erb +1 -1
- data/app/views/checkout/_address.html.erb +125 -134
- data/app/views/checkout/_confirm.html.erb +2 -2
- data/app/views/checkout/_delivery.html.erb +8 -4
- data/app/views/checkout/_payment.html.erb +7 -7
- data/app/views/checkout/_summary.html.erb +6 -5
- data/app/views/checkout/edit.html.erb +6 -8
- data/app/views/checkout/payment/_gateway.html.erb +5 -5
- data/app/views/checkout/registration.html.erb +3 -3
- data/app/views/content/cvv.html.erb +5 -5
- data/app/views/home/index.html.erb +10 -0
- data/app/views/layouts/admin.html.erb +16 -23
- data/app/views/layouts/spree_application.html.erb +30 -44
- data/app/views/orders/_form.html.erb +8 -10
- data/app/views/orders/_line_item.html.erb +17 -32
- data/app/views/orders/edit.html.erb +20 -18
- data/app/views/orders/show.html.erb +2 -2
- data/app/views/products/_cart_form.html.erb +42 -47
- data/app/views/products/_properties.html.erb +5 -4
- data/app/views/products/_taxons.html.erb +10 -12
- data/app/views/products/_thumbnails.html.erb +14 -35
- data/app/views/products/index.html.erb +6 -9
- data/app/views/products/show.html.erb +18 -23
- data/app/views/shared/_error_messages.html.erb +1 -1
- data/app/views/shared/_filters.html.erb +1 -1
- data/app/views/shared/_head.html.erb +3 -6
- data/app/views/shared/_nav_bar.html.erb +3 -2
- data/app/views/shared/_order_details.html.erb +31 -41
- data/app/views/shared/_products.html.erb +10 -16
- data/app/views/shared/_store_menu.html.erb +2 -2
- data/app/views/shared/_taxonomies.html.erb +3 -14
- data/app/views/taxons/_taxon.html.erb +1 -1
- data/app/views/taxons/show.html.erb +6 -6
- data/app/views/test_mailer/test_email.text.erb +4 -0
- data/config/initializers/deprecation_checker.rb +7 -0
- data/config/initializers/disable_paperclip_log.rb +2 -0
- data/config/initializers/form_builder.rb +0 -4
- data/config/initializers/sprockets_precompile_patch.rb +16 -0
- data/config/initializers/workarounds_for_ruby19.rb +1 -1
- data/config/locales/en.yml +55 -24
- data/config/routes.rb +9 -8
- data/db/default/roles.yml +1 -3
- data/db/migrate/20100419194457_fix_existing_coupon_credits.rb +9 -0
- data/db/migrate/20110329141434_create_activators.rb +21 -0
- data/db/migrate/20110418151136_eligible_for_adjustments.rb +9 -0
- data/db/seeds.rb +4 -2
- data/lib/custom_fixtures.rb +64 -3
- data/lib/generators/spree/dummy/dummy_generator.rb +105 -0
- data/lib/generators/spree/dummy/templates/cucumber/cucumber.rb +38 -0
- data/lib/generators/spree/dummy/templates/rails/application.rb +10 -0
- data/lib/generators/spree/dummy/templates/rails/boot.rb +6 -0
- data/lib/generators/spree/dummy/templates/rails/database.yml +30 -0
- data/lib/generators/spree/dummy/templates/rails/routes.rb +3 -0
- data/lib/generators/spree/sandbox/sandbox_generator.rb +27 -0
- data/lib/generators/spree/site/site_generator.rb +79 -0
- data/lib/generators/spree/site/templates/app/assets/javascripts/admin/all.js +16 -0
- data/lib/generators/spree/site/templates/app/assets/javascripts/store/all.js +16 -0
- data/lib/generators/spree/site/templates/app/assets/stylesheets/admin/all.css +17 -0
- data/lib/generators/spree/site/templates/app/assets/stylesheets/store/all.css +17 -0
- data/lib/scopes.rb +1 -1
- data/lib/spree/calculated_adjustments.rb +8 -3
- data/lib/spree/search/base.rb +1 -5
- data/lib/spree_base.rb +12 -0
- data/lib/spree_core.rb +9 -6
- data/lib/spree_core/ext/active_record.rb +1 -1
- data/lib/spree_core/preferences/model_hooks.rb +7 -3
- data/lib/spree_core/railtie.rb +19 -3
- data/lib/spree_core/testing_support/common_rake.rb +12 -0
- data/lib/spree_core/testing_support/factories/activator_factory.rb +6 -0
- data/lib/spree_core/testing_support/factories/adjustment_factory.rb +1 -0
- data/lib/spree_core/testing_support/factories/calculator_factory.rb +6 -0
- data/lib/spree_core/testing_support/factories/order_factory.rb +7 -6
- data/lib/spree_core/testing_support/factories/product_factory.rb +6 -0
- data/lib/spree_core/testing_support/factories/user_factory.rb +14 -10
- data/lib/spree_core/testing_support/factories/zone_factory.rb +1 -1
- data/lib/spree_core/theme_support.rb +0 -3
- data/lib/spree_core/theme_support/hook_listener.rb +112 -35
- data/lib/spree_core/version.rb +1 -1
- data/lib/subclass_registration.rb +21 -0
- data/lib/tasks/assets.rake +58 -0
- data/lib/tasks/core.rake +18 -11
- data/lib/tasks/install.rake +4 -12
- data/{public → vendor/assets}/images/datepicker/cal.gif +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_0073ea_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_666666_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_ff0084_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/{public → vendor/assets}/javascripts/jquery.alerts/images/help.gif +0 -0
- data/{public → vendor/assets}/javascripts/jquery.alerts/images/important.gif +0 -0
- data/{public → vendor/assets}/javascripts/jquery.alerts/images/info.gif +0 -0
- data/{public → vendor/assets}/javascripts/jquery.alerts/images/title.gif +0 -0
- data/{public → vendor/assets}/javascripts/jquery.alerts/jquery.alerts.css +0 -0
- data/{public → vendor/assets}/javascripts/jquery.alerts/jquery.alerts.js +0 -0
- data/{public → vendor/assets}/javascripts/jquery.alerts/jquery.alerts.spree.css +0 -0
- data/{public → vendor/assets}/javascripts/jquery.autocomplete.min.js +0 -0
- data/vendor/assets/javascripts/jquery.cookie.js +41 -0
- data/{public → vendor/assets}/javascripts/jquery.delayedobserver.js +0 -0
- data/{public/javascripts/jsTree → vendor/assets/javascripts/jquery.jstree}/jquery.jstree.js +4544 -3510
- data/{public/javascripts/jsTree → vendor/assets/javascripts/jquery.jstree}/themes/apple/bg.jpg +0 -0
- data/{public/javascripts/jsTree → vendor/assets/javascripts/jquery.jstree}/themes/apple/d.png +0 -0
- data/{public/javascripts/jsTree → vendor/assets/javascripts/jquery.jstree}/themes/apple/dot_for_ie.gif +0 -0
- data/{public/javascripts/jsTree → vendor/assets/javascripts/jquery.jstree}/themes/apple/style.css +2 -1
- data/{public/javascripts/jsTree → vendor/assets/javascripts/jquery.jstree}/themes/apple/throbber.gif +0 -0
- data/vendor/assets/javascripts/jquery.tokeninput.js +860 -0
- data/vendor/assets/javascripts/jquery.validate/additional-methods.min.js +28 -0
- data/vendor/assets/javascripts/jquery.validate/jquery.validate.min.js +51 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ar.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_bg.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ca.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cn.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_cs.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_da.js +20 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_de.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_el.js +24 -0
- data/{public/javascripts → vendor/assets/javascripts/jquery.validate}/localization/messages_es.js +22 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fa.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fi.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_fr.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ge.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_he.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_hu.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_it.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ja.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_kk.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lt.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_lv.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_nl.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_no.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_pl.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +30 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +23 -0
- data/{public/javascripts → vendor/assets/javascripts/jquery.validate}/localization/messages_ro.js +22 -23
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ru.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_se.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_si.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sk.js +21 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_sr.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_th.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tr.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_tw.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_ua.js +24 -0
- data/vendor/assets/javascripts/jquery.validate/localization/messages_vi.js +23 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_de.js +12 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_nl.js +9 -0
- data/vendor/assets/javascripts/jquery.validate/localization/methods_pt.js +9 -0
- data/vendor/assets/stylesheets/jquery-ui.datepicker.css.erb +357 -0
- metadata +358 -462
- data/app/models/spree/alert.rb +0 -13
- data/app/stylesheets/_buttons.less +0 -80
- data/app/stylesheets/_cart.less +0 -24
- data/app/stylesheets/_checkout.less +0 -76
- data/app/stylesheets/_checkout_progress.less +0 -62
- data/app/stylesheets/_colors.less +0 -16
- data/app/stylesheets/_forms.less +0 -50
- data/app/stylesheets/_layout.less +0 -77
- data/app/stylesheets/_messages.less +0 -32
- data/app/stylesheets/_mixins.less +0 -71
- data/app/stylesheets/_navigation.less +0 -130
- data/app/stylesheets/_prices.less +0 -18
- data/app/stylesheets/_product_details.less +0 -56
- data/app/stylesheets/_product_lists.less +0 -66
- data/app/stylesheets/_registration.less +0 -24
- data/app/stylesheets/_reset.less +0 -69
- data/app/stylesheets/_typography.less +0 -158
- data/app/stylesheets/screen.less +0 -13
- data/app/views/admin/extensions/index.html.erb +0 -23
- data/app/views/admin/product_scopes/_form.html.erb +0 -106
- data/app/views/admin/prototypes/available.html.erb +0 -22
- data/app/views/admin/shared/_alert.html.erb +0 -6
- data/app/views/admin/variants/new.erb +0 -11
- data/app/views/shared/_additional_field.html.erb +0 -7
- data/app/views/shared/_admin_head.html.erb +0 -34
- data/app/views/shared/_basic_layout.html.erb +0 -44
- data/app/views/shared/_edit_resource_links.html.erb +0 -1
- data/app/views/shared/_footer.html.erb +0 -13
- data/app/views/shared/_method_error_message.html.erb +0 -4
- data/app/views/shared/_new_resource_links.html.erb +0 -1
- data/app/views/shared/_show_resource_links.html.erb +0 -3
- data/app/views/shared/_test_hook.html.erb +0 -1
- data/config/initializers/load_unobtrusive_date_picker.rb +0 -8
- data/db/migrate/20101026184833_migrate_adjustments.rb +0 -9
- data/lib/generators/spree_core/upgrade_generator.rb +0 -23
- data/lib/generators/templates/config/initializers/%file_name%.rb.tt +0 -1
- data/lib/generators/templates/config/locales/%current_locale%.yml.tt +0 -2
- data/lib/generators/templates/config/routes.rb +0 -3
- data/lib/spree_core/theme_support/hook.rb +0 -51
- data/lib/spree_core/theme_support/hook_modifier.rb +0 -35
- data/lib/spree_core/theme_support/more_patches.rb +0 -118
- data/lib/tasks/common.rb +0 -30
- data/lib/tasks/themes.rake +0 -34
- data/public/images/admin/tabs/off-left.png +0 -0
- data/public/images/admin/tabs/off-right.png +0 -0
- data/public/images/admin/tabs/on-left.png +0 -0
- data/public/images/admin/tabs/on-right.png +0 -0
- data/public/images/ajax_loader.gif +0 -0
- data/public/images/bg-button-hover.png +0 -0
- data/public/images/bg-button-pressed.png +0 -0
- data/public/images/bg-button.gif +0 -0
- data/public/images/bg-button.png +0 -0
- data/public/images/blue/left_01.png +0 -0
- data/public/images/blue/right_01.png +0 -0
- data/public/images/body-back.png +0 -0
- data/public/images/bottom_shine.png +0 -0
- data/public/images/breadcrumb.gif +0 -0
- data/public/images/button-dark-hover.png +0 -0
- data/public/images/button-dark.png +0 -0
- data/public/images/buttons/bg-button-hover.png +0 -0
- data/public/images/buttons/bg-button-pressed.png +0 -0
- data/public/images/buttons/bg-button.gif +0 -0
- data/public/images/buttons/bg-button.png +0 -0
- data/public/images/buttons/blue/left_01.png +0 -0
- data/public/images/buttons/blue/right_01.png +0 -0
- data/public/images/buttons/button-dark-hover.png +0 -0
- data/public/images/buttons/button-dark.png +0 -0
- data/public/images/buttons/drag-handle-green.png +0 -0
- data/public/images/buttons/green/left_01.png +0 -0
- data/public/images/buttons/green/right_01.png +0 -0
- data/public/images/buttons/left_01.png +0 -0
- data/public/images/buttons/left_01_small.png +0 -0
- data/public/images/buttons/orange/left_03.png +0 -0
- data/public/images/buttons/orange/right_03.png +0 -0
- data/public/images/buttons/right_01.png +0 -0
- data/public/images/buttons/right_01_small.png +0 -0
- data/public/images/buttons/sxsw-ribbon-v1.png +0 -0
- data/public/images/buttons/top-shine.png +0 -0
- data/public/images/calendar_date_select/calendar.gif +0 -0
- data/public/images/cart-empty.png +0 -0
- data/public/images/cart-empty_x32.png +0 -0
- data/public/images/cart-full.png +0 -0
- data/public/images/cart-full_x32.png +0 -0
- data/public/images/datepicker/backstripes.gif +0 -0
- data/public/images/datepicker/bg_header.jpg +0 -0
- data/public/images/datepicker/bullet1.gif +0 -0
- data/public/images/datepicker/bullet2.gif +0 -0
- data/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/public/images/drag-handle-green.png +0 -0
- data/public/images/green/left_01.png +0 -0
- data/public/images/green/right_01.png +0 -0
- data/public/images/grid.png +0 -0
- data/public/images/left_01.png +0 -0
- data/public/images/left_01_small.png +0 -0
- data/public/images/menu-current.png +0 -0
- data/public/images/menu-hover.png +0 -0
- data/public/images/noimage/mini.jpg +0 -0
- data/public/images/noimage/product.jpg +0 -0
- data/public/images/noimage/small.jpg +0 -0
- data/public/images/openid-inputicon.gif +0 -0
- data/public/images/orange/left_03.png +0 -0
- data/public/images/orange/right_03.png +0 -0
- data/public/images/reorder.jpg +0 -0
- data/public/images/right_01.png +0 -0
- data/public/images/right_01_small.png +0 -0
- data/public/images/separator.png +0 -0
- data/public/images/shadow-top.png +0 -0
- data/public/images/shadow_top.png +0 -0
- data/public/images/spree.jpg +0 -0
- data/public/images/spree/progress.gif +0 -0
- data/public/images/spree/spinner.gif +0 -0
- data/public/images/spree/spree.jpg +0 -0
- data/public/images/step-progress/completed-completed.gif +0 -0
- data/public/images/step-progress/completed-current.gif +0 -0
- data/public/images/step-progress/completed-first.gif +0 -0
- data/public/images/step-progress/current-first.gif +0 -0
- data/public/images/step-progress/current-incomplete.gif +0 -0
- data/public/images/step-progress/current-right.gif +0 -0
- data/public/images/step-progress/incomplete-incomplete.gif +0 -0
- data/public/images/step-progress/incomplete-right.gif +0 -0
- data/public/images/steps/1.png +0 -0
- data/public/images/steps/1_small.png +0 -0
- data/public/images/steps/2.png +0 -0
- data/public/images/steps/2_small.png +0 -0
- data/public/images/steps/3.png +0 -0
- data/public/images/steps/3_small.png +0 -0
- data/public/images/steps/4.png +0 -0
- data/public/images/steps/4_small.png +0 -0
- data/public/images/steps/5.png +0 -0
- data/public/images/steps/5_small.png +0 -0
- data/public/images/steps/6.png +0 -0
- data/public/images/steps/6_small.png +0 -0
- data/public/images/sxsw-ribbon-v1.png +0 -0
- data/public/images/tab_bottom.gif +0 -0
- data/public/images/tile-header.png +0 -0
- data/public/images/tile-slider.png +0 -0
- data/public/images/top-shine.png +0 -0
- data/public/images/tree-nav-icons/bullet.gif +0 -0
- data/public/images/tree-nav-icons/minus.gif +0 -0
- data/public/images/tree-nav-icons/plus.gif +0 -0
- data/public/images/tree-nav-icons/treeview-loading.gif +0 -0
- data/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
- data/public/images/wrapper-back-2.png +0 -0
- data/public/images/wrapper-back.png +0 -0
- data/public/images/yui-menubaritem_submenuindicator.png +0 -0
- data/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
- data/public/images/yui-menuitem_checkbox.png +0 -0
- data/public/images/yui-menuitem_checkbox_disabled.png +0 -0
- data/public/images/yui-menuitem_submenuindicator.png +0 -0
- data/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
- data/public/images/yui-sprite.png +0 -0
- data/public/javascripts/additional-methods.js +0 -236
- data/public/javascripts/admin/orders/edit.js +0 -23
- data/public/javascripts/admin/orders/edit_form.js +0 -16
- data/public/javascripts/admin/unobtrusive_handlers.js +0 -43
- data/public/javascripts/application.js +0 -12
- data/public/javascripts/calculator.js +0 -15
- data/public/javascripts/checkout.js +0 -75
- data/public/javascripts/datepicker.js +0 -1445
- data/public/javascripts/gateway.js +0 -13
- data/public/javascripts/jquery-1.4.2.min.js +0 -154
- data/public/javascripts/jquery-ui.js +0 -188
- data/public/javascripts/jquery.cookie.js +0 -96
- data/public/javascripts/jquery.suggest.js +0 -276
- data/public/javascripts/jquery.template.js +0 -255
- data/public/javascripts/jquery.tokeninput.js +0 -618
- data/public/javascripts/jquery.validate.min.js +0 -16
- data/public/javascripts/lang/af.js +0 -40
- data/public/javascripts/lang/ar.js +0 -50
- data/public/javascripts/lang/de.js +0 -40
- data/public/javascripts/lang/du.js +0 -40
- data/public/javascripts/lang/en.js +0 -42
- data/public/javascripts/lang/es.js +0 -41
- data/public/javascripts/lang/fi.js +0 -40
- data/public/javascripts/lang/fr.js +0 -44
- data/public/javascripts/lang/gr.js +0 -40
- data/public/javascripts/lang/he.js +0 -49
- data/public/javascripts/lang/it.js +0 -13
- data/public/javascripts/lang/nl.js +0 -40
- data/public/javascripts/lang/no.js +0 -40
- data/public/javascripts/lang/pt.js +0 -50
- data/public/javascripts/lang/ro.js +0 -40
- data/public/javascripts/lang/ru.js +0 -40
- data/public/javascripts/lang/sp.js +0 -40
- data/public/javascripts/lang/sv.js +0 -41
- data/public/javascripts/lang/ua.js +0 -40
- data/public/javascripts/localization/messages_cn.js +0 -24
- data/public/javascripts/localization/messages_cs.js +0 -23
- data/public/javascripts/localization/messages_da.js +0 -21
- data/public/javascripts/localization/messages_de.js +0 -21
- data/public/javascripts/localization/messages_fr.js +0 -23
- data/public/javascripts/localization/messages_hu.js +0 -21
- data/public/javascripts/localization/messages_it.js +0 -26
- data/public/javascripts/localization/messages_kk.js +0 -23
- data/public/javascripts/localization/messages_nl.js +0 -23
- data/public/javascripts/localization/messages_no.js +0 -23
- data/public/javascripts/localization/messages_pl.js +0 -23
- data/public/javascripts/localization/messages_ptbr.js +0 -30
- data/public/javascripts/localization/messages_ru.js +0 -23
- data/public/javascripts/localization/messages_se.js +0 -23
- data/public/javascripts/localization/messages_sk.js +0 -21
- data/public/javascripts/localization/messages_tr.js +0 -24
- data/public/javascripts/localization/messages_tw.js +0 -24
- data/public/javascripts/localization/messages_ua.js +0 -24
- data/public/javascripts/nested-attribute.js +0 -26
- data/public/javascripts/open_id.js +0 -15
- data/public/javascripts/product.js +0 -49
- data/public/javascripts/rails.js +0 -127
- data/public/javascripts/taxonomy.js +0 -201
- data/public/javascripts/zone.js +0 -39
- data/public/stylesheets/admin/dashboard.css +0 -143
- data/public/stylesheets/admin/edit_checkouts.css +0 -57
- data/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +0 -7
- data/public/stylesheets/admin/yui-includes.css +0 -14
- data/public/stylesheets/datepicker.css +0 -263
- data/public/stylesheets/jquery.autocomplete.css +0 -48
- data/public/stylesheets/screen.css +0 -916
@@ -0,0 +1,44 @@
|
|
1
|
+
$(function() {
|
2
|
+
if ($('#country_based').is(':checked')) {
|
3
|
+
show_country();
|
4
|
+
} else if ($('#state_based').is(':checked')) {
|
5
|
+
show_state();
|
6
|
+
} else {
|
7
|
+
show_zone();
|
8
|
+
}
|
9
|
+
$('#country_based').click(function() { show_country();} );
|
10
|
+
$('#state_based').click(function() { show_state();} );
|
11
|
+
$('#zone_based').click(function() { show_zone();} );
|
12
|
+
})
|
13
|
+
|
14
|
+
var show_country = function() {
|
15
|
+
$('#state_members :input').each(function() { $(this).prop("disabled", true); })
|
16
|
+
$('#state_members').hide();
|
17
|
+
$('#zone_members :input').each(function() { $(this).prop("disabled", true); })
|
18
|
+
$('#zone_members').hide();
|
19
|
+
$('#country_members :input').each(function() { $(this).prop("disabled", false); })
|
20
|
+
$('#country_members').show();
|
21
|
+
};
|
22
|
+
|
23
|
+
var show_state = function() {
|
24
|
+
$('#country_members :input').each(function() { $(this).prop("disabled", true);
|
25
|
+
})
|
26
|
+
$('#country_members').hide();
|
27
|
+
$('#zone_members :input').each(function() { $(this).prop("disabled", true);
|
28
|
+
})
|
29
|
+
$('#zone_members').hide();
|
30
|
+
$('#state_members :input').each(function() { $(this).prop("disabled", false); })
|
31
|
+
$('#state_members').show();
|
32
|
+
};
|
33
|
+
|
34
|
+
var show_zone = function() {
|
35
|
+
$('#state_members :input').each(function() { $(this).prop("disabled", true);
|
36
|
+
})
|
37
|
+
$('#state_members').hide();
|
38
|
+
$('#country_members :input').each(function() { $(this).prop("disabled", true);
|
39
|
+
})
|
40
|
+
$('#country_members').hide();
|
41
|
+
$('#zone_members :input').each(function() { $(this).prop("disabled", false); })
|
42
|
+
$('#zone_members').show();
|
43
|
+
};
|
44
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
(function($){
|
2
|
+
$(document).ready(function(){
|
3
|
+
if($('form#update-cart').is('*')){
|
4
|
+
$('form#update-cart a.delete').show().live('click', function(e){
|
5
|
+
$(this).parents('tr').find('input.line_item_quantity').val(0);
|
6
|
+
$(this).parents('form').submit();
|
7
|
+
e.preventDefault();
|
8
|
+
});
|
9
|
+
}
|
10
|
+
});
|
11
|
+
})(jQuery);
|
@@ -0,0 +1,77 @@
|
|
1
|
+
(function($){
|
2
|
+
$(document).ready(function(){
|
3
|
+
if($('#checkout_form_address').is('*')){
|
4
|
+
|
5
|
+
$('#checkout_form_address').validate();
|
6
|
+
|
7
|
+
var get_states = function(region){
|
8
|
+
country = $('p#' + region + 'country' + ' span#' + region + 'country :only-child').val();
|
9
|
+
return state_mapper[country];
|
10
|
+
}
|
11
|
+
|
12
|
+
var update_state = function(region) {
|
13
|
+
states = get_states(region);
|
14
|
+
|
15
|
+
state_select = $('p#' + region + 'state select');
|
16
|
+
state_input = $('p#' + region + 'state input');
|
17
|
+
|
18
|
+
if(states) {
|
19
|
+
selected = state_select.val();
|
20
|
+
state_select.html('');
|
21
|
+
states_with_blank = [["",""]].concat(states);
|
22
|
+
$.each(states_with_blank, function(pos,id_nm) {
|
23
|
+
var opt = $(document.createElement('option'))
|
24
|
+
.attr('value', id_nm[0])
|
25
|
+
.html(id_nm[1]);
|
26
|
+
if(selected==id_nm[0]){
|
27
|
+
opt.prop("selected", true);
|
28
|
+
}
|
29
|
+
state_select.append(opt);
|
30
|
+
});
|
31
|
+
state_select.prop("disabled", false).show();
|
32
|
+
state_input.hide().prop("disabled", true);
|
33
|
+
|
34
|
+
} else {
|
35
|
+
state_input.prop("disabled", false).show();
|
36
|
+
state_select.hide().prop("disabled", true);
|
37
|
+
}
|
38
|
+
|
39
|
+
};
|
40
|
+
|
41
|
+
$('p#bcountry select').change(function() { update_state('b'); });
|
42
|
+
$('p#scountry select').change(function() { update_state('s'); });
|
43
|
+
update_state('b');
|
44
|
+
update_state('s');
|
45
|
+
|
46
|
+
$('input#order_use_billing').click(function() {
|
47
|
+
if($(this).is(':checked')) {
|
48
|
+
$('#shipping .inner').hide();
|
49
|
+
$('#shipping .inner input, #shipping .inner select').prop("disabled", true);
|
50
|
+
} else {
|
51
|
+
$('#shipping .inner').show();
|
52
|
+
$('#shipping .inner input, #shipping .inner select').prop("disabled", false);
|
53
|
+
//only want to enable relevant field
|
54
|
+
if(get_states('s')){
|
55
|
+
$('span#sstate input').hide().prop("disabled", true);
|
56
|
+
}else{
|
57
|
+
$('span#sstate select').hide().prop("disabled", true);
|
58
|
+
}
|
59
|
+
|
60
|
+
}
|
61
|
+
}).triggerHandler('click');
|
62
|
+
|
63
|
+
$('form.edit_order').submit(function() {
|
64
|
+
$(this).find(':submit, :image').attr('disabled', true).removeClass('primary').addClass('disabled');
|
65
|
+
});
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
if($('#checkout_form_payment').is('*')){
|
70
|
+
// Show fields for the selected payment method
|
71
|
+
$("input[type='radio'][name='order[payments_attributes][][payment_method_id]']").click(function(){
|
72
|
+
$('#payment-methods li').hide();
|
73
|
+
if(this.checked){ $('#payment_method_'+this.value).show(); }
|
74
|
+
}).triggerHandler('click');
|
75
|
+
}
|
76
|
+
});
|
77
|
+
})(jQuery);
|
@@ -0,0 +1,49 @@
|
|
1
|
+
var add_image_handlers = function() {
|
2
|
+
$("#main-image").data('selectedThumb', $('#main-image img').attr('src'));
|
3
|
+
$('ul.thumbnails li').eq(0).addClass('selected');
|
4
|
+
|
5
|
+
$('ul.thumbnails').delegate('a', 'click', function(event) {
|
6
|
+
$("#main-image").data('selectedThumb', $(event.currentTarget).attr('href'));
|
7
|
+
$("#main-image").data('selectedThumbId', $(event.currentTarget).parent().attr('id'));
|
8
|
+
$(this).mouseout(function() {
|
9
|
+
$('ul.thumbnails li').removeClass('selected');
|
10
|
+
$(event.currentTarget).parent('li').addClass('selected');
|
11
|
+
});
|
12
|
+
return false;
|
13
|
+
});
|
14
|
+
$('ul.thumbnails').delegate('li', 'mouseenter', function(event) {
|
15
|
+
$('#main-image img').attr('src', $(event.currentTarget).find('a').attr('href'));
|
16
|
+
});
|
17
|
+
$('ul.thumbnails').delegate('li', 'mouseleave', function(event) {
|
18
|
+
$('#main-image img').attr('src', $("#main-image").data('selectedThumb'));
|
19
|
+
});
|
20
|
+
};
|
21
|
+
|
22
|
+
var show_variant_images = function(variant_id) {
|
23
|
+
$('li.vtmb').hide();
|
24
|
+
$('li.vtmb-' + variant_id).show();
|
25
|
+
var currentThumb = $('#' + $("#main-image").data('selectedThumbId'));
|
26
|
+
// if currently selected thumb does not belong to current variant, nor to common images,
|
27
|
+
// hide it and select the first available thumb instead.
|
28
|
+
if(!currentThumb.hasClass('vtmb-' + variant_id) && !currentThumb.hasClass('tmb-all')) {
|
29
|
+
var thumb = $($('ul.thumbnails li:visible').eq(0));
|
30
|
+
var newImg = thumb.find('a').attr('href');
|
31
|
+
$('ul.thumbnails li').removeClass('selected');
|
32
|
+
thumb.addClass('selected');
|
33
|
+
$('#main-image img').attr('src', newImg);
|
34
|
+
$("#main-image").data('selectedThumb', newImg);
|
35
|
+
$("#main-image").data('selectedThumbId', thumb.attr('id'));
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
$(document).ready(function() {
|
40
|
+
add_image_handlers();
|
41
|
+
if($('#product-variants input[type=radio]').length > 0) {
|
42
|
+
show_variant_images($('#product-variants input[type=radio]').eq(0).attr('value'));
|
43
|
+
}
|
44
|
+
|
45
|
+
$('#product-variants input[type=radio]').click(function (event) {
|
46
|
+
show_variant_images(this.value);
|
47
|
+
});
|
48
|
+
});
|
49
|
+
|
data/{public/stylesheets/admin/admin-forms.css → app/assets/stylesheets/admin/admin-form.css.erb}
RENAMED
@@ -1,12 +1,12 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
3
|
forms.css
|
4
4
|
* Sets up some default styling for forms
|
5
5
|
* Gives you classes to enhance your forms
|
6
|
-
|
6
|
+
|
7
7
|
Usage:
|
8
8
|
* For text fields, use class .title or .text
|
9
|
-
|
9
|
+
|
10
10
|
-------------------------------------------------------------- */
|
11
11
|
|
12
12
|
label { font-weight: bold; }
|
@@ -28,11 +28,21 @@ textarea:focus, select:focus {
|
|
28
28
|
border:1px solid #666;
|
29
29
|
}
|
30
30
|
|
31
|
-
input.text,
|
31
|
+
input.text,
|
32
32
|
input.title { padding:5px; }
|
33
33
|
input.title { font-size:1.5em; }
|
34
34
|
textarea { height: 250px; padding:5px; }
|
35
35
|
|
36
|
+
|
37
|
+
fieldset#preferences input.input_string, fieldset#preferences textarea {
|
38
|
+
border: 1px solid #BBB;
|
39
|
+
padding: 5px;
|
40
|
+
font-size: 1.5em;
|
41
|
+
width: 98%;
|
42
|
+
}
|
43
|
+
|
44
|
+
fieldset#preferences textarea { height: 100px; }
|
45
|
+
|
36
46
|
.required { color:#f00; font-weight:bold; font-size:1.2em;}
|
37
47
|
.fullwidth { width:98% }
|
38
48
|
|
@@ -54,16 +64,16 @@ div.split {
|
|
54
64
|
}
|
55
65
|
form div.left
|
56
66
|
{
|
57
|
-
|
58
|
-
|
59
|
-
|
67
|
+
display:inline;
|
68
|
+
float:left;
|
69
|
+
width:48%;
|
60
70
|
}
|
61
71
|
|
62
72
|
form div.right
|
63
73
|
{
|
64
|
-
|
65
|
-
|
66
|
-
|
74
|
+
display:inline;
|
75
|
+
float:right;
|
76
|
+
width:48%;
|
67
77
|
}
|
68
78
|
form p {
|
69
79
|
clear:both;
|
@@ -86,17 +96,17 @@ form div.right.w30 {
|
|
86
96
|
border-left:none;border-right:none;
|
87
97
|
}
|
88
98
|
.flash.error {
|
89
|
-
background: #FDE4E4 url(
|
99
|
+
background: #FDE4E4 url(<%= asset_path 'admin/icons/exclamation.png' %>) 10px center no-repeat;
|
90
100
|
color:#c00; border-color:#c00;
|
91
101
|
}
|
92
102
|
.flash.notice {
|
93
|
-
background: #E7F8D7 url(
|
103
|
+
background: #E7F8D7 url(<%= asset_path 'admin/icons/tick.png' %>) 10px center no-repeat;
|
94
104
|
color:#59A151; border-color: #59A151;
|
95
105
|
}
|
96
106
|
|
97
107
|
.withError {
|
98
108
|
background-color:#FDE4E4;
|
99
|
-
background-image:url(
|
109
|
+
background-image:url(<%= asset_path 'admin/bg/red-stripes.png' %>);
|
100
110
|
}
|
101
111
|
.formError {
|
102
112
|
color:#c00; font-weight:bold;
|
@@ -122,7 +132,7 @@ form div.right.w30 {
|
|
122
132
|
position: relative; }
|
123
133
|
.field .formError {
|
124
134
|
color: #fff;
|
125
|
-
background: #f15700 url(
|
135
|
+
background: #f15700 url(<%= asset_path 'admin/icons/exclamation.png' %>) center left no-repeat;
|
126
136
|
padding: 3px 7px;
|
127
137
|
display: inline-block;
|
128
138
|
margin-bottom: 1em;
|
@@ -140,8 +150,9 @@ fieldset {
|
|
140
150
|
margin-bottom: 1em;
|
141
151
|
padding: 1em;
|
142
152
|
border: solid 1px #ccc;
|
153
|
+
background-color: #fff;
|
143
154
|
-moz-border-radius: 10px;
|
144
|
-
-webkit-border-radius: 10px;
|
155
|
+
-webkit-border-radius: 10px;
|
145
156
|
}
|
146
157
|
fieldset h1 {
|
147
158
|
font-size: 1.75em; }
|
File without changes
|
data/{public/stylesheets/admin/admin-tables.css → app/assets/stylesheets/admin/admin-tables.css.erb}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
table.index th {
|
2
|
-
background: #cdcdcd url(
|
2
|
+
background: #cdcdcd url(<%= asset_path 'admin/bg/grid_header_back.png' %>) top left repeat-x;
|
3
3
|
padding: 7px 10px;
|
4
4
|
border-left: 1px solid #ddd;
|
5
5
|
border-top: 1px solid #ddd;
|
@@ -13,6 +13,7 @@ table.index th {
|
|
13
13
|
table.index th.id-col {
|
14
14
|
text-align: center; }
|
15
15
|
table.index td {
|
16
|
+
background-color: #fff;
|
16
17
|
border-bottom:1px solid #ddd;
|
17
18
|
padding: 3px 10px;
|
18
19
|
}
|
@@ -23,7 +24,7 @@ table.index th {
|
|
23
24
|
table.index tr.alt td {
|
24
25
|
background-color: #efefef; }
|
25
26
|
table.index.green th {
|
26
|
-
background: #cfefa7 url(/
|
27
|
+
background: #cfefa7 url(<%= asset_path 'admin/grid_header_back_green.png' %>) top left repeat-x;
|
27
28
|
border-left: 1px solid #E4FDB4;
|
28
29
|
border-top: 1px solid #E4FDB4;
|
29
30
|
border-right: 1px solid #B7CB90;
|
@@ -54,7 +54,7 @@ acronym { border-bottom: 1px dotted #666; }
|
|
54
54
|
address { margin: 0 0 1.5em; font-style: italic; }
|
55
55
|
del { color:#666; }
|
56
56
|
|
57
|
-
pre
|
57
|
+
pre { margin: 1.5em 0; white-space: pre; }
|
58
58
|
pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
|
59
59
|
|
60
60
|
|
@@ -78,7 +78,7 @@ dd { margin-left: 1.5em;}
|
|
78
78
|
|
79
79
|
table { margin-bottom: 1.4em; width:100%; }
|
80
80
|
th { font-weight: bold; }
|
81
|
-
thead th
|
81
|
+
thead th { background: #c3d9ff; }
|
82
82
|
th,td,caption { padding: 4px 10px 4px 5px; }
|
83
83
|
tr.even td { background: #e5ecf9; }
|
84
84
|
tfoot { font-style: italic; }
|
@@ -66,7 +66,7 @@ body {
|
|
66
66
|
#content a:visited {
|
67
67
|
color: #3C7DFB; }
|
68
68
|
#content.with-sidebar {
|
69
|
-
background: #fff url(
|
69
|
+
background: #fff url(<%= asset_path 'admin/bg/content-back.png' %>) right top repeat-y;
|
70
70
|
padding-right: 340px;
|
71
71
|
position: relative; }
|
72
72
|
#sidebar {
|
@@ -118,7 +118,7 @@ body {
|
|
118
118
|
#sidebar ul.sidebar li a:hover { background-color:#ddd }
|
119
119
|
#sidebar ul.sidebar li.active a {
|
120
120
|
font-weight: bold;
|
121
|
-
background: url(
|
121
|
+
background: url(<%= asset_path 'admin/bg/menu-current.png' %>) left center no-repeat;
|
122
122
|
color: #363 !important;
|
123
123
|
margin-left: -20px;
|
124
124
|
padding-left: 30px; }
|
@@ -196,7 +196,7 @@ body {
|
|
196
196
|
#IE7 #admin-menu {
|
197
197
|
height: 39px; }
|
198
198
|
#admin-menu {
|
199
|
-
background: #154e8c url(
|
199
|
+
background: #154e8c url(<%= asset_path 'admin/bg/admin_tab_back.png' %>) top left repeat-x;
|
200
200
|
border-top: 1px solid #4B83E2;
|
201
201
|
border-right: 1px solid #34599B;
|
202
202
|
border-bottom: 1px solid #41A6F0;
|
@@ -206,7 +206,7 @@ body {
|
|
206
206
|
#admin-menu ul li:first-child {
|
207
207
|
border-left: 1px solid #34599B; }
|
208
208
|
#admin-menu ul li.selected {
|
209
|
-
background: #0095da url(
|
209
|
+
background: #0095da url(<%= asset_path 'admin/bg/admin_tab_selected_back.png' %>) top left repeat-x;
|
210
210
|
border-left: 1px solid #41A6F0;
|
211
211
|
border-top: 1px solid #41A6F0;
|
212
212
|
border-right: 1px solid #4986BF;
|
@@ -252,7 +252,7 @@ body {
|
|
252
252
|
.search-form label {
|
253
253
|
display: block; }
|
254
254
|
a.button {
|
255
|
-
background: transparent url(
|
255
|
+
background: transparent url(<%= asset_path 'admin/buttons/right_01.png' %>) no-repeat scroll top right;
|
256
256
|
display: block;
|
257
257
|
float: left;
|
258
258
|
margin-right: 6px;
|
@@ -262,7 +262,7 @@ body {
|
|
262
262
|
font-weight: bold;
|
263
263
|
outline: none; }
|
264
264
|
a.button span {
|
265
|
-
background: transparent url(
|
265
|
+
background: transparent url(<%= asset_path 'admin/buttons/left_01.png' %>) no-repeat;
|
266
266
|
display: block;
|
267
267
|
line-height: 22px;
|
268
268
|
padding: 7px 0 5px 14px;
|
@@ -274,24 +274,24 @@ body {
|
|
274
274
|
font-weight: normal; }
|
275
275
|
a.button.small {
|
276
276
|
font-size: 1em;
|
277
|
-
background: transparent url(
|
277
|
+
background: transparent url(<%= asset_path 'admin/buttons/right_01_small.png' %>) no-repeat scroll top right;
|
278
278
|
padding-right: 20px; }
|
279
279
|
a.button.small span {
|
280
|
-
background: transparent url(
|
280
|
+
background: transparent url(<%= asset_path 'admin/buttons/left_01_small.png' %>) no-repeat;
|
281
281
|
padding: 5px 0 3px 20px;
|
282
282
|
line-height: 21px; }
|
283
283
|
a.button.green {
|
284
|
-
background: transparent url(
|
284
|
+
background: transparent url(<%= asset_path 'admin/buttons/green/right_01.png' %>) no-repeat scroll top right;
|
285
285
|
color: #151 !important; }
|
286
286
|
a.button.green span {
|
287
|
-
background: transparent url(
|
287
|
+
background: transparent url(<%= asset_path 'admin/buttons/green/left_01.png' %>) no-repeat; }
|
288
288
|
button {
|
289
289
|
border: 0;
|
290
290
|
cursor: pointer;
|
291
291
|
font-weight: bold;
|
292
292
|
padding: 0 20px 0 0;
|
293
293
|
text-align: center;
|
294
|
-
background: url(
|
294
|
+
background: url(<%= asset_path 'admin/buttons/right_01.png' %>) center right no-repeat;
|
295
295
|
font-size: 1.3em;
|
296
296
|
outline: none; }
|
297
297
|
button span {
|
@@ -301,7 +301,7 @@ body {
|
|
301
301
|
padding: 0 0 0 20px;
|
302
302
|
height: 35px;
|
303
303
|
line-height: 35px;
|
304
|
-
background: url(
|
304
|
+
background: url(<%= asset_path 'admin/buttons/left_01.png' %>) center left no-repeat;
|
305
305
|
text-shadow: #efefef 1px 1px 0px; }
|
306
306
|
button span img {
|
307
307
|
vertical-align: middle;
|
@@ -311,6 +311,10 @@ body {
|
|
311
311
|
button.tick {
|
312
312
|
background: none;
|
313
313
|
width: 24px; }
|
314
|
+
button.small {
|
315
|
+
font-size: 1em;
|
316
|
+
padding: 0 10px 0 10px;
|
317
|
+
}
|
314
318
|
input.title,
|
315
319
|
textarea {
|
316
320
|
margin: 0; }
|
@@ -327,7 +331,7 @@ body {
|
|
327
331
|
.errorExplanation h2 {
|
328
332
|
font-size: 1.75em;
|
329
333
|
padding-left: 40px;
|
330
|
-
background: url(
|
334
|
+
background: url(<%= asset_path 'admin/icons/orb/32x32/3.png' %>) center left no-repeat; }
|
331
335
|
ul.checkbox-list {
|
332
336
|
list-style: none; }
|
333
337
|
ul.checkbox-list li {
|
@@ -402,7 +406,7 @@ body {
|
|
402
406
|
ul.taxonomy-actions li.disabled {
|
403
407
|
opacity: .5; }
|
404
408
|
h3.warning {
|
405
|
-
background-image: url(
|
409
|
+
background-image: url(<%= asset_path 'admin/icons/fugue/exclamation.png' %>);
|
406
410
|
background-position: 10px 15px;
|
407
411
|
background-repeat: no-repeat;
|
408
412
|
padding-left: 35px; }
|
@@ -447,12 +451,12 @@ span.current_page {
|
|
447
451
|
color: #FFF;
|
448
452
|
}
|
449
453
|
|
450
|
-
div#calculator-settings-warning {
|
454
|
+
div#calculator-settings-warning, .warning {
|
451
455
|
color: #f00;
|
452
456
|
}
|
453
457
|
#progress{
|
454
458
|
display:none;
|
455
|
-
background:#154E8C url(
|
459
|
+
background:#154E8C url(<%= asset_path 'admin/bg/admin_tab_back.png' %>) repeat-x scroll left top;
|
456
460
|
color:#fff;
|
457
461
|
font-size:170%;
|
458
462
|
height:25px;
|
@@ -578,37 +582,9 @@ table#product_scopes tr td table tr td {
|
|
578
582
|
|
579
583
|
|
580
584
|
span.handle{
|
581
|
-
background-image: url(
|
585
|
+
background-image: url(<%= asset_path 'admin/icons/switch.png' %>);
|
582
586
|
display: inline-block;
|
587
|
+
cursor: move;
|
583
588
|
width:14px;
|
584
589
|
height:15px;
|
585
590
|
}
|
586
|
-
|
587
|
-
.alert {
|
588
|
-
-moz-border-radius: 5px;
|
589
|
-
-webkit-border-radius: 5px;
|
590
|
-
border-radius: 5px;
|
591
|
-
font-size: 1.3em;
|
592
|
-
margin-bottom: 1em;
|
593
|
-
padding: 0.8em;
|
594
|
-
}
|
595
|
-
.alert a.dismiss {
|
596
|
-
float:right;
|
597
|
-
font-size: 0.8em;
|
598
|
-
}
|
599
|
-
.alert.release {
|
600
|
-
background: #ccddff url(../images/shadow_top.png) 0px -50px repeat-x;
|
601
|
-
color: #556699;
|
602
|
-
border: 1px solid #99aacc;
|
603
|
-
}
|
604
|
-
.alert.security {
|
605
|
-
background: #f4b4b4 url(../images/shadow_top.png) 0px -50px repeat-x;
|
606
|
-
color: #000000;
|
607
|
-
border: 1px solid #e75b5b;
|
608
|
-
}
|
609
|
-
.alert.news {
|
610
|
-
background: #ccffd4 url(../images/shadow_top.png) 0px -50px repeat-x;
|
611
|
-
color: #000000;
|
612
|
-
border: 1px solid #66ff7e;
|
613
|
-
}
|
614
|
-
|