spree 0.10.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- data/CHANGELOG +81 -4
- data/CONTRIBUTORS +18 -10
- data/Rakefile +5 -4
- data/app/controllers/admin/adjustments_controller.rb +17 -3
- data/app/controllers/admin/base_controller.rb +2 -2
- data/app/controllers/admin/checkouts_controller.rb +43 -34
- data/app/controllers/admin/line_items_controller.rb +32 -18
- data/app/controllers/admin/option_types_controller.rb +1 -1
- data/app/controllers/admin/orders_controller.rb +28 -7
- data/app/controllers/admin/payments_controller.rb +7 -7
- data/app/controllers/admin/products_controller.rb +12 -23
- data/app/controllers/admin/reports_controller.rb +19 -7
- data/app/controllers/admin/return_authorizations_controller.rb +1 -1
- data/app/controllers/admin/shipments_controller.rb +9 -9
- data/app/controllers/admin/users_controller.rb +3 -1
- data/app/controllers/admin/variants_controller.rb +2 -2
- data/app/controllers/checkouts_controller.rb +29 -18
- data/app/controllers/content_controller.rb +1 -1
- data/{vendor/extensions/localization/app → app}/controllers/locale_controller.rb +1 -1
- data/app/controllers/orders_controller.rb +33 -30
- data/app/controllers/password_resets_controller.rb +4 -4
- data/app/controllers/products_controller.rb +0 -6
- data/app/controllers/spree/base_controller.rb +9 -2
- data/app/controllers/user_sessions_controller.rb +18 -18
- data/app/controllers/users_controller.rb +2 -2
- data/app/helpers/admin/base_helper.rb +5 -2
- data/app/helpers/admin/navigation_helper.rb +1 -1
- data/app/helpers/admin/orders_helper.rb +0 -13
- data/app/helpers/admin/products_helper.rb +0 -8
- data/app/helpers/checkouts_helper.rb +5 -5
- data/app/helpers/products_helper.rb +0 -12
- data/app/helpers/spree/base_helper.rb +10 -39
- data/app/helpers/taxons_helper.rb +1 -0
- data/app/models/address.rb +6 -1
- data/app/models/app_configuration.rb +15 -14
- data/app/models/calculator/flexi_rate.rb +2 -1
- data/app/models/calculator/vat.rb +1 -1
- data/app/models/checkout.rb +1 -1
- data/app/models/creditcard.rb +26 -20
- data/app/models/inventory_unit.rb +70 -21
- data/app/models/line_item.rb +25 -11
- data/app/models/order.rb +16 -10
- data/app/models/payment.rb +4 -1
- data/app/models/payment_method.rb +14 -5
- data/app/models/product.rb +12 -4
- data/app/models/role.rb +2 -2
- data/app/models/shipment.rb +21 -2
- data/app/models/tax_category.rb +8 -0
- data/app/models/taxon.rb +8 -0
- data/app/models/user.rb +2 -3
- data/app/models/variant.rb +18 -13
- data/config/boot.rb +1 -5
- data/config/cucumber.yml +7 -0
- data/config/database.yml +20 -37
- data/config/database.yml.example +5 -6
- data/config/environment.rb +6 -5
- data/config/environments/cucumber.rb +30 -0
- data/config/environments/production.rb +1 -4
- data/config/environments/staging.rb +3 -0
- data/config/environments/test.rb +1 -1
- data/config/initializers/cookie_verification_secret.rb +7 -0
- data/config/initializers/locales.rb +4 -2
- data/config/initializers/new_rails_defaults.rb +2 -0
- data/config/initializers/spree.rb +1 -0
- data/config/initializers/workarounds_for_ruby19.rb +0 -25
- data/config/locales/{en-US.yml → en_spree.yml} +18 -4
- data/config/routes.rb +2 -1
- data/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
- data/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
- data/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
- data/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
- data/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
- data/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
- data/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
- data/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
- data/db/sample/payment_methods.yml +8 -1
- data/db/sample/shipments.yml +2 -2
- data/db/schema.rb +54 -21
- data/features/checkout.feature +98 -0
- data/features/create_admin_user.feature +18 -0
- data/features/search.feature +35 -0
- data/features/sign_in.feature +25 -0
- data/features/sign_out.feature +12 -0
- data/features/sign_up.feature +20 -0
- data/features/step_definitions/error_steps.rb +3 -0
- data/features/step_definitions/model_steps.rb +3 -0
- data/features/step_definitions/pickle_steps.rb +73 -0
- data/features/step_definitions/role_steps.rb +8 -0
- data/features/step_definitions/session_steps.rb +14 -0
- data/features/step_definitions/user_steps.rb +67 -0
- data/features/step_definitions/web_steps.rb +197 -0
- data/features/support/create_admin_user.rb +6 -0
- data/features/support/env.rb +89 -0
- data/features/support/paths.rb +32 -0
- data/features/support/pickle.rb +24 -0
- data/features/work_with_cart.feature +41 -0
- data/lib/generators/extension_model/extension_model_generator.rb +10 -10
- data/lib/generators/instance/templates/databases/mysql.yml +11 -0
- data/lib/scopes/variant.rb +10 -0
- data/lib/spree.rb +3 -3
- data/lib/spree/extensions.rb +1 -1
- data/lib/tasks/cucumber.rake +47 -0
- data/lib/tasks/database.rake +29 -29
- data/public/images/admin/bg/spree_50.png +0 -0
- data/public/images/tile-header.png +0 -0
- data/public/images/tile-slider.png +0 -0
- data/public/javascripts/admin/checkouts/edit.js +33 -0
- data/public/javascripts/dashboard.js +2 -2
- data/public/javascripts/taxonomy.js +2 -2
- data/public/stylesheets/admin/admin-tables.css +4 -0
- data/public/stylesheets/admin/admin.css +31 -16
- data/public/stylesheets/screen.css +16 -3
- data/script/about +3 -2
- data/script/console +2 -2
- data/script/cucumber +10 -0
- data/script/dbconsole +1 -1
- data/script/destroy +2 -2
- data/script/generate +2 -2
- data/script/performance/benchmarker +1 -1
- data/script/performance/profiler +1 -1
- data/script/plugin +2 -2
- data/script/runner +2 -2
- data/script/server +2 -2
- data/test/fixtures/payment_methods.yml +12 -0
- data/test/functional/admin/checkouts_controller_test.rb +0 -2
- data/test/functional/admin/line_items_controller_test.rb +78 -39
- data/test/functional/admin/products_controller_test.rb +4 -5
- data/test/integration/checkout_test.rb +1 -0
- data/test/test_helper.rb +114 -86
- data/test/unit/creditcard_test.rb +28 -7
- data/test/unit/flexi_rate_calculator_test.rb +75 -0
- data/test/unit/helpers/products_helper_test.rb +4 -4
- data/test/unit/inventory_unit_test.rb +39 -5
- data/test/unit/line_item_test.rb +60 -1
- data/test/unit/order_state_test.rb +85 -58
- data/test/unit/order_test.rb +144 -123
- data/test/unit/product_test.rb +21 -0
- data/test/unit/return_authorization_test.rb +22 -28
- data/test/unit/shipment_test.rb +19 -7
- data/test/unit/variant_test.rb +100 -24
- data/vendor/extensions/api/api_extension.rb +2 -2
- data/vendor/extensions/api/app/controllers/api/base_controller.rb +14 -6
- data/vendor/extensions/api/app/controllers/api/countries_controller.rb +4 -0
- data/vendor/extensions/api/app/controllers/api/orders_controller.rb +4 -4
- data/vendor/extensions/api/app/controllers/api/products_controller.rb +5 -1
- data/vendor/extensions/api/app/controllers/api/shipments_controller.rb +7 -7
- data/vendor/extensions/api/app/controllers/api/states_controller.rb +5 -0
- data/vendor/extensions/api/config/locales/{en-US.yml → en.yml} +2 -2
- data/vendor/extensions/api/config/routes.rb +5 -0
- data/vendor/extensions/api/test/integration/orders_api_test.rb +4 -4
- data/vendor/extensions/overview_dashboard/app/views/admin/overview/index.html.erb +1 -1
- data/vendor/extensions/payment_gateway/app/models/gateway.rb +1 -1
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +41 -29
- data/vendor/extensions/payment_gateway/app/models/gateway/bogus.rb +3 -3
- data/vendor/extensions/payment_gateway/app/models/gateway/eway.rb +11 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/sage_pay.rb +9 -0
- data/vendor/extensions/payment_gateway/config/locales/{en-US.yml → en.yml} +1 -1
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +46 -56
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +9 -10
- data/vendor/extensions/payment_gateway/test/unit/authorize_net_cim_test.rb +7 -6
- data/vendor/extensions/theme_default/app/stylesheets/_checkout.less +10 -3
- data/vendor/extensions/theme_default/app/views/admin/adjustments/index.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/checkouts/_form.html.erb +31 -5
- data/vendor/extensions/theme_default/app/views/admin/checkouts/show.html.erb +27 -16
- data/vendor/extensions/theme_default/app/views/admin/images/_form.html.erb +4 -0
- data/vendor/extensions/theme_default/app/views/admin/images/index.html.erb +16 -13
- data/vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/orders/_form.html.erb +7 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/index.html.erb +5 -5
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb +12 -6
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/index.html.erb +22 -11
- data/vendor/extensions/theme_default/app/views/admin/product_groups/update.js.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/products/_form.html.erb +6 -4
- data/vendor/extensions/theme_default/app/views/admin/shared/_address_form.html.erb +64 -55
- data/vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shared/_order_tabs.html.erb +11 -3
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_tabs.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shipments/_form.html.erb +32 -29
- data/vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb +2 -1
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/_form.html.erb +6 -3
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/index.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_taxon.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/taxons/_form.html.erb +11 -1
- data/vendor/extensions/theme_default/app/views/admin/taxons/edit.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/admin/users/_form.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/variants/_form.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/checkouts/_confirm.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/checkouts/_delivery.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb +6 -6
- data/vendor/extensions/theme_default/app/views/checkouts/edit.html.erb +3 -3
- data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +7 -5
- data/vendor/extensions/theme_default/app/views/layouts/spree_application.html.erb +8 -4
- data/vendor/extensions/theme_default/app/views/orders/_line_item.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/products/index.html.erb +0 -1
- data/vendor/extensions/theme_default/app/views/shared/_footer.html.erb +4 -2
- data/vendor/extensions/theme_default/app/views/shared/_products.html.erb +3 -1
- data/vendor/extensions/theme_default/app/views/shared/_user_form.html.erb +1 -1
- data/vendor/extensions/theme_default/public/images/admin/bg/spree_50.png +0 -0
- data/vendor/extensions/theme_default/public/images/tile-header.png +0 -0
- data/vendor/extensions/theme_default/public/images/tile-slider.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/checkouts/edit.js +50 -0
- data/vendor/extensions/theme_default/public/javascripts/taxonomy.js +2 -2
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-tables.css +8 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +31 -16
- data/vendor/extensions/theme_default/public/stylesheets/screen.css +16 -3
- data/vendor/plugins/attribute_fu/{tasks → lib/tasks}/attribute_fu_tasks.rake +0 -0
- data/vendor/plugins/enumerable_constants/{tasks → lib/tasks}/enumerable_constants_tasks.rake +0 -0
- data/vendor/plugins/find_by_param/lib/find_by_param.rb +9 -5
- data/vendor/plugins/find_by_param/{tasks → lib/tasks}/find_by_param_tasks.rake +0 -0
- data/vendor/plugins/jrails/{tasks → lib/tasks}/jrails.rake +0 -0
- data/vendor/plugins/jrails_auto_complete/{tasks → lib/tasks}/jrails_auto_complete_tasks.rake +0 -0
- data/vendor/plugins/mail_queue/{tasks → lib/tasks}/mailer_queue_tasks.rake +0 -0
- data/vendor/plugins/open_id_authentication/{tasks → lib/tasks}/open_id_authentication_tasks.rake +0 -0
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb +2 -2
- data/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +7 -7
- data/vendor/plugins/unobtrusive_date_picker/{tasks → lib/tasks}/datepicker_tasks.rake +0 -0
- metadata +82 -342
- data/app/helpers/admin/adjustments_helper.rb +0 -2
- data/app/helpers/admin/checkouts_helper.rb +0 -2
- data/app/helpers/admin/line_items_helper.rb +0 -2
- data/app/helpers/admin/properties_helper.rb +0 -9
- data/app/helpers/admin/prototypes_helper.rb +0 -18
- data/app/helpers/admin/return_authorizations_helper.rb +0 -2
- data/config/locales/cs-CZ.yml +0 -924
- data/config/locales/cs-CZ_rails.yml +0 -202
- data/config/locales/da.yml +0 -924
- data/config/locales/da_rails.yml +0 -197
- data/config/locales/de-CH.yml +0 -924
- data/config/locales/de-CH_rails.yml +0 -142
- data/config/locales/de.yml +0 -924
- data/config/locales/de_rails.yml +0 -140
- data/config/locales/en-AU.yml +0 -924
- data/config/locales/en-AU_rails.yml +0 -202
- data/config/locales/en-GB.yml +0 -924
- data/config/locales/en-GB_rails.yml +0 -196
- data/config/locales/en-US_rails.yml +0 -200
- data/config/locales/es.yml +0 -924
- data/config/locales/es_rails.yml +0 -173
- data/config/locales/fi.yml +0 -924
- data/config/locales/fi_rails.yml +0 -143
- data/config/locales/fr-FR.yml +0 -924
- data/config/locales/fr-FR_rails.yml +0 -123
- data/config/locales/il.yml +0 -924
- data/config/locales/il_rails.yml +0 -103
- data/config/locales/it.yml +0 -924
- data/config/locales/it_rails.yml +0 -146
- data/config/locales/jp.yml +0 -924
- data/config/locales/jp_rails.yml +0 -135
- data/config/locales/mx.yml +0 -924
- data/config/locales/mx_rails.yml +0 -181
- data/config/locales/nb-NO.yml +0 -924
- data/config/locales/nb-NO_rails.yml +0 -105
- data/config/locales/nl-BE.yml +0 -924
- data/config/locales/nl-BE_rails.yml +0 -155
- data/config/locales/nl-NL.yml +0 -924
- data/config/locales/nl-NL_rails.yml +0 -172
- data/config/locales/pl.yml +0 -924
- data/config/locales/pl_rails.yml +0 -118
- data/config/locales/pt-BR.yml +0 -924
- data/config/locales/pt-BR_rails.yml +0 -138
- data/config/locales/pt-PT.yml +0 -924
- data/config/locales/pt-PT_rails.yml +0 -133
- data/config/locales/ru-RU.yml +0 -924
- data/config/locales/ru-RU_rails.yml +0 -206
- data/config/locales/th.yml +0 -924
- data/config/locales/th_rails.yml +0 -195
- data/config/locales/vn.yml +0 -924
- data/config/locales/vn_rails.yml +0 -202
- data/lib/tasks/translation.rake +0 -102
- data/vendor/extensions/localization/README.rdoc +0 -5
- data/vendor/extensions/localization/Rakefile +0 -120
- data/vendor/extensions/localization/app/controllers/admin/localization_controller.rb +0 -2
- data/vendor/extensions/localization/app/helpers/locale_helper.rb +0 -2
- data/vendor/extensions/localization/app/helpers/localization_helper.rb +0 -2
- data/vendor/extensions/localization/app/views/shared/_language_bar.html.erb +0 -8
- data/vendor/extensions/localization/config/routes.rb +0 -4
- data/vendor/extensions/localization/lib/localization/user_preferences.rb +0 -9
- data/vendor/extensions/localization/lib/tasks/localization_extension_tasks.rake +0 -17
- data/vendor/extensions/localization/localization_extension.rb +0 -21
- data/vendor/extensions/localization/public/images/flags/ad.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ae.png +0 -0
- data/vendor/extensions/localization/public/images/flags/af.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ag.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ai.png +0 -0
- data/vendor/extensions/localization/public/images/flags/al.png +0 -0
- data/vendor/extensions/localization/public/images/flags/am.png +0 -0
- data/vendor/extensions/localization/public/images/flags/an.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ao.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ar.png +0 -0
- data/vendor/extensions/localization/public/images/flags/as.png +0 -0
- data/vendor/extensions/localization/public/images/flags/at.png +0 -0
- data/vendor/extensions/localization/public/images/flags/au.png +0 -0
- data/vendor/extensions/localization/public/images/flags/aw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ax.png +0 -0
- data/vendor/extensions/localization/public/images/flags/az.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ba.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/be.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/br.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/by.png +0 -0
- data/vendor/extensions/localization/public/images/flags/bz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ca.png +0 -0
- data/vendor/extensions/localization/public/images/flags/catalonia.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ch.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ci.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ck.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/co.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cx.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/cz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/da.png +0 -0
- data/vendor/extensions/localization/public/images/flags/de.png +0 -0
- data/vendor/extensions/localization/public/images/flags/de_CH.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/do.png +0 -0
- data/vendor/extensions/localization/public/images/flags/dz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ec.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ee.png +0 -0
- data/vendor/extensions/localization/public/images/flags/eg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/eh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/england.png +0 -0
- data/vendor/extensions/localization/public/images/flags/er.png +0 -0
- data/vendor/extensions/localization/public/images/flags/es.png +0 -0
- data/vendor/extensions/localization/public/images/flags/et.png +0 -0
- data/vendor/extensions/localization/public/images/flags/europeanunion.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fam.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/fr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ga.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ge.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/gy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ht.png +0 -0
- data/vendor/extensions/localization/public/images/flags/hu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/id.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ie.png +0 -0
- data/vendor/extensions/localization/public/images/flags/il.png +0 -0
- data/vendor/extensions/localization/public/images/flags/in.png +0 -0
- data/vendor/extensions/localization/public/images/flags/io.png +0 -0
- data/vendor/extensions/localization/public/images/flags/iq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ir.png +0 -0
- data/vendor/extensions/localization/public/images/flags/is.png +0 -0
- data/vendor/extensions/localization/public/images/flags/it.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/jp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ke.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ki.png +0 -0
- data/vendor/extensions/localization/public/images/flags/km.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ky.png +0 -0
- data/vendor/extensions/localization/public/images/flags/kz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/la.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/li.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ls.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/lv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ly.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ma.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/md.png +0 -0
- data/vendor/extensions/localization/public/images/flags/me.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ml.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mo.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mp.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mq.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ms.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mx.png +0 -0
- data/vendor/extensions/localization/public/images/flags/my.png +0 -0
- data/vendor/extensions/localization/public/images/flags/mz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/na.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ne.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ng.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ni.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/no.png +0 -0
- data/vendor/extensions/localization/public/images/flags/np.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/nz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/om.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pe.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ph.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ps.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/pw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/py.png +0 -0
- data/vendor/extensions/localization/public/images/flags/qa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/re.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ro.png +0 -0
- data/vendor/extensions/localization/public/images/flags/rs.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ru.png +0 -0
- data/vendor/extensions/localization/public/images/flags/rw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sa.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sb.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/scotland.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sd.png +0 -0
- data/vendor/extensions/localization/public/images/flags/se.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sh.png +0 -0
- data/vendor/extensions/localization/public/images/flags/si.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/so.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/st.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/sz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/td.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/th.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tj.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tk.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tl.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/to.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tr.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tv.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tw.png +0 -0
- data/vendor/extensions/localization/public/images/flags/tz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ua.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ug.png +0 -0
- data/vendor/extensions/localization/public/images/flags/um.png +0 -0
- data/vendor/extensions/localization/public/images/flags/us.png +0 -0
- data/vendor/extensions/localization/public/images/flags/uy.png +0 -0
- data/vendor/extensions/localization/public/images/flags/uz.png +0 -0
- data/vendor/extensions/localization/public/images/flags/va.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vc.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ve.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vg.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vi.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vn.png +0 -0
- data/vendor/extensions/localization/public/images/flags/vu.png +0 -0
- data/vendor/extensions/localization/public/images/flags/wales.png +0 -0
- data/vendor/extensions/localization/public/images/flags/wf.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ws.png +0 -0
- data/vendor/extensions/localization/public/images/flags/ye.png +0 -0
- data/vendor/extensions/localization/public/images/flags/yt.png +0 -0
- data/vendor/extensions/localization/public/images/flags/za.png +0 -0
- data/vendor/extensions/localization/public/images/flags/zm.png +0 -0
- data/vendor/extensions/localization/public/images/flags/zw.png +0 -0
- data/vendor/extensions/localization/spec/controllers/admin/localization_controller_spec.rb +0 -10
- data/vendor/extensions/localization/spec/controllers/locale_controller_spec.rb +0 -35
- data/vendor/extensions/localization/spec/helpers/locale_helper_spec.rb +0 -5
- data/vendor/extensions/localization/spec/helpers/localization_helper_spec.rb +0 -5
- data/vendor/extensions/localization/spec/spec.opts +0 -6
- data/vendor/extensions/localization/spec/spec_helper.rb +0 -37
- data/vendor/extensions/payment_gateway/app/models/gateway/protx.rb +0 -9
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_manage_products.rhtml +0 -31
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_success.rhtml +0 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
jQuery('#preview_container').html('<%= escape_javascript( render('admin/product_groups/preview') ) %>');
|
2
2
|
flash_notice = jQuery('.flash.notice');
|
3
3
|
if (flash_notice) {
|
4
|
-
flash_notice.html('<%=
|
4
|
+
flash_notice.html('<%= self.notice %>');
|
5
5
|
} else {
|
6
|
-
jQuery('#content').prepend('<div class="flash notice"><%=
|
6
|
+
jQuery('#content').prepend('<div class="flash notice"><%= self.notice %></div>');
|
7
7
|
}
|
@@ -46,10 +46,12 @@
|
|
46
46
|
<%= f.text_field :sku, :size => 16 %>
|
47
47
|
</p>
|
48
48
|
<% unless @product.has_variants? %>
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
<% if Spree::Config[:track_inventory_levels] %>
|
50
|
+
<p>
|
51
|
+
<%= f.label :on_hand, t("on_hand")%><br />
|
52
|
+
<%= f.text_field :on_hand, :size => 4 %>
|
53
|
+
</p>
|
54
|
+
<% end %>
|
53
55
|
<ul id="shipping-specs">
|
54
56
|
<li>
|
55
57
|
<%= f.label :weight, t("weight")%>
|
@@ -1,60 +1,69 @@
|
|
1
1
|
<table class="index">
|
2
|
-
<
|
3
|
-
<th colspan="8"
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<td colspan="3"><%= f.text_field :firstname %></td>
|
10
|
-
<td>
|
11
|
-
<%= f.label :lastname, t(:last_name)+':' %>
|
12
|
-
</td>
|
13
|
-
<td colspan="3"><%= f.text_field :lastname %></td>
|
14
|
-
</tr>
|
15
|
-
<tr>
|
16
|
-
<td>
|
17
|
-
<%= f.label :address1, t(:street_address)+':' %>
|
18
|
-
</td>
|
19
|
-
<td colspan="3"><%= f.text_field :address1, :class => "fullwidth" %></td>
|
20
|
-
<td>
|
21
|
-
<%= f.label :address2, t(:street_address_2)+':' %>
|
22
|
-
</td>
|
23
|
-
<td colspan="3"><%= f.text_field :address2, :class => "fullwidth" %></td>
|
24
|
-
</tr>
|
25
|
-
<tr>
|
26
|
-
<td>
|
27
|
-
<%= f.label :city, t(:city)+':' %>
|
28
|
-
</td>
|
29
|
-
<td colspan="3"><%= f.text_field :city %></td>
|
30
|
-
<td>
|
31
|
-
<%= f.label :zipcode, t(:zip)+':' %>
|
32
|
-
</td>
|
33
|
-
<td colspan="3"><%= f.text_field :zipcode, :style => "width:100px;" %></td>
|
34
|
-
</tr>
|
35
|
-
<tr>
|
36
|
-
<td>
|
37
|
-
<%= f.label :state_id, t(:state)+':' %>
|
38
|
-
</td>
|
39
|
-
<td colspan="3">
|
40
|
-
<span id="<%= name==t('shipping_address') ? "s" : "b" %>state">
|
41
|
-
<%= f.text_field :state_name, :style => "width:150px;display:#{f.object.country.states.empty? ? 'block' : 'none' };", :disabled => !f.object.country.states.empty? %>
|
42
|
-
<%= f.collection_select :state_id, @states, :id, :name, {:include_blank => true}, {:style=> "width:150px;display:#{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
|
2
|
+
<thead>
|
3
|
+
<th colspan="8">
|
4
|
+
<%= name %>
|
5
|
+
<span class="right">
|
6
|
+
<% if use_billing %>
|
7
|
+
<%= check_box_tag 'checkout[use_billing]', '1', (!(@checkout.bill_address.empty? && @checkout.ship_address.empty?) && @checkout.bill_address.eql?(@checkout.ship_address)) %> <%= t("use_billing_address") %>
|
8
|
+
<% end %>
|
43
9
|
</span>
|
44
|
-
</
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
10
|
+
</th>
|
11
|
+
</thead>
|
12
|
+
<tbody id="<%= name == t('shipping_address') ? "shipping" : "billing" %>" style="display:<%= (use_billing && (!(@checkout.bill_address.empty? && @checkout.ship_address.empty?) && @checkout.bill_address.eql?(@checkout.ship_address))) ? "none" : "" %>">
|
13
|
+
<tr>
|
14
|
+
<td class="lbl-col">
|
15
|
+
<%= f.label :firstname, t(:first_name)+':' %>
|
16
|
+
</td>
|
17
|
+
<td class="val-col" colspan="3"><%= f.text_field :firstname %></td>
|
18
|
+
<td class="lbl-col">
|
19
|
+
<%= f.label :lastname, t(:last_name)+':' %>
|
20
|
+
</td>
|
21
|
+
<td class="val-col" colspan="3"><%= f.text_field :lastname %></td>
|
22
|
+
</tr>
|
23
|
+
<tr>
|
24
|
+
<td class="lbl-col">
|
25
|
+
<%= f.label :address1, t(:street_address)+':' %>
|
26
|
+
</td>
|
27
|
+
<td colspan="3"><%= f.text_field :address1, :class => "fullwidth" %></td>
|
28
|
+
<td class="lbl-col">
|
29
|
+
<%= f.label :address2, t(:street_address_2)+':' %>
|
30
|
+
</td>
|
31
|
+
<td colspan="3"><%= f.text_field :address2, :class => "fullwidth" %></td>
|
32
|
+
</tr>
|
33
|
+
<tr>
|
34
|
+
<td class="lbl-col">
|
35
|
+
<%= f.label :city, t(:city)+':' %>
|
36
|
+
</td>
|
37
|
+
<td colspan="3"><%= f.text_field :city %></td>
|
38
|
+
<td class="lbl-col">
|
39
|
+
<%= f.label :zipcode, t(:zip)+':' %>
|
40
|
+
</td>
|
41
|
+
<td colspan="3"><%= f.text_field :zipcode, :style => "width:100px;" %></td>
|
42
|
+
</tr>
|
43
|
+
<tr>
|
44
|
+
<td class="lbl-col">
|
45
|
+
<%= f.label :state_id, t(:state)+':' %>
|
46
|
+
</td>
|
47
|
+
<td colspan="3">
|
48
|
+
<span id="<%= name==t('shipping_address') ? "s" : "b" %>state">
|
49
|
+
<%= f.text_field :state_name, :style => "width:150px;display:#{f.object.country.states.empty? ? 'block' : 'none' };", :disabled => !f.object.country.states.empty? %>
|
50
|
+
<%= f.collection_select :state_id, @states, :id, :name, {:include_blank => true}, {:style=> "width:150px;display:#{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
|
51
|
+
</span>
|
52
|
+
</td>
|
53
|
+
<td class="lbl-col">
|
54
|
+
<%= f.label :country_id, t(:country)+':' %>
|
55
|
+
</td>
|
56
|
+
<td colspan="3">
|
57
|
+
<span id="<%= name==t('shipping_address') ? "s" : "b" %>country"><%= f.collection_select :country_id, @countries, :id, :name, {}, {:style => 'width:150px;'} %></span>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
<tr>
|
61
|
+
<td class="lbl-col">
|
62
|
+
<%= f.label :phone, t(:phone)+':' %>
|
63
|
+
</td>
|
64
|
+
<td colspan="7"><%= f.text_field :phone %></td>
|
65
|
+
</tr>
|
66
|
+
</tbody>
|
58
67
|
</table>
|
59
68
|
|
60
69
|
<% content_for :head do %>
|
@@ -1,7 +1,12 @@
|
|
1
1
|
<h1><%= t(:order) + " #{@order.number}" %></h1>
|
2
2
|
|
3
3
|
<% content_for :sidebar do %>
|
4
|
-
<
|
4
|
+
<div id="order_tab_summary">
|
5
|
+
<h3 id="order_number"><%= t(:order) + " ##{@order.number} " %></h3>
|
6
|
+
<h5 id="order_status">Status: <%= t(@order.state) %></h5>
|
7
|
+
<h5 id="order_total">Total: <%= number_to_currency(@order.total) %></h5>
|
8
|
+
<br class="clear" />
|
9
|
+
</div>
|
5
10
|
<br class="clear" />
|
6
11
|
|
7
12
|
<ul class="sidebar">
|
@@ -14,10 +19,13 @@
|
|
14
19
|
<%= link_to t("customer_details"), edit_admin_order_checkout_url(@order) %>
|
15
20
|
</li>
|
16
21
|
<li <%= ' class="active"' if current == "Shipments" %>>
|
17
|
-
<%= link_to t("shipment"), edit_admin_order_shipment_url(@order, @order.shipment) %>
|
22
|
+
<%= link_to t("shipment"), @order.line_items.empty? || !@order.checkout.valid? ? "javascript:$('form').submit();" : edit_admin_order_shipment_url(@order, @order.shipment) %>
|
23
|
+
</li>
|
24
|
+
<li <%= ' class="active"' if current == "Adjustments" %>>
|
25
|
+
<%= link_to t("adjustments"), @order.line_items.empty? || !@order.checkout.valid? ? "javascript:$('form').submit();" : admin_order_adjustments_url(@order) %>
|
18
26
|
</li>
|
19
27
|
<li <%= ' class="active"' if current == "Payments" %>>
|
20
|
-
<%= link_to t("payment"),
|
28
|
+
<%= link_to t("payment"), @order.line_items.empty? || !@order.checkout.valid? ? "javascript:$('form').submit();" : new_admin_order_payment_url(@order) %>
|
21
29
|
</li>
|
22
30
|
|
23
31
|
<% else %>
|
@@ -1,40 +1,43 @@
|
|
1
1
|
<%- locals = {:shipment_form => shipment_form} -%>
|
2
|
-
<% hook :admin_shipment_form_inventory_units, locals do %>
|
3
|
-
<table class="index" style="width:100%;">
|
4
|
-
<tr>
|
5
|
-
<th width="130px"><%= t('include_in_shipment') %></th>
|
6
|
-
<th><%= t('sku') %></th>
|
7
|
-
<th><%= t('item_description') %></th>
|
8
|
-
<th><%= t('status') %></th>
|
9
|
-
<th><%= t('note') %></th>
|
10
|
-
</tr>
|
11
2
|
|
12
|
-
|
3
|
+
<% unless @shipment.order.in_progress? %>
|
4
|
+
<% hook :admin_shipment_form_inventory_units, locals do %>
|
5
|
+
<table class="index" style="width:100%;">
|
13
6
|
<tr>
|
14
|
-
<
|
15
|
-
|
16
|
-
|
17
|
-
<
|
18
|
-
<
|
19
|
-
<%=inventory_unit.variant.product.name %>
|
20
|
-
<%= "(" + variant_options(inventory_unit.variant) + ")" unless inventory_unit.variant.option_values.empty? %>
|
21
|
-
</td>
|
22
|
-
<td><%= t(inventory_unit.state) %></td>
|
23
|
-
<td>
|
24
|
-
<% if inventory_unit.shipment == @shipment %>
|
25
|
-
<%= t('included_in_this_shipment') %>
|
26
|
-
<% elsif !inventory_unit.shipment_id.nil? %>
|
27
|
-
<%= t('included_in_other_shipment') %> - <%= link_to inventory_unit.shipment.number, edit_admin_order_shipment_url(inventory_unit.order, inventory_unit.shipment_id) %>
|
28
|
-
<% end %>
|
29
|
-
</td>
|
7
|
+
<th width="130px"><%= t('include_in_shipment') %></th>
|
8
|
+
<th><%= t('sku') %></th>
|
9
|
+
<th><%= t('item_description') %></th>
|
10
|
+
<th><%= t('status') %></th>
|
11
|
+
<th><%= t('note') %></th>
|
30
12
|
</tr>
|
31
|
-
|
32
|
-
|
13
|
+
|
14
|
+
<% @shipment.order.inventory_units.each do |inventory_unit| %>
|
15
|
+
<tr>
|
16
|
+
<td style="text-align:center;">
|
17
|
+
<%= check_box_tag "inventory_units[#{inventory_unit.id}]", :true, (inventory_unit.shipment == @shipment),{:disabled => %w(shipped backordered).include?(inventory_unit.state)} %>
|
18
|
+
</td>
|
19
|
+
<td valign="top" width="120px;"><%= inventory_unit.variant.sku %></td>
|
20
|
+
<td width="300">
|
21
|
+
<%=inventory_unit.variant.product.name %>
|
22
|
+
<%= "(" + variant_options(inventory_unit.variant) + ")" unless inventory_unit.variant.option_values.empty? %>
|
23
|
+
</td>
|
24
|
+
<td><%= t(inventory_unit.state) %></td>
|
25
|
+
<td>
|
26
|
+
<% if inventory_unit.shipment == @shipment %>
|
27
|
+
<%= t('included_in_this_shipment') %>
|
28
|
+
<% elsif !inventory_unit.shipment_id.nil? %>
|
29
|
+
<%= t('included_in_other_shipment') %> - <%= link_to inventory_unit.shipment.number, edit_admin_order_shipment_url(inventory_unit.order, inventory_unit.shipment) %>
|
30
|
+
<% end %>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
<% end %>
|
34
|
+
</table>
|
35
|
+
<% end %>
|
33
36
|
<% end %>
|
34
37
|
|
35
38
|
<% hook :admin_shipment_form_address, locals do %>
|
36
39
|
<% shipment_form.fields_for 'address' do |sa_form| %>
|
37
|
-
<%= render :partial => 'admin/shared/address_form', :locals => {:f => sa_form, :name => t("shipping_address")} %>
|
40
|
+
<%= render :partial => 'admin/shared/address_form', :locals => {:f => sa_form, :name => t("shipping_address"), :use_billing => false} %>
|
38
41
|
<% end %>
|
39
42
|
<% end %>
|
40
43
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
</th>
|
23
23
|
</tr>
|
24
24
|
<% @shipments.each do |shipment| %>
|
25
|
-
<tr>
|
25
|
+
<tr id="<%= dom_id shipment %>">
|
26
26
|
<%- locals = {:shipment => shipment} -%>
|
27
27
|
<% hook :admin_shipments_index_rows, locals do %>
|
28
28
|
<td><%= shipment.number %></td>
|
@@ -35,6 +35,7 @@
|
|
35
35
|
<td class="actions">
|
36
36
|
<% hook :admin_shipments_index_row_actions, locals do %>
|
37
37
|
<%= link_to_with_icon 'edit', t('edit'), edit_admin_order_shipment_url(@order, shipment) %>
|
38
|
+
<%= link_to_delete shipment, :url => admin_order_shipment_url(@order, shipment) %>
|
38
39
|
<% end %>
|
39
40
|
</td>
|
40
41
|
</tr>
|
@@ -2,8 +2,11 @@
|
|
2
2
|
<%= f.label :name, t("name")%><br />
|
3
3
|
<%=f.text_field :name %>
|
4
4
|
<% end %>
|
5
|
-
|
5
|
+
<% f.field_container :description do %>
|
6
6
|
<%= f.label :description, t("description")%><br />
|
7
7
|
<%=f.text_field :description %>
|
8
|
-
|
9
|
-
|
8
|
+
<% end %>
|
9
|
+
<% f.field_container :is_default do %>
|
10
|
+
<%= f.label :is_default, t("default")%><br />
|
11
|
+
<%=f.check_box :is_default %>
|
12
|
+
<% end %>
|
@@ -16,6 +16,7 @@
|
|
16
16
|
<tr>
|
17
17
|
<th><%= t("name") %></th>
|
18
18
|
<th><%= t("description") %></th>
|
19
|
+
<th><%= t("default") %></th>
|
19
20
|
<th></th>
|
20
21
|
</tr>
|
21
22
|
</thead>
|
@@ -24,14 +25,15 @@
|
|
24
25
|
<tr id="<%= dom_id tax_category %>">
|
25
26
|
<td><%= tax_category.name %></td>
|
26
27
|
<td><%= tax_category.description %></td>
|
28
|
+
<td><%= tax_category.is_default.to_s.titleize %></td>
|
27
29
|
<td class="actions">
|
28
|
-
<%=link_to_edit tax_category %>
|
30
|
+
<%=link_to_edit tax_category %>
|
29
31
|
<%=link_to_delete tax_category %>
|
30
32
|
</tr>
|
31
33
|
<% end %>
|
32
34
|
<% if @tax_categories.empty? %>
|
33
35
|
<tr><td colspan="3"><%= t(:none) %></td></tr>
|
34
|
-
<% end %>
|
36
|
+
<% end %>
|
35
37
|
</tbody>
|
36
38
|
</table>
|
37
39
|
|
@@ -2,11 +2,11 @@
|
|
2
2
|
<ul>
|
3
3
|
<% taxon.children.each do |child| %>
|
4
4
|
<li id="<%= child.id %>" rel="taxon">
|
5
|
-
<a href="#"><%= child.name %></a>
|
5
|
+
<a style="background-image: url(<%=child.icon.url%>)" href="#"><%= child.name %></a>
|
6
6
|
<% if child.children.length > 0 %>
|
7
7
|
<%= render :partial => "taxon", :locals => {:taxon => child} %>
|
8
8
|
<% end %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
</ul>
|
12
|
-
<% end %>
|
12
|
+
<% end %>
|
@@ -8,6 +8,16 @@
|
|
8
8
|
<% f.field_container :permalink_part do %>
|
9
9
|
<%= f.label :permalink_part, t("permalink") %><span class="required">*</span><br />
|
10
10
|
<%= @taxon.permalink.split("/")[0...-1].join("/") + "/" %><%= text_field_tag :permalink_part, @permalink_part %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% f.field_container :icon do %>
|
14
|
+
<%= f.label :icon, t('icon') %><br />
|
15
|
+
<%= f.file_field :icon %>
|
16
|
+
<% end %>
|
11
17
|
|
18
|
+
<% f.field_container :icon do %>
|
19
|
+
<%= f.label :description, t(:description) %><br />
|
20
|
+
<%= f.text_area :description %></p>
|
12
21
|
<% end %>
|
13
|
-
|
22
|
+
|
23
|
+
<% end %>
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
<h1><%= t("taxon_edit")%></h1>
|
4
4
|
|
5
|
-
<% form_for(:taxon, :url => admin_taxonomy_taxon_url, :html => { :method => :put }) do |f| %>
|
5
|
+
<% form_for(:taxon, :url => admin_taxonomy_taxon_url, :html => { :method => :put, :multipart => true}) do |f| %>
|
6
6
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
7
7
|
|
8
8
|
<p class="form-buttons">
|
9
9
|
<%= button t("update") %> <%= t("or") %> <%= link_to t("cancel"), edit_admin_taxonomy_url(@taxonomy) %>
|
10
10
|
</p>
|
11
|
-
<% end %>
|
11
|
+
<% end %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<% f.field_container :password do %>
|
16
|
-
<%= f.label :password_confirmation, t(
|
16
|
+
<%= f.label :password_confirmation, t(:confirm_password) %><br />
|
17
17
|
<%= f.password_field :password_confirmation %>
|
18
18
|
<%= f.error_message_on :password_confirmation %>
|
19
19
|
<% end %>
|
@@ -25,8 +25,10 @@
|
|
25
25
|
<p><%= f.label :cost_price, t("cost_price") %>:<br />
|
26
26
|
<%= f.text_field :cost_price, :value => number_with_precision(@variant.cost_price, :precision => 2) %></p>
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
<% if Spree::Config[:track_inventory_levels] %>
|
29
|
+
<p><%= f.label :on_hand, t("on_hand") %>: <br />
|
30
|
+
<%= f.text_field :on_hand %></p>
|
31
|
+
<% end %>
|
30
32
|
</div>
|
31
33
|
<div class="yui-u">
|
32
34
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<% @available_methods.each do |shipping_method| %>
|
12
12
|
<label>
|
13
13
|
<%= radio_button(:checkout, :shipping_method_id, shipping_method[:id]) %>
|
14
|
-
<%= shipping_method[:name] %> <%= shipping_method[:
|
14
|
+
<%= shipping_method[:name] %> <%= number_to_currency shipping_method[:cost] %>
|
15
15
|
</label><br />
|
16
16
|
<% end %>
|
17
17
|
<% end %>
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<h3><%= t(:order_summary) %></h3>
|
1
|
+
<h3><%= t(:order_summary) %></h3>
|
2
2
|
<table>
|
3
3
|
<tbody>
|
4
4
|
<tr>
|
5
5
|
<td><strong><%= t('item_total') %>:</strong></td>
|
6
6
|
<td><strong><%= number_to_currency @order.item_total %></strong></td>
|
7
|
-
</tr>
|
7
|
+
</tr>
|
8
8
|
<tbody id="summary-order-charges">
|
9
9
|
<% @order.charges.each do |charge| %>
|
10
10
|
<tr>
|
11
11
|
<td><%= charge.description %>: </td>
|
12
12
|
<td><%= number_to_currency charge.amount -%></td>
|
13
13
|
</tr>
|
14
|
-
<% end %>
|
14
|
+
<% end %>
|
15
15
|
</tbody>
|
16
16
|
<tbody id="summary-order-credits">
|
17
17
|
<% @order.credits.each do |credit| %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<td><%= credit.description %>: </td>
|
20
20
|
<td>(<%= number_to_currency credit.amount %>)</td>
|
21
21
|
</tr>
|
22
|
-
<% end %>
|
22
|
+
<% end %>
|
23
23
|
</tbody>
|
24
24
|
<tr>
|
25
25
|
<td><strong><%= t('order_total') %>:</strong></td>
|
@@ -28,10 +28,10 @@
|
|
28
28
|
</tbody>
|
29
29
|
</table>
|
30
30
|
<% unless @prev_state.blank? %>
|
31
|
-
<% form_for @checkout, :url => object_url, :html => { :id => 'checkout-summary-form'} do |summary_form| %>
|
31
|
+
<% form_for @checkout, :url => object_url, :html => { :id => 'checkout-summary-form'} do |summary_form| %>
|
32
32
|
<label><%= t(:coupon_code) %></label>
|
33
33
|
<%= summary_form.text_field :coupon_code, :id => 'coupon-code', :size => 14 %>
|
34
|
-
<input id="post-summary" type="submit"
|
34
|
+
<input id="post-summary" type="submit" value="Apply"/>
|
35
35
|
<input type="hidden" name="step" value="<%= @prev_state %>"/>
|
36
36
|
<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'coupon_busy_indicator' %>
|
37
37
|
<% end -%>
|