spree 0.11.0 → 0.11.1
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 +457 -425
- data/{README.markdown → README.md} +4 -0
- data/Rakefile +2 -2
- data/app/controllers/admin/adjustments_controller.rb +8 -9
- data/app/controllers/admin/checkouts_controller.rb +10 -2
- data/app/controllers/admin/line_items_controller.rb +0 -1
- data/app/controllers/admin/payments_controller.rb +8 -7
- data/app/controllers/admin/shipments_controller.rb +1 -1
- data/app/controllers/checkouts_controller.rb +16 -5
- data/app/controllers/spree/base_controller.rb +2 -2
- data/app/helpers/admin/navigation_helper.rb +1 -1
- data/app/helpers/checkouts_helper.rb +1 -1
- data/app/helpers/products_helper.rb +1 -1
- data/app/helpers/taxons_helper.rb +1 -1
- data/app/models/address.rb +9 -0
- data/app/models/checkout.rb +13 -7
- data/app/models/creditcard.rb +2 -2
- data/app/models/model_cache_cleaner.rb +13 -0
- data/app/models/order.rb +6 -8
- data/app/models/payment.rb +18 -17
- data/app/models/payment_method.rb +2 -2
- data/app/models/product.rb +1 -2
- data/app/models/return_authorization.rb +3 -1
- data/app/models/shipping_method.rb +16 -6
- data/app/models/zone.rb +34 -3
- data/config/database.yml +4 -21
- data/config/environment.rb +6 -6
- data/config/environments/test.rb +1 -0
- data/config/locales/en_spree.yml +10 -9
- data/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
- data/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
- data/db/sample/orders.yml +3 -3
- data/db/sample/payments.rb +6 -5
- data/db/sample/products.rb +2 -2
- data/db/schema.rb +9 -27
- data/lib/easy_role_requirement_system.rb +1 -1
- data/lib/generators/extension/extension_generator.rb +7 -22
- data/lib/generators/extension/templates/functional_test.rb +1 -1
- data/lib/generators/extension/templates/tasks.rake +2 -2
- data/lib/generators/extension_controller/extension_controller_generator.rb +1 -1
- data/lib/generators/extension_model/extension_model_generator.rb +1 -1
- data/lib/generators/instance/instance_generator.rb +24 -24
- data/lib/generators/instance/templates/instance_generate +1 -1
- data/lib/generators/theme/theme_generator.rb +6 -10
- data/lib/plugins/extension_patches/lib/asset_copy.rb +2 -2
- data/lib/spree.rb +1 -1
- data/lib/spree/initializer.rb +15 -15
- data/lib/spree/search.rb +1 -1
- data/lib/tasks/cucumber.rake +1 -1
- data/lib/tasks/extensions.rake +6 -6
- data/lib/tasks/framework.rake +1 -1
- data/lib/tasks/instance.rake +6 -6
- data/lib/validation_group.rb +16 -16
- data/script/extension +2 -2
- data/test/functional/products_controller_test.rb +13 -0
- data/test/test_helper.rb +1 -1
- data/test/unit/checkout_test.rb +18 -9
- data/vendor/extensions/README +1 -1
- data/vendor/extensions/api/Rakefile +2 -2
- data/vendor/extensions/api/lib/tasks/api_extension_tasks.rake +2 -2
- data/vendor/extensions/overview_dashboard/Rakefile +2 -2
- data/vendor/extensions/overview_dashboard/app/views/admin/overview/index.html.erb +5 -5
- data/vendor/extensions/overview_dashboard/lib/tasks/overview_dashboard_extension_tasks.rake +2 -2
- data/vendor/extensions/payment_gateway/Rakefile +2 -2
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +6 -2
- data/vendor/extensions/payment_gateway/app/models/gateway/braintree.rb +88 -0
- data/vendor/extensions/payment_gateway/config/locales/en.yml +2 -1
- data/vendor/extensions/payment_gateway/lib/active_merchant/billing/authorize_net_cim.rb +4 -2
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +1 -1
- data/vendor/extensions/payment_gateway/lib/tasks/payment_gateway_extension_tasks.rake +2 -2
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +1 -0
- data/vendor/extensions/payment_gateway/test/unit/authorize_net_cim_test.rb +2 -1
- data/vendor/extensions/payment_gateway/test/unit/braintree_test.rb +200 -0
- data/vendor/extensions/theme_default/Rakefile +2 -2
- data/vendor/extensions/theme_default/app/stylesheets/_buttons.less +7 -2
- data/vendor/extensions/theme_default/app/stylesheets/_colors.less +1 -1
- data/vendor/extensions/theme_default/app/stylesheets/_layout.less +7 -2
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb +3 -4
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/index.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shared/_additional_field.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shared/_calculator_fields.html.erb +6 -6
- data/vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb +13 -13
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_tabs.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/index.html.erb +2 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_address.html.erb +7 -9
- data/vendor/extensions/theme_default/app/views/checkouts/_payment.html.erb +4 -4
- data/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb +4 -4
- data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +36 -35
- data/vendor/extensions/theme_default/app/views/products/_thumbnails.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/shared/_head.html.erb +2 -2
- data/vendor/extensions/theme_default/app/views/shared/_products.html.erb +1 -1
- data/vendor/extensions/theme_default/app/views/states/index.js.erb +1 -1
- data/vendor/extensions/theme_default/lib/tasks/theme_default_extension_tasks.rake +2 -2
- data/vendor/extensions/theme_default/public/favicon.ico +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/header.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/calculator.js +3 -1
- data/vendor/extensions/theme_default/public/javascripts/checkout.js +44 -18
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +29 -24
- data/vendor/extensions/theme_default/public/stylesheets/screen.css +9 -7
- data/vendor/plugins/attribute_fu/init.rb +2 -2
- data/vendor/plugins/delegate_belongs_to/spec/spec_helper.rb +1 -1
- data/vendor/plugins/jrails/install.rb +1 -1
- data/vendor/plugins/jrails/lib/tasks/jrails.rake +2 -2
- data/vendor/plugins/jrails_auto_complete/install.rb +1 -1
- data/vendor/plugins/jrails_auto_complete/uninstall.rb +1 -1
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication.rb +1 -1
- metadata +59 -659
- data/lib/generators/extension/templates/RSpecRakefile +0 -137
- data/lib/generators/extension/templates/spec.opts +0 -6
- data/lib/generators/extension/templates/spec_helper.rb +0 -37
- data/lib/generators/extension_controller/templates/controller_spec.rb +0 -23
- data/lib/generators/extension_controller/templates/helper_spec.rb +0 -11
- data/lib/generators/extension_controller/templates/view_spec.rb +0 -12
- data/lib/generators/extension_model/templates/model_spec.rb +0 -11
- data/lib/tasks/rspec.rake +0 -182
- data/public/images/add-to-cart.png +0 -0
- data/public/images/admin/bg/active-tab.png +0 -0
- data/public/images/admin/bg/admin_tab_back.png +0 -0
- data/public/images/admin/bg/admin_tab_selected_back.png +0 -0
- data/public/images/admin/bg/content-back-blue.png +0 -0
- data/public/images/admin/bg/content-back-green.png +0 -0
- data/public/images/admin/bg/content-back.png +0 -0
- data/public/images/admin/bg/flash-error.png +0 -0
- data/public/images/admin/bg/flash-notice.png +0 -0
- data/public/images/admin/bg/green-stripes.gif +0 -0
- data/public/images/admin/bg/green-stripes.png +0 -0
- data/public/images/admin/bg/grid_header_back.png +0 -0
- data/public/images/admin/bg/grid_header_back_green.png +0 -0
- data/public/images/admin/bg/header-bg.png +0 -0
- data/public/images/admin/bg/header_bg.jpg +0 -0
- data/public/images/admin/bg/menu-current.png +0 -0
- data/public/images/admin/bg/red-stripes.gif +0 -0
- data/public/images/admin/bg/red-stripes.png +0 -0
- data/public/images/admin/bg/spree_50.png +0 -0
- data/public/images/admin/bg/subnav-divider.png +0 -0
- data/public/images/admin/bg/subnav.png +0 -0
- data/public/images/admin/bg/tab-back.png +0 -0
- data/public/images/admin/buttons/blue/left_01.png +0 -0
- data/public/images/admin/buttons/blue/right_01.png +0 -0
- data/public/images/admin/buttons/drag-handle-green.png +0 -0
- data/public/images/admin/buttons/green/left_01.png +0 -0
- data/public/images/admin/buttons/green/right_01.png +0 -0
- data/public/images/admin/buttons/left_01.png +0 -0
- data/public/images/admin/buttons/left_01_small.png +0 -0
- data/public/images/admin/buttons/orange/left_03.png +0 -0
- data/public/images/admin/buttons/orange/right_03.png +0 -0
- data/public/images/admin/buttons/right_01.png +0 -0
- data/public/images/admin/buttons/right_01_small.png +0 -0
- data/public/images/admin/icons/16x16/1.png +0 -0
- data/public/images/admin/icons/16x16/10.png +0 -0
- data/public/images/admin/icons/16x16/2.png +0 -0
- data/public/images/admin/icons/16x16/3.png +0 -0
- data/public/images/admin/icons/16x16/4.png +0 -0
- data/public/images/admin/icons/16x16/5.png +0 -0
- data/public/images/admin/icons/16x16/6.png +0 -0
- data/public/images/admin/icons/16x16/7.png +0 -0
- data/public/images/admin/icons/16x16/8.png +0 -0
- data/public/images/admin/icons/16x16/9.png +0 -0
- data/public/images/admin/icons/32x32/1.png +0 -0
- data/public/images/admin/icons/32x32/10.png +0 -0
- data/public/images/admin/icons/32x32/11.png +0 -0
- data/public/images/admin/icons/32x32/2.png +0 -0
- data/public/images/admin/icons/32x32/3.png +0 -0
- data/public/images/admin/icons/32x32/4.png +0 -0
- data/public/images/admin/icons/32x32/5.png +0 -0
- data/public/images/admin/icons/32x32/6.png +0 -0
- data/public/images/admin/icons/32x32/7.png +0 -0
- data/public/images/admin/icons/32x32/8.png +0 -0
- data/public/images/admin/icons/32x32/9.png +0 -0
- data/public/images/admin/icons/accept.png +0 -0
- data/public/images/admin/icons/add.gif +0 -0
- data/public/images/admin/icons/add.png +0 -0
- data/public/images/admin/icons/arrow-down.gif +0 -0
- data/public/images/admin/icons/cross.png +0 -0
- data/public/images/admin/icons/delete.gif +0 -0
- data/public/images/admin/icons/delete.png +0 -0
- data/public/images/admin/icons/drag.gif +0 -0
- data/public/images/admin/icons/edit.gif +0 -0
- data/public/images/admin/icons/edit.png +0 -0
- data/public/images/admin/icons/email.png +0 -0
- data/public/images/admin/icons/error.png +0 -0
- data/public/images/admin/icons/exclamation.png +0 -0
- data/public/images/admin/icons/feed.png +0 -0
- data/public/images/admin/icons/pdf.png +0 -0
- data/public/images/admin/icons/reorder.gif +0 -0
- data/public/images/admin/icons/search.gif +0 -0
- data/public/images/admin/icons/send-email.png +0 -0
- data/public/images/admin/icons/stop.png +0 -0
- data/public/images/admin/icons/tick.png +0 -0
- data/public/images/admin/icons/up.gif +0 -0
- data/public/images/admin/icons/xls.png +0 -0
- 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/amex_cid.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/checkout.png +0 -0
- data/public/images/creditcard.gif +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/cal.gif +0 -0
- data/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/public/images/discover_cid.gif +0 -0
- data/public/images/drag-handle-green.png +0 -0
- data/public/images/flags/ad.png +0 -0
- data/public/images/flags/ae.png +0 -0
- data/public/images/flags/af.png +0 -0
- data/public/images/flags/ag.png +0 -0
- data/public/images/flags/ai.png +0 -0
- data/public/images/flags/al.png +0 -0
- data/public/images/flags/am.png +0 -0
- data/public/images/flags/an.png +0 -0
- data/public/images/flags/ao.png +0 -0
- data/public/images/flags/ar.png +0 -0
- data/public/images/flags/as.png +0 -0
- data/public/images/flags/at.png +0 -0
- data/public/images/flags/au.png +0 -0
- data/public/images/flags/aw.png +0 -0
- data/public/images/flags/ax.png +0 -0
- data/public/images/flags/az.png +0 -0
- data/public/images/flags/ba.png +0 -0
- data/public/images/flags/bb.png +0 -0
- data/public/images/flags/bd.png +0 -0
- data/public/images/flags/be.png +0 -0
- data/public/images/flags/bf.png +0 -0
- data/public/images/flags/bg.png +0 -0
- data/public/images/flags/bh.png +0 -0
- data/public/images/flags/bi.png +0 -0
- data/public/images/flags/bj.png +0 -0
- data/public/images/flags/bm.png +0 -0
- data/public/images/flags/bn.png +0 -0
- data/public/images/flags/bo.png +0 -0
- data/public/images/flags/br.png +0 -0
- data/public/images/flags/bs.png +0 -0
- data/public/images/flags/bt.png +0 -0
- data/public/images/flags/bv.png +0 -0
- data/public/images/flags/bw.png +0 -0
- data/public/images/flags/by.png +0 -0
- data/public/images/flags/bz.png +0 -0
- data/public/images/flags/ca.png +0 -0
- data/public/images/flags/catalonia.png +0 -0
- data/public/images/flags/cc.png +0 -0
- data/public/images/flags/cd.png +0 -0
- data/public/images/flags/cf.png +0 -0
- data/public/images/flags/cg.png +0 -0
- data/public/images/flags/ch.png +0 -0
- data/public/images/flags/ci.png +0 -0
- data/public/images/flags/ck.png +0 -0
- data/public/images/flags/cl.png +0 -0
- data/public/images/flags/cm.png +0 -0
- data/public/images/flags/cn.png +0 -0
- data/public/images/flags/co.png +0 -0
- data/public/images/flags/cr.png +0 -0
- data/public/images/flags/cs.png +0 -0
- data/public/images/flags/cu.png +0 -0
- data/public/images/flags/cv.png +0 -0
- data/public/images/flags/cx.png +0 -0
- data/public/images/flags/cy.png +0 -0
- data/public/images/flags/cz.png +0 -0
- data/public/images/flags/da.png +0 -0
- data/public/images/flags/de.png +0 -0
- data/public/images/flags/de_CH.png +0 -0
- data/public/images/flags/dj.png +0 -0
- data/public/images/flags/dm.png +0 -0
- data/public/images/flags/do.png +0 -0
- data/public/images/flags/dz.png +0 -0
- data/public/images/flags/ec.png +0 -0
- data/public/images/flags/ee.png +0 -0
- data/public/images/flags/eg.png +0 -0
- data/public/images/flags/eh.png +0 -0
- data/public/images/flags/england.png +0 -0
- data/public/images/flags/er.png +0 -0
- data/public/images/flags/es.png +0 -0
- data/public/images/flags/et.png +0 -0
- data/public/images/flags/europeanunion.png +0 -0
- data/public/images/flags/fam.png +0 -0
- data/public/images/flags/fi.png +0 -0
- data/public/images/flags/fj.png +0 -0
- data/public/images/flags/fk.png +0 -0
- data/public/images/flags/fm.png +0 -0
- data/public/images/flags/fo.png +0 -0
- data/public/images/flags/fr.png +0 -0
- data/public/images/flags/ga.png +0 -0
- data/public/images/flags/gb.png +0 -0
- data/public/images/flags/gd.png +0 -0
- data/public/images/flags/ge.png +0 -0
- data/public/images/flags/gf.png +0 -0
- data/public/images/flags/gh.png +0 -0
- data/public/images/flags/gi.png +0 -0
- data/public/images/flags/gl.png +0 -0
- data/public/images/flags/gm.png +0 -0
- data/public/images/flags/gn.png +0 -0
- data/public/images/flags/gp.png +0 -0
- data/public/images/flags/gq.png +0 -0
- data/public/images/flags/gr.png +0 -0
- data/public/images/flags/gs.png +0 -0
- data/public/images/flags/gt.png +0 -0
- data/public/images/flags/gu.png +0 -0
- data/public/images/flags/gw.png +0 -0
- data/public/images/flags/gy.png +0 -0
- data/public/images/flags/hk.png +0 -0
- data/public/images/flags/hm.png +0 -0
- data/public/images/flags/hn.png +0 -0
- data/public/images/flags/hr.png +0 -0
- data/public/images/flags/ht.png +0 -0
- data/public/images/flags/hu.png +0 -0
- data/public/images/flags/id.png +0 -0
- data/public/images/flags/ie.png +0 -0
- data/public/images/flags/il.png +0 -0
- data/public/images/flags/in.png +0 -0
- data/public/images/flags/io.png +0 -0
- data/public/images/flags/iq.png +0 -0
- data/public/images/flags/ir.png +0 -0
- data/public/images/flags/is.png +0 -0
- data/public/images/flags/it.png +0 -0
- data/public/images/flags/jm.png +0 -0
- data/public/images/flags/jo.png +0 -0
- data/public/images/flags/jp.png +0 -0
- data/public/images/flags/ke.png +0 -0
- data/public/images/flags/kg.png +0 -0
- data/public/images/flags/kh.png +0 -0
- data/public/images/flags/ki.png +0 -0
- data/public/images/flags/km.png +0 -0
- data/public/images/flags/kn.png +0 -0
- data/public/images/flags/kp.png +0 -0
- data/public/images/flags/kr.png +0 -0
- data/public/images/flags/kw.png +0 -0
- data/public/images/flags/ky.png +0 -0
- data/public/images/flags/kz.png +0 -0
- data/public/images/flags/la.png +0 -0
- data/public/images/flags/lb.png +0 -0
- data/public/images/flags/lc.png +0 -0
- data/public/images/flags/li.png +0 -0
- data/public/images/flags/lk.png +0 -0
- data/public/images/flags/lr.png +0 -0
- data/public/images/flags/ls.png +0 -0
- data/public/images/flags/lt.png +0 -0
- data/public/images/flags/lu.png +0 -0
- data/public/images/flags/lv.png +0 -0
- data/public/images/flags/ly.png +0 -0
- data/public/images/flags/ma.png +0 -0
- data/public/images/flags/mc.png +0 -0
- data/public/images/flags/md.png +0 -0
- data/public/images/flags/me.png +0 -0
- data/public/images/flags/mg.png +0 -0
- data/public/images/flags/mh.png +0 -0
- data/public/images/flags/mk.png +0 -0
- data/public/images/flags/ml.png +0 -0
- data/public/images/flags/mm.png +0 -0
- data/public/images/flags/mn.png +0 -0
- data/public/images/flags/mo.png +0 -0
- data/public/images/flags/mp.png +0 -0
- data/public/images/flags/mq.png +0 -0
- data/public/images/flags/mr.png +0 -0
- data/public/images/flags/ms.png +0 -0
- data/public/images/flags/mt.png +0 -0
- data/public/images/flags/mu.png +0 -0
- data/public/images/flags/mv.png +0 -0
- data/public/images/flags/mw.png +0 -0
- data/public/images/flags/mx.png +0 -0
- data/public/images/flags/my.png +0 -0
- data/public/images/flags/mz.png +0 -0
- data/public/images/flags/na.png +0 -0
- data/public/images/flags/nc.png +0 -0
- data/public/images/flags/ne.png +0 -0
- data/public/images/flags/nf.png +0 -0
- data/public/images/flags/ng.png +0 -0
- data/public/images/flags/ni.png +0 -0
- data/public/images/flags/nl.png +0 -0
- data/public/images/flags/no.png +0 -0
- data/public/images/flags/np.png +0 -0
- data/public/images/flags/nr.png +0 -0
- data/public/images/flags/nu.png +0 -0
- data/public/images/flags/nz.png +0 -0
- data/public/images/flags/om.png +0 -0
- data/public/images/flags/pa.png +0 -0
- data/public/images/flags/pe.png +0 -0
- data/public/images/flags/pf.png +0 -0
- data/public/images/flags/pg.png +0 -0
- data/public/images/flags/ph.png +0 -0
- data/public/images/flags/pk.png +0 -0
- data/public/images/flags/pl.png +0 -0
- data/public/images/flags/pm.png +0 -0
- data/public/images/flags/pn.png +0 -0
- data/public/images/flags/pr.png +0 -0
- data/public/images/flags/ps.png +0 -0
- data/public/images/flags/pt.png +0 -0
- data/public/images/flags/pw.png +0 -0
- data/public/images/flags/py.png +0 -0
- data/public/images/flags/qa.png +0 -0
- data/public/images/flags/re.png +0 -0
- data/public/images/flags/ro.png +0 -0
- data/public/images/flags/rs.png +0 -0
- data/public/images/flags/ru.png +0 -0
- data/public/images/flags/rw.png +0 -0
- data/public/images/flags/sa.png +0 -0
- data/public/images/flags/sb.png +0 -0
- data/public/images/flags/sc.png +0 -0
- data/public/images/flags/scotland.png +0 -0
- data/public/images/flags/sd.png +0 -0
- data/public/images/flags/se.png +0 -0
- data/public/images/flags/sg.png +0 -0
- data/public/images/flags/sh.png +0 -0
- data/public/images/flags/si.png +0 -0
- data/public/images/flags/sj.png +0 -0
- data/public/images/flags/sk.png +0 -0
- data/public/images/flags/sl.png +0 -0
- data/public/images/flags/sm.png +0 -0
- data/public/images/flags/sn.png +0 -0
- data/public/images/flags/so.png +0 -0
- data/public/images/flags/sr.png +0 -0
- data/public/images/flags/st.png +0 -0
- data/public/images/flags/sv.png +0 -0
- data/public/images/flags/sy.png +0 -0
- data/public/images/flags/sz.png +0 -0
- data/public/images/flags/tc.png +0 -0
- data/public/images/flags/td.png +0 -0
- data/public/images/flags/tf.png +0 -0
- data/public/images/flags/tg.png +0 -0
- data/public/images/flags/th.png +0 -0
- data/public/images/flags/tj.png +0 -0
- data/public/images/flags/tk.png +0 -0
- data/public/images/flags/tl.png +0 -0
- data/public/images/flags/tm.png +0 -0
- data/public/images/flags/tn.png +0 -0
- data/public/images/flags/to.png +0 -0
- data/public/images/flags/tr.png +0 -0
- data/public/images/flags/tt.png +0 -0
- data/public/images/flags/tv.png +0 -0
- data/public/images/flags/tw.png +0 -0
- data/public/images/flags/tz.png +0 -0
- data/public/images/flags/ua.png +0 -0
- data/public/images/flags/ug.png +0 -0
- data/public/images/flags/um.png +0 -0
- data/public/images/flags/us.png +0 -0
- data/public/images/flags/uy.png +0 -0
- data/public/images/flags/uz.png +0 -0
- data/public/images/flags/va.png +0 -0
- data/public/images/flags/vc.png +0 -0
- data/public/images/flags/ve.png +0 -0
- data/public/images/flags/vg.png +0 -0
- data/public/images/flags/vi.png +0 -0
- data/public/images/flags/vn.png +0 -0
- data/public/images/flags/vu.png +0 -0
- data/public/images/flags/wales.png +0 -0
- data/public/images/flags/wf.png +0 -0
- data/public/images/flags/ws.png +0 -0
- data/public/images/flags/ye.png +0 -0
- data/public/images/flags/yt.png +0 -0
- data/public/images/flags/za.png +0 -0
- data/public/images/flags/zm.png +0 -0
- data/public/images/flags/zw.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/master_cid.jpg +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/progress.gif +0 -0
- data/public/images/rails.png +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/spinner.gif +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/update.png +0 -0
- data/public/images/visa_cid.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/address_states.js +0 -25
- data/public/javascripts/admin/checkouts/edit.js +0 -129
- data/public/javascripts/admin/orders/edit.js +0 -96
- data/public/javascripts/admin/orders/edit_form.js +0 -17
- data/public/javascripts/admin/payments/new.js +0 -9
- data/public/javascripts/admin/unobtrusive_handlers.js +0 -15
- data/public/javascripts/calculator.js +0 -13
- data/public/javascripts/checkout.js +0 -65
- data/public/javascripts/dashboard.js +0 -143
- data/public/javascripts/datepicker.js +0 -1445
- data/public/javascripts/gateway.js +0 -13
- data/public/javascripts/jqPlot/excanvas.min.js +0 -1
- data/public/javascripts/jqPlot/jquery.jqplot.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +0 -14
- data/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +0 -14
- data/public/javascripts/jquery-1.3.2.min.js +0 -19
- data/public/javascripts/jquery-and-plugins.js +0 -36
- data/public/javascripts/jquery-ui.js +0 -188
- data/public/javascripts/jquery.alerts/images/help.gif +0 -0
- data/public/javascripts/jquery.alerts/images/important.gif +0 -0
- data/public/javascripts/jquery.alerts/images/info.gif +0 -0
- data/public/javascripts/jquery.alerts/images/title.gif +0 -0
- data/public/javascripts/jquery.alerts/jquery.alerts.css +0 -57
- data/public/javascripts/jquery.alerts/jquery.alerts.js +0 -235
- data/public/javascripts/jquery.alerts/jquery.alerts.spree.css +0 -30
- data/public/javascripts/jquery.autocomplete.min.js +0 -13
- data/public/javascripts/jquery.js +0 -19
- data/public/javascripts/jquery.suggest.js +0 -276
- data/public/javascripts/jquery.template.js +0 -255
- data/public/javascripts/jquery.validate.min.js +0 -16
- data/public/javascripts/jrails.autocomplete.js +0 -274
- data/public/javascripts/jrails.js +0 -1
- data/public/javascripts/jsTree/jquery.tree.js +0 -2058
- data/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +0 -129
- data/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
- data/public/javascripts/jsTree/themes/apple/icons.png +0 -0
- data/public/javascripts/jsTree/themes/apple/style.css +0 -34
- data/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
- 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_es.js +0 -24
- 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_ro.js +0 -24
- 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 -25
- data/public/javascripts/open_id.js +0 -15
- data/public/javascripts/product.js +0 -49
- data/public/javascripts/spree.js +0 -53
- data/public/javascripts/taxonomy.js +0 -196
- data/public/javascripts/zone.js +0 -40
- data/public/stylesheets/admin/admin-forms.css +0 -159
- data/public/stylesheets/admin/admin-reset.css +0 -67
- data/public/stylesheets/admin/admin-tables.css +0 -39
- data/public/stylesheets/admin/admin-typography.css +0 -117
- data/public/stylesheets/admin/admin.css +0 -571
- data/public/stylesheets/admin/dashboard.css +0 -143
- data/public/stylesheets/admin/edit_checkouts.css +0 -57
- data/public/stylesheets/admin/edit_orders.css +0 -65
- data/public/stylesheets/admin/grids.css +0 -314
- 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/scaffold.css +0 -54
- data/public/stylesheets/screen.css +0 -1194
- data/script/autospec +0 -5
- data/script/breakpointer +0 -3
- data/script/performance/request +0 -3
- data/script/spec +0 -5
- data/script/spec_server +0 -125
- data/spec/controllers/admin/configurations_controller_spec.rb +0 -9
- data/spec/controllers/admin/mail_settings_controller_spec.rb +0 -24
- data/spec/controllers/admin/shipping_categories_controller_spec.rb +0 -10
- data/spec/controllers/admin/shipping_methods_controller_spec.rb +0 -10
- data/spec/controllers/countries_controller_spec.rb +0 -24
- data/spec/controllers/orders_controller_spec.rb +0 -35
- data/spec/controllers/products_controller_spec.rb +0 -16
- data/spec/controllers/states_controller_spec.rb +0 -18
- data/spec/controllers/taxons_controller_spec.rb +0 -18
- data/spec/fixtures/app_configurations.yml +0 -7
- data/spec/fixtures/countries.yml +0 -3
- data/spec/fixtures/gateways.yml +0 -8
- data/spec/fixtures/preferences.yml +0 -15
- data/spec/fixtures/roles.yml +0 -2
- data/spec/fixtures/states.yml +0 -2
- data/spec/fixtures/tax_categories.yml +0 -4
- data/spec/fixtures/users.yml +0 -5
- data/spec/fixtures/zone_members.yml +0 -7
- data/spec/fixtures/zones.yml +0 -4
- data/spec/lib/easy_role_requirement_system_spec.rb +0 -140
- data/spec/models/address_spec.rb +0 -79
- data/spec/models/app_configuration_spec.rb +0 -13
- data/spec/models/creditcard_payment_spec.rb +0 -17
- data/spec/models/creditcard_spec.rb +0 -43
- data/spec/models/inventory_unit_spec.rb +0 -18
- data/spec/models/option_type_spec.rb +0 -36
- data/spec/models/option_value_spec.rb +0 -39
- data/spec/models/order_spec.rb +0 -207
- data/spec/models/payment_sepc.rb +0 -29
- data/spec/models/product_option_type_spec.rb +0 -38
- data/spec/models/product_property_spec.rb +0 -29
- data/spec/models/property_spec.rb +0 -37
- data/spec/models/prototype_spec.rb +0 -35
- data/spec/models/shipment_spec.rb +0 -8
- data/spec/models/shipping_category_spec.rb +0 -8
- data/spec/models/shipping_order_spec.rb +0 -113
- data/spec/models/tax_category_spec.rb +0 -11
- data/spec/models/taxon_spec.rb +0 -50
- data/spec/models/taxonomy_spec.rb +0 -37
- data/spec/models/zone_member_spec.rb +0 -5
- data/spec/models/zone_spec.rb +0 -137
- data/spec/rcov.opts +0 -2
- data/spec/spec.opts +0 -4
- data/spec/spec_helper.rb +0 -79
- data/vendor/extensions/overview_dashboard/spec/spec.opts +0 -6
- data/vendor/extensions/overview_dashboard/spec/spec_helper.rb +0 -37
- data/vendor/extensions/payment_gateway/spec/helpers/admin/gateways_helper_spec.rb +0 -6
- data/vendor/extensions/payment_gateway/spec/models/creditcard_spec.rb +0 -15
- data/vendor/extensions/payment_gateway/spec/models/gateway_spec.rb +0 -11
- data/vendor/extensions/payment_gateway/spec/models/order_spec.rb +0 -45
- data/vendor/extensions/payment_gateway/spec/spec.opts +0 -6
- data/vendor/extensions/payment_gateway/spec/spec_helper.rb +0 -37
- data/vendor/extensions/theme_default/spec/spec.opts +0 -6
- data/vendor/extensions/theme_default/spec/spec_helper.rb +0 -37
@@ -11,6 +11,12 @@
|
|
11
11
|
<%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {"style" => "width:200px"}) %>
|
12
12
|
<%= error_message_on :shipping_method, :zone_id %>
|
13
13
|
<% end %>
|
14
|
+
|
15
|
+
<% f.field_container :display_on do %>
|
16
|
+
<%= f.label :display_on, t("display") %><br />
|
17
|
+
<%= select(:shipping_method, :display_on, ShippingMethod::DISPLAY.collect {|display| [t(display), display == :both ? nil : display.to_s]}) %>
|
18
|
+
<%= error_message_on :shipping_method, :display_on %>
|
19
|
+
<% end %>
|
14
20
|
<% end %>
|
15
21
|
|
16
22
|
<% hook :admin_shipping_method_form_calculator_fields, locals do %>
|
@@ -18,6 +18,7 @@
|
|
18
18
|
<th><%= t("name") %></th>
|
19
19
|
<th><%= t("zone") %></th>
|
20
20
|
<th><%= t("calculator") %></th>
|
21
|
+
<th><%= t("display") %></th>
|
21
22
|
<% end %>
|
22
23
|
<th>
|
23
24
|
<% hook :admin_shipping_methods_index_header_actions %>
|
@@ -32,6 +33,7 @@
|
|
32
33
|
<td><%= shipping_method.name %></td>
|
33
34
|
<td><%= shipping_method.zone.name %></td>
|
34
35
|
<td><%= shipping_method.calculator.description %></td>
|
36
|
+
<td><%= shipping_method.display_on.blank? ? "Both" : t(shipping_method.display_on) %></td>
|
35
37
|
<% end %>
|
36
38
|
<td width="140px">
|
37
39
|
<% hook :admin_shipping_methods_index_row_actions, locals do %>
|
@@ -39,16 +39,16 @@ div.inner input[type=text], div.inner select { width: 80%; }
|
|
39
39
|
bill_form.collection_select(:state_id, @states,
|
40
40
|
:id, :name,
|
41
41
|
{:include_blank => true},
|
42
|
-
{:class => have_states ? "required" : "hidden",
|
42
|
+
{:class => have_states ? "required" : "required hidden",
|
43
43
|
:disabled => !have_states}) +
|
44
44
|
bill_form.text_field(:state_name,
|
45
|
-
:class => !have_states ? "required" : "hidden",
|
45
|
+
:class => !have_states ? "required" : "required hidden",
|
46
46
|
:disabled => have_states)
|
47
47
|
].join.gsub('"', "'").gsub("\n", "")
|
48
48
|
-%>
|
49
49
|
<script type="text/javascript" language="javascript" charset="utf-8">
|
50
50
|
// <![CDATA[
|
51
|
-
document.write("<%= state_elements %>");
|
51
|
+
document.write("<%= raw state_elements %>");
|
52
52
|
// ]]>
|
53
53
|
</script>
|
54
54
|
</span>
|
@@ -73,7 +73,6 @@ div.inner input[type=text], div.inner select { width: 80%; }
|
|
73
73
|
<%= bill_form.text_field :alternative_phone -%>
|
74
74
|
</p>
|
75
75
|
<% end %>
|
76
|
-
</p>
|
77
76
|
</div>
|
78
77
|
<% end %>
|
79
78
|
</fieldset>
|
@@ -118,16 +117,16 @@ div.inner input[type=text], div.inner select { width: 80%; }
|
|
118
117
|
ship_form.collection_select(:state_id, @states,
|
119
118
|
:id, :name,
|
120
119
|
{:include_blank => true},
|
121
|
-
{:class => have_states ? "required" : "hidden",
|
120
|
+
{:class => have_states ? "required" : "required hidden",
|
122
121
|
:disabled => !have_states}) +
|
123
122
|
ship_form.text_field(:state_name,
|
124
|
-
:class => !have_states ? "required" : "hidden",
|
123
|
+
:class => !have_states ? "required" : "required hidden",
|
125
124
|
:disabled => have_states)
|
126
125
|
].join.gsub('"', "'").gsub("\n", "")
|
127
126
|
-%>
|
128
127
|
<script type="text/javascript" language="javascript" charset="utf-8">
|
129
128
|
// <![CDATA[
|
130
|
-
document.write("<%= state_elements %>");
|
129
|
+
document.write("<%= raw state_elements %>");
|
131
130
|
// ]]>
|
132
131
|
</script>
|
133
132
|
</span>
|
@@ -152,12 +151,11 @@ div.inner input[type=text], div.inner select { width: 80%; }
|
|
152
151
|
<%= ship_form.text_field :alternative_phone -%>
|
153
152
|
</p>
|
154
153
|
<% end %>
|
155
|
-
</p>
|
156
154
|
</div>
|
157
155
|
<% end %>
|
158
156
|
</fieldset>
|
159
157
|
|
160
158
|
<hr class="space" />
|
161
159
|
<div class="form-buttons">
|
162
|
-
<input type="submit" class="continue button primary" value="<%=t("save_and_continue") %>"
|
160
|
+
<input type="submit" class="continue button primary" value="<%=t("save_and_continue") %>" />
|
163
161
|
</div>
|
@@ -4,20 +4,20 @@
|
|
4
4
|
<% @payment_methods.each do |method| %>
|
5
5
|
<p>
|
6
6
|
<label>
|
7
|
-
<%= radio_button_tag "checkout[payments_attributes][][payment_method_id]", method.id, method == @payment_method %>
|
7
|
+
<%= radio_button_tag "checkout[payments_attributes][][payment_method_id]", method.id, method == @payment_method %>
|
8
8
|
<%= t(method.name, :scope => :payment_methods, :default => method.name) %>
|
9
9
|
</label>
|
10
10
|
</p>
|
11
11
|
<% end %>
|
12
12
|
|
13
|
-
<ul id="payment-methods">
|
13
|
+
<ul id="payment-methods">
|
14
14
|
<% @payment_methods.each do |method| %>
|
15
15
|
<li id="payment_method_<%= method.id %>"<%= ' class="last"' if method == @payment_methods.last %>>
|
16
16
|
<fieldset>
|
17
17
|
<%= render "checkouts/payment/#{method.method_type}", :payment_method => method %>
|
18
18
|
</fieldset>
|
19
19
|
</li>
|
20
|
-
<% end %>
|
20
|
+
<% end %>
|
21
21
|
</ul>
|
22
22
|
|
23
23
|
</fieldset>
|
@@ -25,5 +25,5 @@
|
|
25
25
|
<hr class="space" />
|
26
26
|
|
27
27
|
<div class="form-buttons">
|
28
|
-
<input type="submit" class="continue button primary" value="<%=t("save_and_continue") %>"
|
28
|
+
<input type="submit" class="continue button primary" value="<%=t("save_and_continue") %>" />
|
29
29
|
</div>
|
@@ -3,10 +3,10 @@
|
|
3
3
|
<tbody>
|
4
4
|
<tr>
|
5
5
|
<td><strong><%= t('item_total') %>:</strong></td>
|
6
|
-
<td><strong><%= number_to_currency @order.item_total %></strong></td>
|
6
|
+
<td><strong><%= number_to_currency @checkout.order.item_total %></strong></td>
|
7
7
|
</tr>
|
8
8
|
<tbody id="summary-order-charges">
|
9
|
-
<% @order.charges.each do |charge| %>
|
9
|
+
<% @checkout.order.charges.each do |charge| %>
|
10
10
|
<tr>
|
11
11
|
<td><%= charge.description %>: </td>
|
12
12
|
<td><%= number_to_currency charge.amount -%></td>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<% end %>
|
15
15
|
</tbody>
|
16
16
|
<tbody id="summary-order-credits">
|
17
|
-
<% @order.credits.each do |credit| %>
|
17
|
+
<% @checkout.order.credits.each do |credit| %>
|
18
18
|
<tr>
|
19
19
|
<td><%= credit.description %>: </td>
|
20
20
|
<td>(<%= number_to_currency credit.amount %>)</td>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
</tbody>
|
24
24
|
<tr>
|
25
25
|
<td><strong><%= t('order_total') %>:</strong></td>
|
26
|
-
<td><strong><span id='summary-order-total'><%= number_to_currency @order.total %></span></strong></td>
|
26
|
+
<td><strong><span id='summary-order-total'><%= number_to_currency @checkout.order.total %></span></strong></td>
|
27
27
|
</tr>
|
28
28
|
</tbody>
|
29
29
|
</table>
|
@@ -12,8 +12,7 @@
|
|
12
12
|
<![endif]-->
|
13
13
|
<div id='wrapper'>
|
14
14
|
|
15
|
-
<div id="header"
|
16
|
-
|
15
|
+
<div id="header">
|
17
16
|
<% if current_user -%>
|
18
17
|
<ul id="login-nav">
|
19
18
|
<li><%= t('logged_in_as') %>: <%= current_user.email %></li>
|
@@ -22,50 +21,52 @@
|
|
22
21
|
<li><%= link_to t('store'), products_path %></li>
|
23
22
|
</ul>
|
24
23
|
<% end -%>
|
25
|
-
<
|
24
|
+
<a href="<%= admin_path %>"><%= image_tag 'admin/bg/spree_50.png', :id => 'logo' %></a>
|
25
|
+
<h1><%= link_to t("administration"), admin_path %></h1>
|
26
26
|
<div id="progress"><%= image_tag 'progress.gif' %> <%= t('loading') %>...</div>
|
27
27
|
</div>
|
28
|
-
<div class='tile_bg_img'>
|
29
|
-
<div id="admin-menu">
|
30
|
-
<ul>
|
31
|
-
<% hook :admin_tabs do %>
|
32
|
-
<%= render 'admin/shared/tabs' %>
|
33
|
-
<% end %>
|
34
|
-
</ul>
|
35
|
-
<br class="clear" />
|
36
|
-
</div>
|
37
28
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
29
|
+
<div id="admin-menu">
|
30
|
+
<ul>
|
31
|
+
<% hook :admin_tabs do %>
|
32
|
+
<%= render 'admin/shared/tabs' %>
|
33
|
+
<% end %>
|
34
|
+
</ul>
|
35
|
+
<br class="clear" />
|
36
|
+
</div>
|
42
37
|
|
43
|
-
|
38
|
+
<div id="sub-menu">
|
39
|
+
<%= yield :sub_menu %>
|
40
|
+
<br class="clear" />
|
41
|
+
</div>
|
44
42
|
|
43
|
+
<div class="<%= 'with-sidebar ' unless @content_for_sidebar.blank? %> clear tile_bg" id="content">
|
45
44
|
|
46
|
-
<% if flash[:error] %>
|
47
|
-
<div class="flash error"><%= flash[:error] %></div>
|
48
|
-
<% end %>
|
49
|
-
<% if self.notice %>
|
50
|
-
<div class="flash notice"><%= self.notice %></div>
|
51
|
-
<% end %>
|
52
45
|
|
46
|
+
<% if flash[:error] %>
|
47
|
+
<div class="flash error"><%= flash[:error] %></div>
|
48
|
+
<% end %>
|
49
|
+
<% if self.notice %>
|
50
|
+
<div class="flash notice"><%= self.notice %></div>
|
51
|
+
<% end %>
|
53
52
|
|
54
|
-
<%= yield %>
|
55
53
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
54
|
+
<%= yield %>
|
55
|
+
|
56
|
+
<% unless @content_for_sidebar.blank? %>
|
57
|
+
<br class='clear' />
|
58
|
+
<div id="sidebar">
|
59
|
+
<%= yield :sidebar %>
|
60
|
+
</div>
|
61
|
+
<% end %>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
<div id="footer">
|
66
|
+
<p><%= t("icons_by") %> <a href='http://pinvoke.com'>pInvoke</a></p>
|
67
|
+
</div>
|
62
68
|
|
63
|
-
</div>
|
64
69
|
|
65
|
-
<div id="footer">
|
66
|
-
<p><%= t("icons_by") %> <a href='http://pinvoke.com'>pInvoke</a></p>
|
67
|
-
</div>
|
68
|
-
</div>
|
69
70
|
</div>
|
70
71
|
<!--[if IE]>
|
71
72
|
</div>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<% @variants.each do |v| %>
|
34
34
|
images[<%= v.id.to_s %>] = new Array();
|
35
35
|
<% v.images.each_with_index do |image, i| %>
|
36
|
-
images[<%= v.id.to_s %>][<%= i %>] = <%= link_to(image_tag(image.attachment.url(:mini)), image.attachment.url(:product)).to_json %>;
|
36
|
+
images[<%= v.id.to_s %>][<%= i %>] = <%= raw link_to(image_tag(image.attachment.url(:mini)), image.attachment.url(:product)).to_json %>;
|
37
37
|
<% end %>
|
38
38
|
<% end %>
|
39
39
|
</script>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<title><%= title %></title>
|
2
2
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
3
|
-
<%= stylesheet_tags %>
|
3
|
+
<%= raw stylesheet_tags %>
|
4
4
|
<%= javascript_include_tag 'jquery-1.3.2.min', 'jquery.validate.min.js', :cache => 'jquery-core' %>
|
5
5
|
<% unless I18n.locale.to_s[0..1] == 'en' -%>
|
6
6
|
<%= javascript_include_tag ['localization/messages_', I18n.locale.to_s[0..1], '.js'].join %>
|
7
7
|
<% end -%>
|
8
|
-
<%= meta_data_tags %>
|
8
|
+
<%= raw meta_data_tags %>
|
9
9
|
<%= yield :head %>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<% if Spree::Config[:show_zero_stock_products] || product.has_stock? %>
|
15
15
|
<li id="product_<%= product.id %>">
|
16
16
|
<%= link_to small_image(product), product %>
|
17
|
-
<%= link_to product.name + "<span class='price selling'>#{product_price(product)}</span>", product, :class => 'info' %>
|
17
|
+
<%= link_to raw(product.name + " <span class='price selling'>#{product_price(product)}</span>"), product, :class => 'info' %>
|
18
18
|
</li>
|
19
19
|
<% end %>
|
20
20
|
<% end %>
|
@@ -1 +1 @@
|
|
1
|
-
state_mapper = <%= @state_info.to_json %>
|
1
|
+
state_mapper = <%= raw @state_info.to_json %>
|
@@ -19,8 +19,8 @@ namespace :spree do
|
|
19
19
|
path = file.sub(ThemeDefaultExtension.root, '')
|
20
20
|
directory = File.dirname(path)
|
21
21
|
puts "Copying #{path}..."
|
22
|
-
mkdir_p
|
23
|
-
cp file,
|
22
|
+
mkdir_p Rails.root + directory
|
23
|
+
cp file, Rails.root + path
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
Binary file
|
Binary file
|
@@ -5,9 +5,11 @@ $j(function() {
|
|
5
5
|
if ($j('#calc-type').attr('value') == original_calc_type) {
|
6
6
|
$j('div.calculator-settings').show();
|
7
7
|
$j('div#calculator-settings-warning').hide();
|
8
|
+
$j('.calculator-settings input').removeAttr('disabled');
|
8
9
|
} else {
|
9
10
|
$j('div.calculator-settings').hide();
|
10
11
|
$j('div#calculator-settings-warning').show();
|
12
|
+
$j('.calculator-settings input').attr('disabled', 'disabled');
|
11
13
|
}
|
12
14
|
});
|
13
|
-
})
|
15
|
+
})
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
$(document).ready(function($){
|
2
2
|
|
3
3
|
$('input#checkout_use_billing').click(function() {
|
4
4
|
show_billing(!this.checked);
|
@@ -7,18 +7,30 @@ jQuery(document).ready(function($){
|
|
7
7
|
var show_billing = function(show) {
|
8
8
|
if(show) {
|
9
9
|
$('#shipping .inner').show();
|
10
|
-
$('#shipping .inner
|
11
|
-
$('#shipping .inner
|
10
|
+
$('#shipping .inner select').removeAttr('disabled');
|
11
|
+
$('#shipping .inner input').removeAttr('disabled');
|
12
|
+
|
13
|
+
//only want to enable relevant field
|
14
|
+
if(get_states('s')){
|
15
|
+
$('span#sstate input').attr('disabled', true);
|
16
|
+
}else{
|
17
|
+
$('span#sstate select').attr('disabled', true);
|
18
|
+
}
|
19
|
+
|
12
20
|
} else {
|
13
21
|
$('#shipping .inner').hide();
|
14
|
-
$('#shipping .inner
|
15
|
-
$('#shipping .inner
|
22
|
+
$('#shipping .inner select').attr('disabled', true);
|
23
|
+
$('#shipping .inner input').attr('disabled', true);
|
16
24
|
}
|
17
25
|
}
|
18
26
|
|
19
|
-
var
|
27
|
+
var get_states = function(region){
|
20
28
|
var country = $('span#' + region + 'country :only-child').val();
|
21
|
-
|
29
|
+
return state_mapper[country];
|
30
|
+
}
|
31
|
+
|
32
|
+
var update_state = function(region) {
|
33
|
+
var states = get_states(region);
|
22
34
|
|
23
35
|
var state_select = $('span#' + region + 'state select');
|
24
36
|
var state_input = $('span#' + region + 'state input');
|
@@ -37,29 +49,43 @@ jQuery(document).ready(function($){
|
|
37
49
|
state_select.append(opt);
|
38
50
|
});
|
39
51
|
state_select.removeAttr('disabled').show();;
|
40
|
-
state_input.hide().attr('disabled',
|
52
|
+
state_input.hide().attr('disabled', true);
|
41
53
|
|
42
54
|
} else {
|
43
55
|
state_input.removeAttr('disabled').show();
|
44
|
-
state_select.hide().attr('disabled',
|
56
|
+
state_select.hide().attr('disabled', true);
|
45
57
|
}
|
46
58
|
|
47
59
|
};
|
48
60
|
|
49
|
-
|
50
61
|
// Show fields for the selected payment method
|
51
62
|
$("input[type='radio'][name='checkout[payments_attributes][][payment_method_id]']").click(function(){
|
52
|
-
$('#payment-methods li')
|
53
|
-
|
63
|
+
var payment_method_li = $('#payment-methods li:visible');
|
64
|
+
payment_method_li.hide();
|
65
|
+
payment_method_li.find('input,select').attr('disabled', true);
|
66
|
+
|
67
|
+
if(this.checked){
|
68
|
+
payment_method_li = $('#payment_method_'+this.value);
|
69
|
+
payment_method_li.find('input,select').removeAttr('disabled');
|
70
|
+
payment_method_li.show();
|
71
|
+
}
|
54
72
|
}).triggerHandler('click');
|
55
73
|
|
74
|
+
$('span#bcountry select').change(function() { update_state('b'); });
|
75
|
+
$('span#scountry select').change(function() { update_state('s'); });
|
56
76
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
77
|
+
update_state('b');
|
78
|
+
update_state('s');
|
79
|
+
show_billing(!$('input#checkout_use_billing').attr('checked'));
|
80
|
+
|
81
|
+
$('form.edit_checkout').submit(function() {
|
82
|
+
var form = $(this);
|
83
|
+
if(form.valid()){
|
84
|
+
form.find(':submit, :image').attr('disabled', true).removeClass('primary').addClass('disabled');
|
85
|
+
}else{
|
86
|
+
return false;
|
87
|
+
}
|
63
88
|
});
|
64
89
|
|
90
|
+
|
65
91
|
});
|
@@ -34,25 +34,22 @@ p.help-text {
|
|
34
34
|
|
35
35
|
|
36
36
|
body {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
.tile_bg_img{
|
42
|
-
width:100%;
|
43
|
-
background: #ffffff url(../../images/tile-slider.png) top left repeat-x;
|
44
|
-
}
|
45
|
-
.admin_header_bg{
|
46
|
-
width:100%;
|
37
|
+
margin-top: 0px;
|
38
|
+
color: #476D9B;
|
39
|
+
background: #0B72C1 url(../../images/admin/bg/header.png) top left repeat-x;
|
40
|
+
}
|
47
41
|
|
48
|
-
height:95px;
|
49
|
-
background:url(../../images/tile-header.png) top left repeat-x;
|
50
|
-
}
|
51
42
|
a {
|
52
43
|
color: #4884BD; }
|
53
44
|
a:active,
|
54
45
|
a:visited {
|
55
46
|
color: #4884BD; }
|
47
|
+
|
48
|
+
#header {
|
49
|
+
height:95px;
|
50
|
+
position: relative;
|
51
|
+
margin-bottom: 13px;
|
52
|
+
}
|
56
53
|
#header,
|
57
54
|
#footer {
|
58
55
|
position: relative;
|
@@ -142,17 +139,25 @@ height:95px;
|
|
142
139
|
#sidebar .order-status.canceled {
|
143
140
|
background-color: #c00;
|
144
141
|
color: #fff; }
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
142
|
+
|
143
|
+
#header #logo {
|
144
|
+
position: absolute;
|
145
|
+
top: 0;
|
146
|
+
left: 10px;
|
147
|
+
}
|
148
|
+
#header h1 {
|
149
|
+
position: absolute;
|
150
|
+
left: 200px;
|
151
|
+
bottom: 19px;
|
152
|
+
margin: 10px 10px 10px 10px;
|
153
|
+
display: block;
|
154
|
+
text-decoration: none;
|
155
|
+
line-height: 100%;
|
156
|
+
|
157
|
+
}
|
158
|
+
#header h1 a {
|
159
|
+
color: #8CB952;
|
160
|
+
}
|
156
161
|
#admin-menu { clear: both; }
|
157
162
|
#admin-menu,
|
158
163
|
#sub-menu {
|