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
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
<div data-hook="admin_inside_taxonomy_form">
|
2
2
|
<%= f.field_container :name do %>
|
3
3
|
<%= f.label :name, t("name") %> <span class="required">*</span><br />
|
4
4
|
<%= error_message_on :taxonomy, :name, :class => 'fullwidth title' %>
|
5
5
|
<%= text_field :taxonomy, :name %>
|
6
6
|
<% end %>
|
7
|
-
|
7
|
+
</div>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<table class="index" id='listing_taxonomies'>
|
2
|
-
<tr>
|
1
|
+
<table class="index" id='listing_taxonomies' data-hook>
|
2
|
+
<tr data-hook="taxonomies_header">
|
3
3
|
<th><%= t("name") %></th>
|
4
4
|
<th></th>
|
5
5
|
</tr>
|
6
6
|
<% for taxonomy in @taxonomies %>
|
7
|
-
<tr id="<%= dom_id taxonomy %>">
|
7
|
+
<tr id="<%= dom_id taxonomy %>" data-hook="taxonomies_row">
|
8
8
|
<td>
|
9
9
|
<%= taxonomy.name %>
|
10
10
|
</td>
|
@@ -6,14 +6,14 @@
|
|
6
6
|
|
7
7
|
<p id="ajax_error" class="errorExplanation" style="display:none;"></p>
|
8
8
|
|
9
|
-
<%= form_for(:
|
9
|
+
<%= form_for([:admin, @taxonomy]) do |f| %>
|
10
10
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
11
11
|
<div>
|
12
12
|
<label><%= t("tree")%></label><br />
|
13
13
|
<div id="taxonomy_tree" class="tree"></div>
|
14
14
|
</div>
|
15
15
|
<p id="progress" style="display:none;">
|
16
|
-
<img src="/
|
16
|
+
<img src="/assets/spinner.gif?1234540747" alt="Spinner" style="vertical-align:bottom;"/> <%= t('updating') %>..
|
17
17
|
</p>
|
18
18
|
<p><br/><small><%= t("taxonomy_tree_instruction")%></small></p>
|
19
19
|
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<%= render :partial => 'admin/shared/configuration_menu' %>
|
2
2
|
|
3
|
-
<div class=
|
4
|
-
<ul class=
|
3
|
+
<div class="toolbar" data-hook="toolbar">
|
4
|
+
<ul class="actions">
|
5
5
|
<li>
|
6
6
|
<%= button_link_to t("new_taxonomy"), new_admin_taxonomy_url, :icon => 'add', :id => 'admin_new_taxonomy_link' %></p>
|
7
7
|
</li>
|
8
8
|
</ul>
|
9
|
-
<br class=
|
9
|
+
<br class="clear">
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<h1><%= t("taxonomies") %></h1>
|
13
13
|
|
14
|
-
<div id='list-taxonomies'>
|
14
|
+
<div id='list-taxonomies' data-hook>
|
15
15
|
<%= render :partial => 'list' %>
|
16
16
|
</div>
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
<h1><%= t("new_taxonomy") %></h1>
|
4
4
|
|
5
|
-
<%= form_for(:
|
5
|
+
<%= form_for([:admin, @taxonomy]) do |f| %>
|
6
6
|
|
7
7
|
<%= render :partial => "form", :locals => { :f => f } %>
|
8
8
|
|
9
|
-
<p class="form-buttons">
|
9
|
+
<p class="form-buttons" data-hook="buttons">
|
10
10
|
<%= button t("create") %>
|
11
11
|
</p>
|
12
12
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<div data-hook="admin_inside_taxon_form">
|
2
2
|
<%= f.field_container :name do %>
|
3
3
|
<%= f.label :name, t("name") %> <span class="required">*</span><br />
|
4
4
|
<%= error_message_on :taxon, :name, :class => 'fullwidth title' %>
|
@@ -20,4 +20,4 @@
|
|
20
20
|
<%= f.text_area :description %>
|
21
21
|
<% end %>
|
22
22
|
|
23
|
-
|
23
|
+
</div>
|
@@ -1,23 +1,23 @@
|
|
1
1
|
<table class="index">
|
2
2
|
<thead>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
<tr data-hook="taxons_header">
|
4
|
+
<th><%= t("name") %></th>
|
5
|
+
<th><%= t("path") %></th>
|
6
|
+
<th></th>
|
7
|
+
</tr>
|
8
8
|
</thead>
|
9
9
|
<tbody>
|
10
10
|
<% taxons.each do |taxon| %>
|
11
|
-
<tr id="<%= dom_id(taxon)%>">
|
11
|
+
<tr id="<%= dom_id(taxon)%>" data-hook="taxons_row">
|
12
12
|
<td><%= taxon.name %></td>
|
13
13
|
<td><%= taxon_path taxon %></td>
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
<td class="actions">
|
15
|
+
<%= link_to_delete taxon, :url => remove_admin_product_taxon_url(@product, taxon), :name => icon("delete") + ' ' + t("remove") %>
|
16
|
+
</td>
|
17
17
|
</tr>
|
18
18
|
<% end %>
|
19
19
|
<% if taxons.empty? %>
|
20
|
-
<tr><td colspan="3"><%= t('none') %>.</td></tr>
|
20
|
+
<tr data-hook="taxons_none"><td colspan="3"><%= t('none') %>.</td></tr>
|
21
21
|
<% end %>
|
22
22
|
</tbody>
|
23
23
|
</table>
|
@@ -1,17 +1,10 @@
|
|
1
|
-
<
|
2
|
-
function displayRow(){
|
3
|
-
var row = document.getElementById("captionRow");
|
4
|
-
if (row.style.display == '') row.style.display = 'none';
|
5
|
-
else row.style.display = '';
|
6
|
-
}
|
7
|
-
</script>
|
8
|
-
<h4><%= t('available_taxons') %></h4>
|
1
|
+
<h4><%= t(:available_taxons) %></h4>
|
9
2
|
<table class="index">
|
10
3
|
<thead>
|
11
4
|
<tr>
|
12
|
-
<th><%= t(
|
13
|
-
<th><%= t(
|
14
|
-
<th><%= t(
|
5
|
+
<th><%= t(:name) %></th>
|
6
|
+
<th><%= t(:path) %></th>
|
7
|
+
<th><%= t(:action) %></th>
|
15
8
|
</tr>
|
16
9
|
</thead>
|
17
10
|
<tbody>
|
@@ -20,14 +13,14 @@
|
|
20
13
|
<td><%= taxon.name %></td>
|
21
14
|
<td><%= taxon_path taxon %></td>
|
22
15
|
<td class="actions">
|
23
|
-
<%= link_to icon(
|
16
|
+
<%= link_to icon(:add) + ' ' + t(:select),
|
24
17
|
select_admin_product_taxon_path(@product, taxon),
|
25
18
|
:remote => true, :class => 'iconlink' %>
|
26
|
-
</td>
|
19
|
+
</td>
|
27
20
|
</tr>
|
28
21
|
<% end %>
|
29
22
|
<% if @taxons.empty? %>
|
30
|
-
<tr><td colspan="3"><%= t(
|
23
|
+
<tr><td colspan="3"><%= t(:no_match_found) %>.</td></tr>
|
31
24
|
<% end %>
|
32
25
|
</tbody>
|
33
26
|
</table>
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
<h1><%= t("taxon_edit")%></h1>
|
4
4
|
|
5
|
-
<%= form_for(:
|
5
|
+
<%= form_for([:admin, @taxonomy, @taxon], :html => { :method => :put, :multipart => true}) do |f| %>
|
6
6
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
7
7
|
|
8
|
-
<p class="form-buttons">
|
8
|
+
<p class="form-buttons" data-hook="buttons">
|
9
9
|
<%= button t("update") %> <%= t("or") %> <%= link_to t("cancel"), edit_admin_taxonomy_url(@taxonomy) %>
|
10
10
|
</p>
|
11
11
|
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= render :partial => 'admin/shared/product_sub_menu' %>
|
2
2
|
|
3
3
|
<%= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Taxons"} %>
|
4
|
-
<div id="selected-taxons">
|
4
|
+
<div id="selected-taxons" data-hook>
|
5
5
|
<%= render :partial => "taxon_table", :locals => {:taxons => @taxons} %>
|
6
6
|
</div>
|
7
7
|
|
@@ -13,18 +13,18 @@
|
|
13
13
|
|
14
14
|
<%= javascript_tag do %>
|
15
15
|
function search_for_taxons(){
|
16
|
-
|
17
|
-
data: {q:
|
18
|
-
dataType: '
|
16
|
+
$.ajax({
|
17
|
+
data: {q: $("#searchtext").val() },
|
18
|
+
dataType: 'html',
|
19
19
|
success: function(request){
|
20
20
|
jQuery('#search_hits').html(request);
|
21
21
|
},
|
22
|
-
type: '
|
23
|
-
url: '<%= available_admin_product_taxons_url(@product) %>'
|
22
|
+
type: 'POST',
|
23
|
+
url: '<%= available_admin_product_taxons_url(@product, :format => 'js') %>'
|
24
24
|
});
|
25
25
|
}
|
26
26
|
|
27
|
-
|
27
|
+
$("#searchtext").keypress(function (e) {
|
28
28
|
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
|
29
29
|
search_for_taxons();
|
30
30
|
|
@@ -34,10 +34,10 @@
|
|
34
34
|
}
|
35
35
|
});
|
36
36
|
|
37
|
-
|
37
|
+
$("#searchtext").delayedObserver(function() {
|
38
38
|
search_for_taxons();
|
39
39
|
}, 0.75);
|
40
40
|
<% end %>
|
41
41
|
<br/>
|
42
|
-
<div id="search_hits"></div>
|
42
|
+
<div id="search_hits" data-hook></div>
|
43
43
|
|
@@ -1,26 +1,27 @@
|
|
1
1
|
<table>
|
2
|
-
<tr>
|
2
|
+
<tr data-hook="analytics_id">
|
3
3
|
<td><label><%=t("google_analytics_id")%></label></td>
|
4
4
|
<td><%= text_field :tracker, :analytics_id, {"style" => "width:200px"} %></td>
|
5
5
|
</tr>
|
6
|
-
<tr>
|
6
|
+
<tr data-hook="environment">
|
7
7
|
<td><label><%=t("environment")%></label></td>
|
8
8
|
<td>
|
9
9
|
<%= collection_select(:tracker, :environment, Configuration.configurations.keys, :to_s, :titleize, {}, {:id => "tracker-env"}) %>
|
10
10
|
</td>
|
11
11
|
</tr>
|
12
|
-
<tr>
|
12
|
+
<tr data-hook="active">
|
13
13
|
<td><label><%= t("active") %></label></td>
|
14
14
|
<td>
|
15
15
|
<label class="sub">
|
16
16
|
<%= radio_button(:tracker, :active, true ) %>
|
17
17
|
<%= t("yes") %>
|
18
|
-
</label>
|
18
|
+
</label>
|
19
19
|
<label class="sub">
|
20
20
|
<%= radio_button(:tracker, :active, false ) %>
|
21
21
|
<%= t("no") %>
|
22
22
|
</label>
|
23
23
|
</td>
|
24
24
|
</tr>
|
25
|
-
|
26
|
-
</
|
25
|
+
<tbody data-hook="additional_tracker_fields">
|
26
|
+
</tbody>
|
27
|
+
</table>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<h1><%= t("editing_tracker") %></h1>
|
4
4
|
<%= render "shared/error_messages", :target => @tracker %>
|
5
|
-
<%= form_for(
|
5
|
+
<%= form_for([:admin, @tracker]) do |f| %>
|
6
6
|
<%= render :partial => "form", :locals => { :f => f } %>
|
7
7
|
<%= render :partial => "admin/shared/edit_resource_links" %>
|
8
8
|
<% end %>
|
@@ -1,36 +1,31 @@
|
|
1
1
|
<%= render :partial => 'admin/shared/configuration_menu' %>
|
2
2
|
|
3
|
-
<div class=
|
4
|
-
<ul class=
|
3
|
+
<div class="toolbar" data-hook="toolbar">
|
4
|
+
<ul class="actions">
|
5
5
|
<li>
|
6
6
|
<%= button_link_to t("new_tracker"), new_object_url, :icon => 'add', :id => 'admin_new_tracker_link' %>
|
7
7
|
</li>
|
8
8
|
</ul>
|
9
|
-
<br class=
|
9
|
+
<br class="clear">
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<h1><%= t("analytics_trackers") %></h1>
|
13
13
|
|
14
14
|
<table class="index">
|
15
15
|
<thead>
|
16
|
-
<tr>
|
17
|
-
<%= hook :admin_trackers_index_headers do %>
|
16
|
+
<tr data-hook="admin_trackers_index_headers">
|
18
17
|
<th><%= t(:google_analytics_id) %></th>
|
19
18
|
<th><%= t("environment") %></th>
|
20
19
|
<th><%= t("active") %></th>
|
21
|
-
<% end %>
|
22
20
|
<th><%= t("action") %></th>
|
23
21
|
</tr>
|
24
22
|
</thead>
|
25
23
|
<tbody>
|
26
24
|
<% @trackers.each do |tracker|%>
|
27
|
-
<tr id="<%= dom_id tracker %>">
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
<td><%= tracker.environment.to_s.titleize %></td>
|
32
|
-
<td><%= tracker.active ? t(:yes) : t(:no) %></td>
|
33
|
-
<% end %>
|
25
|
+
<tr id="<%= dom_id tracker %>" data-hook="admin_trackers_index_rows">
|
26
|
+
<td><%= tracker.analytics_id %></td>
|
27
|
+
<td><%= tracker.environment.to_s.titleize %></td>
|
28
|
+
<td><%= tracker.active ? t(:yes) : t(:no) %></td>
|
34
29
|
<td>
|
35
30
|
<%= link_to_edit tracker %>
|
36
31
|
<%= link_to_delete tracker %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<h1><%= t("new_tracker") %></h1>
|
4
4
|
<%= render 'shared/error_messages', :target => @tracker %>
|
5
5
|
|
6
|
-
<%= form_for(:
|
6
|
+
<%= form_for([:admin, @tracker]) do |f| %>
|
7
7
|
<%= render :partial => "form", :locals => { :f => f } %>
|
8
8
|
<%= render :partial => "admin/shared/new_resource_links" %>
|
9
9
|
<% end %>
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
<%= hook :admin_user_form_fields, locals do %>
|
1
|
+
<div data-hook="admin_user_form_fields">
|
3
2
|
<%= f.field_container :email do %>
|
4
3
|
<%= f.label :email, t("email") %><br />
|
5
4
|
<%= f.text_field :email %>
|
@@ -17,19 +16,19 @@
|
|
17
16
|
<%= f.password_field :password_confirmation %>
|
18
17
|
<%= f.error_message_on :password_confirmation %>
|
19
18
|
<% end %>
|
20
|
-
|
19
|
+
</div>
|
21
20
|
|
22
21
|
|
23
22
|
<% if @user.respond_to?(:roles) %>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
23
|
+
<div data-hook="admin_user_form_roles">
|
24
|
+
<p>
|
25
|
+
<label><%= t("roles") %></label><br />
|
26
|
+
<% for role in @roles %>
|
27
|
+
<label class="sub">
|
28
|
+
<%= check_box_tag "user[role][#{role.name}]", 1, @user.has_role?(role.name) %>
|
29
|
+
<%= role.name %>
|
30
|
+
</label>
|
31
|
+
<% end %>
|
32
|
+
</p>
|
33
|
+
</div>
|
35
34
|
<% end %>
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
1
|
+
<div data-hook="admin_user_edit_form_header">
|
2
2
|
<%= render 'shared/error_messages', :target => @user %>
|
3
3
|
<h1><%= t("editing_user") %></h1>
|
4
|
-
|
4
|
+
</div>
|
5
5
|
|
6
|
-
|
7
|
-
<%= form_for(:
|
6
|
+
<div data-hook="admin_user_edit_form">
|
7
|
+
<%= form_for([:admin, @user]) do |f| %>
|
8
8
|
<%= render :partial => "form", :locals => { :f => f } %>
|
9
9
|
|
10
|
-
|
10
|
+
<div data-hook="admin_user_edit_form_button">
|
11
11
|
<%= render :partial => "admin/shared/edit_resource_links" %>
|
12
|
-
|
12
|
+
</div>
|
13
13
|
<% end %>
|
14
|
-
|
14
|
+
</div>
|
@@ -1,63 +1,49 @@
|
|
1
|
-
<div class=
|
2
|
-
<ul class=
|
1
|
+
<div class="toolbar" data-hook="toolbar">
|
2
|
+
<ul class="actions">
|
3
3
|
<li>
|
4
4
|
<p><%= button_link_to t("new_user"), new_object_url, :icon => 'add', :id => 'admin_new_user_link' %></p>
|
5
5
|
</li>
|
6
6
|
</ul>
|
7
|
-
<br class=
|
7
|
+
<br class="clear">
|
8
8
|
</div>
|
9
9
|
|
10
|
-
|
11
10
|
<h1><%= t("listing_users") %></h1>
|
12
11
|
|
13
|
-
|
14
|
-
<table class="index" id='listing_users'>
|
12
|
+
<table class="index" id="listing_users" data-hook>
|
15
13
|
<thead>
|
16
|
-
|
17
|
-
<%= hook :admin_users_index_headers do %>
|
14
|
+
<tr data-hook="admin_users_index_headers">
|
18
15
|
<th><%= sort_link @search,:email,t("user"),{}, {:title => 'users_email_title'} %></th>
|
19
|
-
<th>
|
20
|
-
|
21
|
-
</th>
|
22
|
-
<% end %>
|
23
|
-
</tr>
|
16
|
+
<th data-hook="admin_users_index_header_actions"></th>
|
17
|
+
</tr>
|
24
18
|
</thead>
|
25
19
|
<tbody>
|
26
20
|
<% @users.each do |user|%>
|
27
|
-
<tr id="<%= dom_id user %>">
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
<td>
|
33
|
-
<%= hook :admin_users_index_row_actions, locals do %>
|
34
|
-
<%= link_to_edit user, :class => "edit" %>
|
35
|
-
<%= link_to_delete user %>
|
36
|
-
<% end %>
|
21
|
+
<tr id="<%= dom_id user %>" data-hook="admin_users_index_rows">
|
22
|
+
<td width="350px" class='user_email'><%=link_to user.email, object_url(user) %></td>
|
23
|
+
<td data-hook="admin_users_index_row_actions">
|
24
|
+
<%= link_to_edit user, :class => "edit" %>
|
25
|
+
<%= link_to_delete user %>
|
37
26
|
</td>
|
38
27
|
</tr>
|
39
28
|
<% end %>
|
40
29
|
</tbody>
|
41
30
|
</table>
|
42
31
|
|
43
|
-
<%=
|
32
|
+
<%= paginate @users %>
|
44
33
|
|
45
34
|
|
46
35
|
<% content_for :sidebar do %>
|
47
|
-
<div class="box">
|
36
|
+
<div class="box" data-hook="admin_users_index_search">
|
48
37
|
<h3><%= t(:search) %></h3>
|
49
38
|
<% @search = User.search %>
|
50
39
|
<%= form_for [:admin, @search] do |f| %>
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
</p>
|
57
|
-
<% end %>
|
58
|
-
<%= hook :admin_users_index_search_buttons, locals do %>
|
40
|
+
<p>
|
41
|
+
<%= t("email") %><br />
|
42
|
+
<%= f.text_field :email_contains, :size=>18 %>
|
43
|
+
</p>
|
44
|
+
<div data-hook="admin_users_index_search_buttons">
|
59
45
|
<p><%= button t("search") %></p>
|
60
|
-
|
46
|
+
</div>
|
61
47
|
<% end %>
|
62
48
|
</div>
|
63
49
|
<% end %>
|