spree_core 0.30.0.beta1 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -12
- data/app/controllers/admin/adjustments_controller.rb +1 -17
- data/app/controllers/admin/base_controller.rb +12 -6
- data/app/controllers/admin/line_items_controller.rb +6 -29
- data/app/controllers/admin/mail_methods_controller.rb +13 -0
- data/app/controllers/admin/orders_controller.rb +32 -10
- data/app/controllers/admin/payments_controller.rb +15 -31
- data/app/controllers/admin/products_controller.rb +40 -41
- data/app/controllers/admin/reports_controller.rb +15 -14
- data/app/controllers/admin/return_authorizations_controller.rb +3 -16
- data/app/controllers/admin/shipments_controller.rb +8 -18
- data/app/controllers/admin/taxons_controller.rb +3 -3
- data/app/controllers/admin/users_controller.rb +5 -4
- data/app/controllers/checkout_controller.rb +26 -8
- data/app/controllers/orders_controller.rb +22 -10
- data/app/controllers/password_resets_controller.rb +0 -1
- data/app/controllers/products_controller.rb +2 -3
- data/app/controllers/spree/base_controller.rb +8 -0
- data/app/controllers/taxons_controller.rb +4 -4
- data/app/helpers/admin/navigation_helper.rb +4 -3
- data/app/helpers/checkout_helper.rb +1 -6
- data/app/helpers/spree/base_helper.rb +2 -0
- data/app/mailers/order_mailer.rb +19 -0
- data/app/mailers/shipment_mailer.rb +11 -0
- data/app/models/address.rb +3 -9
- data/app/models/adjustment.rb +3 -2
- data/app/models/app_configuration.rb +3 -16
- data/app/models/creditcard.rb +51 -45
- data/app/models/inventory_unit.rb +77 -80
- data/app/models/line_item.rb +33 -4
- data/app/models/log_entry.rb +3 -0
- data/app/models/mail_method.rb +23 -0
- data/app/models/order.rb +79 -177
- data/app/models/payment.rb +21 -18
- data/app/models/payment_method.rb +3 -3
- data/app/models/return_authorization.rb +11 -7
- data/app/models/shipment.rb +64 -40
- data/app/models/user.rb +1 -1
- data/app/models/variant.rb +6 -6
- data/app/views/admin/adjustments/index.html.erb +2 -32
- data/app/views/admin/configurations/index.html.erb +3 -3
- data/app/views/admin/mail_methods/_form.html.erb +96 -0
- data/app/views/admin/mail_methods/edit.html.erb +9 -0
- data/app/views/admin/mail_methods/index.html.erb +41 -0
- data/app/views/admin/mail_methods/new.html.erb +9 -0
- data/app/views/admin/orders/_form.html.erb +3 -4
- data/app/views/admin/{checkouts/_form.html.erb → orders/_user_form.html.erb} +10 -10
- data/app/views/admin/orders/edit.html.erb +1 -0
- data/app/views/admin/orders/index.html.erb +10 -6
- data/app/views/admin/orders/new.html.erb +1 -0
- data/app/views/admin/orders/show.html.erb +3 -2
- data/app/views/admin/{checkouts/edit.html.erb → orders/user.html.erb} +8 -5
- data/app/views/admin/payments/_list.html.erb +5 -7
- data/app/views/admin/payments/index.html.erb +3 -8
- data/app/views/admin/payments/new.html.erb +1 -1
- data/app/views/admin/payments/source_views/_gateway.html.erb +0 -1
- data/app/views/admin/reports/sales_total.html.erb +2 -6
- data/app/views/admin/return_authorizations/_form.html.erb +24 -12
- data/app/views/admin/return_authorizations/edit.html.erb +1 -1
- data/app/views/admin/return_authorizations/index.html.erb +6 -4
- data/app/views/admin/shared/_address_form.html.erb +20 -17
- data/app/views/admin/shared/_adjustments_table.html.erb +21 -0
- data/app/views/admin/shared/_configuration_menu.html.erb +1 -1
- data/app/views/admin/shared/_destroy.js.erb +3 -0
- data/app/views/admin/shared/_new_adjustment_button.html.erb +8 -0
- data/app/views/admin/shared/_order_tabs.html.erb +26 -22
- data/app/views/admin/shared/_report_criteria.html.erb +2 -2
- data/app/views/admin/shared/_update_order_state.js +6 -0
- data/app/views/admin/shipments/_form.html.erb +5 -11
- data/app/views/admin/shipments/edit.html.erb +4 -4
- data/app/views/admin/taxons/_form.html.erb +2 -2
- data/app/views/admin/taxons/_taxon_table.html.erb +3 -8
- data/app/views/admin/taxons/available.js.erb +4 -7
- data/app/views/admin/taxons/select.js.erb +2 -0
- data/app/views/admin/variants/index.html.erb +1 -1
- data/app/views/checkout/_address.html.erb +2 -0
- data/app/views/checkout/_delivery.html.erb +3 -3
- data/app/views/checkout/_payment.html.erb +23 -18
- data/app/views/checkout/_summary.html.erb +0 -10
- data/app/views/checkout/payment/_gateway.html.erb +1 -1
- data/app/views/checkout/registration.html.erb +20 -0
- data/app/views/layouts/admin.html.erb +2 -2
- data/app/views/order_mailer/{cancel.html.erb → cancel_email.text.erb} +4 -4
- data/app/views/order_mailer/{confirm.html.erb → confirm_email.text.erb} +3 -3
- data/app/views/orders/_line_item.html.erb +1 -3
- data/app/views/orders/edit.html.erb +1 -1
- data/app/views/shared/_basic_layout.html.erb +44 -0
- data/app/views/shared/_google_analytics.html.erb +23 -22
- data/app/views/shared/_head.html.erb +1 -1
- data/app/views/shared/_products.html.erb +1 -1
- data/app/views/shipment_mailer/shipped_email.text.erb +15 -0
- data/app/views/taxons/_taxon.html.erb +2 -2
- data/config/initializers/spree.rb +6 -2
- data/config/locales/{en_spree.yml → en.yml} +47 -17
- data/config/routes.rb +15 -8
- data/{lib/generators/templates/db → db}/default/countries.yml +0 -0
- data/{lib/generators/templates/db → db}/default/roles.yml +0 -0
- data/{lib/generators/templates/db → db}/default/states.yml +0 -0
- data/{lib/generators/templates/db → db}/default/zone_members.yml +0 -0
- data/{lib/generators/templates/db → db}/default/zones.yml +0 -0
- data/{lib/generators/templates/db → db}/migrate/20090823005402_spree_zero_nine_zero.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20090904192342_create_indexes_for_inventory_units.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091007134354_change_taxons_to_nested_set.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091008091614_move_to_configurable_gateways.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091012120519_product_groups_and_scopes.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091015110842_add_open_id_authentication_tables.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091015153048_add_openid_field_to_users.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091016174634_change_preference_value_type.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091017175558_create_billing_integrations.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091021133257_charge_refactoring.rb +7 -4
- data/{lib/generators/templates/db → db}/migrate/20091104151730_add_some_indexes.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091126190904_checkout_state_machine.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091209153045_state_for_shipments.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091209202200_make_state_events_polymorphic.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091211203813_ship_address_id_for_checkouts.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091212161118_shipping_method_id_for_checkouts.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091213222815_creditcard_last_four_digits.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20091214183826_populate_legacy_shipment_state.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100105090147_add_cost_price.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100105132138_shipment_id_for_inventory_units.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100111205525_cim_fields_for_creditcards.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100112151511_create_return_authorizations.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100113203104_create_trackers.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100125145351_add_test_mode_to_billing_integration.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100126103714_create_products_product_groups.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100209025806_create_payment_methods.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100209144531_polymorphic_payments.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100223170312_sti_for_transactions.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100223183812_drop_billing_integrations.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100224153127_deleted_at_for_payment_methods.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100301163454_add_adjustments_index.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100306153445_fix_by_popularity.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100317120946_add_alt_text_to_images.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100427121301_add_display_to_payment_methods.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100504142133_add_addresses_checkouts_indexes.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100506180619_add_icon_to_taxons.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100506185838_add_description_to_taxons.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100528155333_index_for_shipments_number.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100528185820_add_index_on_users_persistence_token.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100605152042_add_default_to_tax_categories.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100624110730_add_display_to_shipping_methods.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100624123336_rename_payment_method_display.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100624175547_rename_preferences_field.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100811163637_add_guest_flag.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100811205836_drop_order_token.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100813023502_create_address_keys_for_order.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100813185745_payment_total_for_orders.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100816212146_shipping_method_id_for_orders.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100817152723_add_shipment_and_payment_state.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100819170125_refactor_adjustments.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +0 -0
- data/{lib/generators/templates/db → db}/migrate/20100901171814_change_guest_flag_to_anonymous.rb +0 -0
- data/db/migrate/20100903203949_email_for_orders.rb +9 -0
- data/db/migrate/20100908170204_remove_unique_index_on_users_email.rb +9 -0
- data/db/migrate/20100923162011_create_mail_methods.rb +12 -0
- data/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
- data/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
- data/db/migrate/20101026184700_create_log_entries.rb +15 -0
- data/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
- data/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
- data/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
- data/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
- data/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
- data/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
- data/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
- data/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
- data/db/migrate/20101026185022_update_order_state.rb +8 -0
- data/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
- data/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
- data/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
- data/{lib/generators/templates/db → db}/sample/users.rb +0 -0
- data/db/seeds.rb +3 -0
- data/lib/generators/spree_core/upgrade_generator.rb +23 -0
- data/lib/scopes/product.rb +0 -5
- data/lib/spree/config.rb +4 -4
- data/lib/spree/current_order.rb +11 -3
- data/lib/spree/i18n_utils.rb +47 -0
- data/lib/spree/mail_interceptor.rb +23 -0
- data/lib/spree/mail_settings.rb +34 -0
- data/lib/spree/search/base.rb +50 -6
- data/lib/spree_core.rb +9 -8
- data/lib/{active_merchant/billing/authorize_net_cim.rb → spree_core/authorize_net_cim_hack.rb} +0 -0
- data/lib/spree_core/ext/active_record.rb +2 -0
- data/lib/spree_core/ssl_requirement.rb +9 -15
- data/lib/tasks/core.rake +1 -8
- data/lib/tasks/install.rake +27 -0
- data/{lib/generators/templates/public → public}/images/add-to-cart.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/active-tab.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/admin_tab_back.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/admin_tab_selected_back.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/content-back-blue.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/content-back-green.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/content-back.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/flash-error.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/flash-notice.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/green-stripes.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/green-stripes.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/grid_header_back.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/grid_header_back_green.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/header-bg.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/header.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/header_bg.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/menu-current.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/red-stripes.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/red-stripes.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/spree_50.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/subnav-divider.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/subnav.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/bg/tab-back.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/blue/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/blue/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/drag-handle-green.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/green/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/green/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/left_01_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/orange/left_03.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/orange/right_03.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/buttons/right_01_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/1.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/10.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/2.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/3.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/4.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/5.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/6.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/7.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/8.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/16x16/9.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/1.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/10.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/11.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/2.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/3.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/4.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/5.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/6.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/7.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/8.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/32x32/9.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/accept.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/add.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/add.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/arrow-down.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/cross.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/delete.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/delete.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/drag.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/edit.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/edit.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/email.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/error.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/exclamation.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/feed.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/pdf.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/reorder.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/search.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/send-email.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/stop.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/tick.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/up.gif +0 -0
- data/{lib/generators/templates/public → public}/images/admin/icons/xls.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/tabs/off-left.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/tabs/off-right.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/tabs/on-left.png +0 -0
- data/{lib/generators/templates/public → public}/images/admin/tabs/on-right.png +0 -0
- data/{lib/generators/templates/public → public}/images/ajax_loader.gif +0 -0
- data/{lib/generators/templates/public → public}/images/amex_cid.gif +0 -0
- data/{lib/generators/templates/public → public}/images/bg-button-hover.png +0 -0
- data/{lib/generators/templates/public → public}/images/bg-button-pressed.png +0 -0
- data/{lib/generators/templates/public → public}/images/bg-button.gif +0 -0
- data/{lib/generators/templates/public → public}/images/bg-button.png +0 -0
- data/{lib/generators/templates/public → public}/images/blue/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/blue/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/body-back.png +0 -0
- data/{lib/generators/templates/public → public}/images/bottom_shine.png +0 -0
- data/{lib/generators/templates/public → public}/images/breadcrumb.gif +0 -0
- data/{lib/generators/templates/public → public}/images/button-dark-hover.png +0 -0
- data/{lib/generators/templates/public → public}/images/button-dark.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/bg-button-hover.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/bg-button-pressed.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/bg-button.gif +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/bg-button.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/blue/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/blue/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/button-dark-hover.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/button-dark.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/drag-handle-green.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/green/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/green/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/left_01_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/orange/left_03.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/orange/right_03.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/right_01_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/sxsw-ribbon-v1.png +0 -0
- data/{lib/generators/templates/public → public}/images/buttons/top-shine.png +0 -0
- data/{lib/generators/templates/public → public}/images/calendar_date_select/calendar.gif +0 -0
- data/{lib/generators/templates/public → public}/images/cart-empty.png +0 -0
- data/{lib/generators/templates/public → public}/images/cart-empty_x32.png +0 -0
- data/{lib/generators/templates/public → public}/images/cart-full.png +0 -0
- data/{lib/generators/templates/public → public}/images/cart-full_x32.png +0 -0
- data/{lib/generators/templates/public → public}/images/checkout.png +0 -0
- data/{lib/generators/templates/public → public}/images/creditcard.gif +0 -0
- data/{lib/generators/templates/public → public}/images/datepicker/backstripes.gif +0 -0
- data/{lib/generators/templates/public → public}/images/datepicker/bg_header.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/datepicker/bullet1.gif +0 -0
- data/{lib/generators/templates/public → public}/images/datepicker/bullet2.gif +0 -0
- data/{lib/generators/templates/public → public}/images/datepicker/cal.gif +0 -0
- data/{lib/generators/templates/public → public}/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/{lib/generators/templates/public → public}/images/discover_cid.gif +0 -0
- data/{lib/generators/templates/public → public}/images/drag-handle-green.png +0 -0
- data/{lib/generators/templates/public → public}/images/favicon.ico +0 -0
- data/{lib/generators/templates/public → public}/images/green/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/green/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/grid.png +0 -0
- data/{lib/generators/templates/public → public}/images/left_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/left_01_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/master_cid.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/menu-current.png +0 -0
- data/{lib/generators/templates/public → public}/images/menu-hover.png +0 -0
- data/{lib/generators/templates/public → public}/images/noimage/mini.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/noimage/product.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/noimage/small.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/openid-inputicon.gif +0 -0
- data/{lib/generators/templates/public → public}/images/orange/left_03.png +0 -0
- data/{lib/generators/templates/public → public}/images/orange/right_03.png +0 -0
- data/{lib/generators/templates/public → public}/images/progress.gif +0 -0
- data/{lib/generators/templates/public → public}/images/right_01.png +0 -0
- data/{lib/generators/templates/public → public}/images/right_01_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/separator.png +0 -0
- data/{lib/generators/templates/public → public}/images/shadow-top.png +0 -0
- data/{lib/generators/templates/public → public}/images/shadow_top.png +0 -0
- data/{lib/generators/templates/public → public}/images/spinner.gif +0 -0
- data/{lib/generators/templates/public → public}/images/spree.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/spree/progress.gif +0 -0
- data/{lib/generators/templates/public → public}/images/spree/spinner.gif +0 -0
- data/{lib/generators/templates/public → public}/images/spree/spree.jpg +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/completed-completed.gif +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/completed-current.gif +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/completed-first.gif +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/current-first.gif +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/current-incomplete.gif +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/current-right.gif +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/incomplete-incomplete.gif +0 -0
- data/{lib/generators/templates/public → public}/images/step-progress/incomplete-right.gif +0 -0
- data/{lib/generators/templates/public → public}/images/steps/1.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/1_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/2.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/2_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/3.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/3_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/4.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/4_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/5.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/5_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/6.png +0 -0
- data/{lib/generators/templates/public → public}/images/steps/6_small.png +0 -0
- data/{lib/generators/templates/public → public}/images/sxsw-ribbon-v1.png +0 -0
- data/{lib/generators/templates/public → public}/images/tab_bottom.gif +0 -0
- data/{lib/generators/templates/public → public}/images/tile-header.png +0 -0
- data/{lib/generators/templates/public → public}/images/tile-slider.png +0 -0
- data/{lib/generators/templates/public → public}/images/top-shine.png +0 -0
- data/{lib/generators/templates/public → public}/images/tree-nav-icons/bullet.gif +0 -0
- data/{lib/generators/templates/public → public}/images/tree-nav-icons/minus.gif +0 -0
- data/{lib/generators/templates/public → public}/images/tree-nav-icons/plus.gif +0 -0
- data/{lib/generators/templates/public → public}/images/tree-nav-icons/treeview-loading.gif +0 -0
- data/{lib/generators/templates/public → public}/images/tree-nav-icons/treeview-sprite.gif +0 -0
- data/{lib/generators/templates/public → public}/images/update.png +0 -0
- data/{lib/generators/templates/public → public}/images/visa_cid.gif +0 -0
- data/{lib/generators/templates/public → public}/images/wrapper-back-2.png +0 -0
- data/{lib/generators/templates/public → public}/images/wrapper-back.png +0 -0
- data/{lib/generators/templates/public → public}/images/yui-menubaritem_submenuindicator.png +0 -0
- data/{lib/generators/templates/public → public}/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
- data/{lib/generators/templates/public → public}/images/yui-menuitem_checkbox.png +0 -0
- data/{lib/generators/templates/public → public}/images/yui-menuitem_checkbox_disabled.png +0 -0
- data/{lib/generators/templates/public → public}/images/yui-menuitem_submenuindicator.png +0 -0
- data/{lib/generators/templates/public → public}/images/yui-menuitem_submenuindicator_disabled.png +0 -0
- data/{lib/generators/templates/public → public}/images/yui-sprite.png +0 -0
- data/{lib/generators/templates/public → public}/javascripts/additional-methods.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/admin.js +11 -11
- data/{lib/generators/templates/public → public}/javascripts/admin/address_states.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/admin/checkouts/edit.js +1 -1
- data/{lib/generators/templates/public → public}/javascripts/admin/orders/edit.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/admin/orders/edit_form.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/admin/payments/new.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/admin/unobtrusive_handlers.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/application.js +3 -3
- data/{lib/generators/templates/public → public}/javascripts/calculator.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/checkout.js +26 -15
- data/{lib/generators/templates/public → public}/javascripts/datepicker.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/gateway.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery-1.4.2.min.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery-ui.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.alerts/images/help.gif +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.alerts/images/important.gif +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.alerts/images/info.gif +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.alerts/images/title.gif +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.alerts/jquery.alerts.css +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.alerts/jquery.alerts.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.alerts/jquery.alerts.spree.css +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.autocomplete.min.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.suggest.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.template.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.tokeninput.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jquery.validate.min.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jrails.autocomplete.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jrails.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jsTree/jquery.tree.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jsTree/themes/apple/icons.png +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jsTree/themes/apple/style.css +0 -0
- data/{lib/generators/templates/public → public}/javascripts/jsTree/themes/apple/throbber.gif +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/af.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/ar.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/de.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/du.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/en.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/es.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/fi.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/fr.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/gr.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/he.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/it.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/nl.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/no.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/pt.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/ro.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/ru.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/sp.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/sv.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/lang/ua.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_cn.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_cs.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_da.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_de.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_es.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_fr.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_hu.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_it.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_kk.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_nl.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_no.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_pl.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_ptbr.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_ro.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_ru.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_se.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_sk.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_tr.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_tw.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/localization/messages_ua.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/nested-attribute.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/open_id.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/product.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/rails.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/taxonomy.js +0 -0
- data/{lib/generators/templates/public → public}/javascripts/zone.js +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/admin-forms.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/admin-reset.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/admin-tables.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/admin-typography.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/admin.css +21 -18
- data/{lib/generators/templates/public → public}/stylesheets/admin/autocomplete.css +0 -1
- data/{lib/generators/templates/public → public}/stylesheets/admin/dashboard.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/edit_checkouts.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/grids.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/reset-fonts-grids-2-6-0.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/token-input.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/admin/yui-includes.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/datepicker.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/jquery.autocomplete.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/scaffold.css +0 -0
- data/{lib/generators/templates/public → public}/stylesheets/screen.css +0 -0
- metadata +475 -402
- data/app/controllers/admin/checkouts_controller.rb +0 -58
- data/app/models/checkout.rb +0 -141
- data/app/models/order_mailer.rb +0 -24
- data/app/views/admin/checkouts/show.html.erb +0 -131
- data/app/views/admin/mail_settings/edit.html.erb +0 -114
- data/app/views/admin/mail_settings/show.html.erb +0 -59
- data/app/views/admin/taxons/select.html.erb +0 -1
- data/app/views/checkout/_complete.html.erb +0 -1
- data/app/views/password_resets/edit.html.erb +0 -12
- data/app/views/password_resets/new.html.erb +0 -12
- data/config/initializers/touch.rb +0 -14
- data/lib/generators/spree_core/extension_generator.rb +0 -57
- data/lib/generators/spree_core/install_generator.rb +0 -59
- data/lib/generators/templates/LICENSE +0 -23
- data/lib/generators/templates/README.md +0 -13
- data/lib/generators/templates/Rakefile +0 -1
- data/lib/generators/templates/application_controller.rb +0 -4
- data/lib/generators/templates/extension.gemspec.tt +0 -21
- data/lib/generators/templates/extension/engine.rb.tt +0 -14
- data/lib/generators/templates/extension/extension.rb.tt +0 -1
- data/lib/generators/templates/lib/tasks/%file_name%.rake.tt +0 -1
- data/lib/generators/templates/public/javascripts/jquery-1.3.2.min.js +0 -19
- data/lib/generators/templates/public/javascripts/jquery-and-plugins.js +0 -36
- data/lib/generators/templates/spree_site.rb +0 -8
- data/lib/spree/search.rb +0 -47
- data/lib/spree_core/preferences/mail_settings.rb +0 -57
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= render :partial => 'admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<h1><%= t("editing_mail_method") %></h1>
|
4
|
+
<%= render 'shared/error_messages', :target => @mail_method %>
|
5
|
+
|
6
|
+
<%= form_for(:mail_method, :url => object_url, :html => { :method => :put }) do |f| %>
|
7
|
+
<%= render :partial => "form", :locals => { :f => f } %>
|
8
|
+
<p class="form-buttons"><%= button t("update") %></p>
|
9
|
+
<% end %>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<%= render :partial => 'admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<div class='toolbar'>
|
4
|
+
<ul class='actions'>
|
5
|
+
<li>
|
6
|
+
<%= button_link_to t("new_mail_method"), new_object_url, :icon => 'add' %>
|
7
|
+
</li>
|
8
|
+
</ul>
|
9
|
+
<br class='clear' />
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<h1><%= t("mail_methods") %></h1>
|
13
|
+
|
14
|
+
<table class="index">
|
15
|
+
<thead>
|
16
|
+
<%= hook :admin_mail_methods_index_headers do %>
|
17
|
+
<th><%= t("environment") %></th>
|
18
|
+
<th><%= t("active") %></th>
|
19
|
+
<% end %>
|
20
|
+
<th>
|
21
|
+
<%= hook :admin_mail_methods_index_header_actions %>
|
22
|
+
</th>
|
23
|
+
</thead>
|
24
|
+
<tbody>
|
25
|
+
<% @mail_methods.each do |method|%>
|
26
|
+
<tr id="<%= dom_id method %>">
|
27
|
+
<%- locals = {:method => method} %>
|
28
|
+
<%= hook :admin_mail_methods_index_rows, locals do %>
|
29
|
+
<td width="100px"><%= method.environment.to_s.titleize %></td>
|
30
|
+
<td width="60px"><%= method.active ? t(:yes) : t(:no) %></td>
|
31
|
+
<% end %>
|
32
|
+
<td width="140px">
|
33
|
+
<%= hook :admin_mail_methods_index_row_actions, locals do %>
|
34
|
+
<%= link_to_edit method %>
|
35
|
+
<%= link_to_delete method %>
|
36
|
+
<% end %>
|
37
|
+
</td>
|
38
|
+
</tr>
|
39
|
+
<% end %>
|
40
|
+
</tbody>
|
41
|
+
</table>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= render :partial => 'admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<h1><%= t("new_mail_method") %></h1>
|
4
|
+
<%= render 'shared/error_messages', :target => @mail_method %>
|
5
|
+
|
6
|
+
<%= form_for(:mail_method, :url => collection_url) do |f| %>
|
7
|
+
<%= render :partial => "form", :locals => { :f => f } %>
|
8
|
+
<p class="form-buttons"><%= button t("create") %></p>
|
9
|
+
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= render 'shared/error_messages', :target => @
|
1
|
+
<%= render 'shared/error_messages', :target => @order %>
|
2
2
|
|
3
3
|
<%= form_for(@order, :url => admin_order_url(@order), :html => { :method => :put}) do |f| %>
|
4
4
|
<%= f.hidden_field :number %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% end %>
|
14
14
|
<th class="orders-actions"><%= hook :admin_order_form_line_items_header_actions %></th>
|
15
15
|
</tr>
|
16
|
-
|
16
|
+
<%= f.fields_for :line_items do |li_form| %>
|
17
17
|
<%= render :partial => "admin/orders/line_item", :locals => { :f => li_form } %>
|
18
18
|
<% end %>
|
19
19
|
</tbody>
|
@@ -58,8 +58,7 @@
|
|
58
58
|
<% end %>
|
59
59
|
|
60
60
|
<script type="text/javascript">
|
61
|
-
|
62
|
-
$('#order_tab_summary h5#order_status').html('<%= "#{t('status')}: #{t(@order.state)}" %>');
|
61
|
+
<%= render 'admin/shared/update_order_state.js' %>
|
63
62
|
</script>
|
64
63
|
|
65
64
|
<%= javascript_include_tag 'admin/orders/edit_form.js' %>
|
@@ -10,18 +10,18 @@
|
|
10
10
|
<td class="val-col" colspan="3"><%= f.text_field :email, :class => "fullwidth" %></td>
|
11
11
|
<td class="lbl-col"><label><%= t('guest_checkout') %>:</label></td>
|
12
12
|
<td class="val-col" colspan="3">
|
13
|
-
<% if @order.
|
13
|
+
<% if @order.completed? %>
|
14
|
+
<%= @order.user.nil? ? "Yes" : "No" %>
|
15
|
+
<% else %>
|
14
16
|
<label class="sub">
|
15
|
-
<%= radio_button_tag :guest_checkout, true, @
|
17
|
+
<%= radio_button_tag :guest_checkout, true, @order.user.nil? %>
|
16
18
|
<%= t("yes") %>
|
17
19
|
</label>
|
18
20
|
<label class="sub">
|
19
|
-
<%= radio_button_tag :guest_checkout, false, !@
|
21
|
+
<%= radio_button_tag :guest_checkout, false, !@order.user.nil?, :disabled => @order.cart? %>
|
20
22
|
<%= t("no") %>
|
21
23
|
</label>
|
22
|
-
<%= hidden_field_tag :user_id, @
|
23
|
-
<% else %>
|
24
|
-
<%= @checkout.order.user.nil? ? "Yes" : "No" %>
|
24
|
+
<%= hidden_field_tag :user_id, @order.user_id %>
|
25
25
|
<% end %>
|
26
26
|
</td>
|
27
27
|
</tr>
|
@@ -29,14 +29,14 @@
|
|
29
29
|
</table>
|
30
30
|
|
31
31
|
<h3><%= Address.human_name(:count => 2) %></h3>
|
32
|
-
<%= f.fields_for
|
32
|
+
<%= f.fields_for :bill_address do |ba_form| %>
|
33
33
|
<%= render :partial => "admin/shared/address_form", :locals => {:f => ba_form, :name => t('billing_address'), :use_billing => false} %>
|
34
34
|
<% end %>
|
35
35
|
|
36
|
-
<%= f.fields_for
|
36
|
+
<%= f.fields_for :ship_address do |sa_form| %>
|
37
37
|
<%= render :partial => "admin/shared/address_form", :locals => {:f => sa_form, :name => t('shipping_address'), :use_billing => true} %>
|
38
38
|
<% end %>
|
39
39
|
|
40
40
|
<p class="form-buttons">
|
41
|
-
<%= button @order.
|
42
|
-
</p>
|
41
|
+
<%= button @order.cart? ? t('continue') : t('update') %>
|
42
|
+
</p>
|
@@ -10,10 +10,12 @@
|
|
10
10
|
<thead>
|
11
11
|
<tr>
|
12
12
|
<%= hook :admin_orders_index_headers do %>
|
13
|
-
<th><%= order @search, :by => :
|
13
|
+
<th><%= order @search, :by => :completed_at, :as => t("order_date") %></th>
|
14
14
|
<th><%= order @search, :by => :number, :as => t("order_number") %></th>
|
15
15
|
<th><%= order @search, :by => :state, :as => t("status") %></th>
|
16
|
-
<th><%= order @search, :by => :
|
16
|
+
<th><%= order @search, :by => :payment_state, :as => t("payment_state") %></th>
|
17
|
+
<th><%= order @search, :by => :shipment_state, :as => t("shipment_state") %></th>
|
18
|
+
<th><%= order @search, :by => :email, :as => t("customer") %></th>
|
17
19
|
<th><%= order @search, :by => :total, :as => t("total") %></th>
|
18
20
|
<% end %>
|
19
21
|
<th>
|
@@ -26,9 +28,11 @@
|
|
26
28
|
<tr>
|
27
29
|
<%- locals = {:order => order} %>
|
28
30
|
<%= hook :admin_orders_index_rows, locals do %>
|
29
|
-
<td><%= order.
|
31
|
+
<td><%= order.completed_at.to_date if order.completed_at %></td>
|
30
32
|
<td><%= link_to order.number, object_url(order) %></td>
|
31
|
-
<td><%= t(order.state.downcase) %></td>
|
33
|
+
<td><%= t("order_state.#{order.state.downcase}") %></td>
|
34
|
+
<td><%= link_to t("payment_states.#{order.payment_state}"), admin_order_payments_path(order) if order.payment_state %></td>
|
35
|
+
<td><%= link_to t("shipment_states.#{order.shipment_state}"), admin_order_shipments_path(order) if order.shipment_state %></td>
|
32
36
|
<td><%= order.email %></td>
|
33
37
|
<td><%= number_to_currency order.total %></td>
|
34
38
|
<% end %>
|
@@ -64,14 +68,14 @@
|
|
64
68
|
</div>
|
65
69
|
|
66
70
|
<p><label><%= t("status") %></label><br />
|
67
|
-
<%= f.select :state_equals, Order.state_machines[:state].states.collect {|s| [t(s.name), s.value]}, {:include_blank => true} %></p>
|
71
|
+
<%= f.select :state_equals, Order.state_machines[:state].states.collect {|s| [t("order_state.#{s.name}"), s.value]}, {:include_blank => true} %></p>
|
68
72
|
|
69
73
|
<p><label><%= t 'order_number' %></label><br />
|
70
74
|
<%= f.text_field :number_like, :size=>25 %></p>
|
71
75
|
|
72
76
|
<p>
|
73
77
|
<label><%= t 'email' %></label><br />
|
74
|
-
<%= f.text_field :
|
78
|
+
<%= f.text_field :email_like, :size=>25 %>
|
75
79
|
</p>
|
76
80
|
<p>
|
77
81
|
<label><%= t 'first_name_begins_with' %></label><br />
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<div class='toolbar order-links'>
|
2
2
|
<%= hook :admin_order_show_buttons do %>
|
3
|
+
<%= button_link_to t("cancel"), fire_admin_order_url(@order.number, {:e => "cancel"}), :icon => 'delete' if @order.can_cancel? %>
|
3
4
|
<%= button_link_to t("edit"), edit_admin_order_url(@order.number), :icon => 'edit' %>
|
4
5
|
<% end %>
|
5
6
|
</div>
|
@@ -10,7 +11,7 @@
|
|
10
11
|
<% if @order.bill_address %>
|
11
12
|
<div class='adr'>
|
12
13
|
<h4>
|
13
|
-
<%= link_to t("bill_address"), (@current_action=="edit" ?
|
14
|
+
<%= link_to t("bill_address"), (@current_action=="edit" ? edit_admin_checkout_url(@order.number) : admin_orders_checkout_url(@order.number)) %>
|
14
15
|
</h4>
|
15
16
|
<%= render :partial => 'admin/shared/address', :locals => {:address => @order.bill_address} %>
|
16
17
|
</div>
|
@@ -18,7 +19,7 @@
|
|
18
19
|
<% if @order.ship_address %>
|
19
20
|
<div class='adr'>
|
20
21
|
<h4>
|
21
|
-
<%= link_to t("ship_address"), (@current_action=="edit" ?
|
22
|
+
<%= link_to t("ship_address"), (@current_action=="edit" ? edit_admin_checkout_url(@order.number) : admin_orders_checkout_url(@order.number)) %>
|
22
23
|
<%= t("ship_address") if @order.shipments.empty? %>
|
23
24
|
</h4>
|
24
25
|
<%= render :partial => 'admin/shared/address', :locals => {:address => @order.ship_address} %>
|
@@ -1,6 +1,7 @@
|
|
1
1
|
<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Customer Details"} %>
|
2
|
+
<%= csrf_meta_tag %>
|
2
3
|
|
3
|
-
<% if @order.
|
4
|
+
<% if @order.cart? %>
|
4
5
|
<div id="add-line-item">
|
5
6
|
<fieldset>
|
6
7
|
<legend><%= t('customer_search') %></legend>
|
@@ -10,12 +11,14 @@
|
|
10
11
|
</div>
|
11
12
|
<% end %>
|
12
13
|
|
13
|
-
<%= render "shared/error_messages", :target => @
|
14
|
-
|
15
|
-
|
14
|
+
<%= render "shared/error_messages", :target => @order %>
|
15
|
+
|
16
|
+
<%= form_for(@order, :url => admin_order_url(@order), :html => { :method => :put}) do |f| %>
|
17
|
+
<%= f.hidden_field :number %>
|
18
|
+
<%= render :partial => "user_form", :locals => {:f => f} %>
|
16
19
|
<% end %>
|
17
20
|
|
18
21
|
<% content_for :head do %>
|
19
22
|
<%= javascript_include_tag 'admin/checkouts/edit.js' %>
|
20
|
-
|
23
|
+
|
21
24
|
<% end %>
|
@@ -3,20 +3,18 @@
|
|
3
3
|
<th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th>
|
4
4
|
<th><%= t("amount") %></th>
|
5
5
|
<th><%= t("payment_method") %></th>
|
6
|
-
<th
|
6
|
+
<th><%= t("state") %></th>
|
7
|
+
<th>Actions</th>
|
7
8
|
</tr>
|
8
9
|
<% payments.each do |payment| %>
|
9
10
|
<tr>
|
10
11
|
<td><%= payment.created_at.to_s(:date_time24) %></td>
|
11
12
|
<td><%= number_to_currency(payment.amount) %></td>
|
12
|
-
<td><%= payment_method_name payment %></td>
|
13
|
+
<td><%= link_to payment_method_name(payment), admin_order_payment_path(@order, payment) %></td>
|
14
|
+
<td><%= payment.state.capitalize %></td>
|
13
15
|
<td>
|
14
|
-
<%= link_to t('show'), admin_order_payment_path(@order, payment) %>
|
15
16
|
<% payment.actions.each do |action| %>
|
16
|
-
<%=
|
17
|
-
<% end %>
|
18
|
-
<% if payment.actions.empty? and !payment.finalized? %>
|
19
|
-
<%= link_to t(:finalize), finalize_admin_order_payment_path(@order, payment), :method => :put, :confirm => t('are_you_sure') %>
|
17
|
+
<%= button_to t(action), fire_admin_order_payment_path(@order, payment, :e => action), :method => :put %>
|
20
18
|
<% end %>
|
21
19
|
</td>
|
22
20
|
</tr>
|
@@ -11,17 +11,12 @@
|
|
11
11
|
|
12
12
|
<%= render 'admin/shared/order_tabs', :current => "Payments" %>
|
13
13
|
|
14
|
-
<% if @order.outstanding_credit? %>
|
15
|
-
<p><%= t('credit_owed') %> <strong><%= number_to_currency @order.outstanding_credit %></strong></p>
|
16
|
-
<% end %>
|
17
14
|
<% if @order.outstanding_balance? %>
|
18
|
-
<p><%= t('balance_due') %> <strong><%= number_to_currency @order.outstanding_balance %></strong></p>
|
15
|
+
<p><%= @order.outstanding_balance < 0 ? t('credit_owed') : t('balance_due') %> <strong><%= number_to_currency @order.outstanding_balance %></strong></p>
|
19
16
|
<% end %>
|
20
17
|
|
21
|
-
<h2><%= t("
|
18
|
+
<h2><%= t("payments") %></h2>
|
22
19
|
<%= render 'list', :payments => @payments %>
|
23
20
|
|
24
|
-
<h2><%= t("pending_payments") %></h2>
|
25
|
-
<%= render 'list', :payments => @order.checkout.payments %>
|
26
21
|
|
27
|
-
<%= button_link_to t('continue'), admin_orders_url %>
|
22
|
+
<%= button_link_to t('continue'), admin_orders_url %>
|
@@ -7,12 +7,8 @@
|
|
7
7
|
<td align="right"><%=number_to_currency @item_total%></td>
|
8
8
|
</tr>
|
9
9
|
<tr>
|
10
|
-
<th scope="row"><%= t("
|
11
|
-
<td align="right"><%=number_to_currency @
|
12
|
-
</tr>
|
13
|
-
<tr>
|
14
|
-
<th scope="row"><%= t("credit_total") %>:</th>
|
15
|
-
<td align="right"><%=number_to_currency @credit_total%></td>
|
10
|
+
<th scope="row"><%= t("adjustment_total") %>:</th>
|
11
|
+
<td align="right"><%=number_to_currency @adjustment_total%></td>
|
16
12
|
</tr>
|
17
13
|
<tr>
|
18
14
|
<th scope="row"><%= t("sales_total") %>:</th>
|
@@ -2,19 +2,27 @@
|
|
2
2
|
<tr>
|
3
3
|
<th><%= t("product") %></th>
|
4
4
|
<th><%= t("quantity_shipped") %></th>
|
5
|
+
<th><%= t("quantity_returned") %></th>
|
5
6
|
<th><%= t("return_quantity") %></th>
|
6
7
|
</tr>
|
7
|
-
<% @return_authorization.order.
|
8
|
-
<tr id="<%= dom_id(
|
8
|
+
<% @return_authorization.order.inventory_units.group_by(&:variant).each do | variant, units| %>
|
9
|
+
<tr id="<%= dom_id(variant) %>">
|
9
10
|
<td>
|
10
|
-
<h4 style="margin-bottom:0px;"><%=
|
11
|
-
<%=
|
11
|
+
<h4 style="margin-bottom:0px;"><%= variant.name %></h4>
|
12
|
+
<%= variant.options_text %>
|
12
13
|
</td>
|
13
|
-
<td><%=
|
14
|
+
<td><%= units.select(&:shipped?).size %></td>
|
15
|
+
<td><%= units.select(&:returned?).size %></td>
|
14
16
|
<td class="return_quantity">
|
15
|
-
|
16
|
-
|
17
|
+
<% if @return_authorization.received? %>
|
18
|
+
<%= @return_authorization.inventory_units.group_by(&:variant)[variant].try(:size) || 0 %>
|
19
|
+
<% elsif units.select(&:shipped?).empty? %>
|
20
|
+
0
|
21
|
+
<% else %>
|
22
|
+
<%= text_field_tag "return_quantity[#{variant.id}]",
|
23
|
+
@return_authorization.inventory_units.group_by(&:variant)[variant].try(:size) || 0,
|
17
24
|
{:style => "width:30px;"} %>
|
25
|
+
<% end %>
|
18
26
|
</td>
|
19
27
|
</tr>
|
20
28
|
<% end %>
|
@@ -22,8 +30,12 @@
|
|
22
30
|
|
23
31
|
<%= f.field_container :amount do %>
|
24
32
|
<%= f.label :amount, t("amount")%> <span class="required">*</span><br />
|
25
|
-
|
26
|
-
|
33
|
+
<% if @return_authorization.received? %>
|
34
|
+
<%= number_to_currency(@return_authorization.amount) %>
|
35
|
+
<% else %>
|
36
|
+
<%= f.text_field :amount, {:style => "width:80px;"} %> <%= t("rma_value") %>: <span id="rma_value"></span>
|
37
|
+
<%= f.error_message_on :amount %>
|
38
|
+
<% end %>
|
27
39
|
<% end %>
|
28
40
|
|
29
41
|
<%= f.field_container :reason do %>
|
@@ -36,8 +48,8 @@
|
|
36
48
|
<% content_for :head do %>
|
37
49
|
<script type="text/javascript">
|
38
50
|
var variant_prices = new Array();
|
39
|
-
<% @return_authorization.order.
|
40
|
-
variant_prices[<%=
|
51
|
+
<% @return_authorization.order.inventory_units.group_by(&:variant).each do | variant, units| %>
|
52
|
+
variant_prices[<%= variant.id.to_s %>] = <%= variant.price %>;
|
41
53
|
<% end %>
|
42
54
|
|
43
55
|
function calculate_rma_price(object, value){
|
@@ -61,4 +73,4 @@
|
|
61
73
|
calculate_rma_price();
|
62
74
|
});
|
63
75
|
</script>
|
64
|
-
<% end %>
|
76
|
+
<% end %>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<%= render :partial => "form", :locals => {:f => f} %>
|
22
22
|
|
23
23
|
<p class="form-buttons">
|
24
|
-
<%= button t('
|
24
|
+
<%= button t('update') %>
|
25
25
|
<%= t("or") %> <%= link_to t("actions.cancel"), admin_order_return_authorizations_url(@order) %>
|
26
26
|
</p>
|
27
27
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%
|
1
|
+
<% if @order.inventory_units.any? &:shipped? %>
|
2
2
|
<div class='toolbar'>
|
3
3
|
<ul class='actions'>
|
4
4
|
<li>
|
@@ -27,13 +27,15 @@
|
|
27
27
|
<td><%= return_authorization.created_at.to_s(:date_time24) %></td>
|
28
28
|
<td>
|
29
29
|
<%= link_to_edit return_authorization %>
|
30
|
-
|
31
|
-
|
30
|
+
<% unless return_authorization.received? %>
|
31
|
+
|
32
|
+
<%= link_to_delete return_authorization %>
|
33
|
+
<% end %>
|
32
34
|
</td>
|
33
35
|
|
34
36
|
</tr>
|
35
37
|
<% end %>
|
36
|
-
<%
|
38
|
+
<% unless @order.inventory_units.any? &:shipped? %>
|
37
39
|
<tr>
|
38
40
|
<td colspan="5"><%= t("cannot_create_returns") %></td>
|
39
41
|
</tr>
|
@@ -1,16 +1,18 @@
|
|
1
1
|
<table class="index">
|
2
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 %>
|
9
|
-
</span>
|
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
3
|
<tr>
|
4
|
+
<th colspan="8">
|
5
|
+
<%= name %>
|
6
|
+
<span class="right">
|
7
|
+
<% if use_billing %>
|
8
|
+
<%= check_box_tag 'order[use_billing]', '1', (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address)) %> <%= t("use_billing_address") %>
|
9
|
+
<% end %>
|
10
|
+
</span>
|
11
|
+
</th>
|
12
|
+
</tr>
|
13
|
+
</thead>
|
14
|
+
<tbody id="<%= name == t('shipping_address') ? "shipping" : "billing" %>" style="display:<%= (use_billing && (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address))) ? "none" : "" %>">
|
15
|
+
<tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
|
14
16
|
<td class="lbl-col">
|
15
17
|
<%= f.label :firstname, t(:first_name)+':' %>
|
16
18
|
</td>
|
@@ -20,7 +22,7 @@
|
|
20
22
|
</td>
|
21
23
|
<td class="val-col" colspan="3"><%= f.text_field :lastname %></td>
|
22
24
|
</tr>
|
23
|
-
<tr>
|
25
|
+
<tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
|
24
26
|
<td class="lbl-col">
|
25
27
|
<%= f.label :address1, t(:street_address)+':' %>
|
26
28
|
</td>
|
@@ -30,7 +32,7 @@
|
|
30
32
|
</td>
|
31
33
|
<td colspan="3"><%= f.text_field :address2, :class => "fullwidth" %></td>
|
32
34
|
</tr>
|
33
|
-
<tr>
|
35
|
+
<tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
|
34
36
|
<td class="lbl-col">
|
35
37
|
<%= f.label :city, t(:city)+':' %>
|
36
38
|
</td>
|
@@ -40,24 +42,25 @@
|
|
40
42
|
</td>
|
41
43
|
<td colspan="3"><%= f.text_field :zipcode, :style => "width:100px;" %></td>
|
42
44
|
</tr>
|
43
|
-
<tr>
|
45
|
+
<tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
|
44
46
|
<td class="lbl-col">
|
45
47
|
<%= f.label :state_id, t(:state)+':' %>
|
46
48
|
</td>
|
47
49
|
<td colspan="3">
|
48
50
|
<span id="<%= name==t('shipping_address') ? "s" : "b" %>state">
|
51
|
+
|
49
52
|
<%= 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,
|
53
|
+
<%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, {:include_blank => true}, {:style=> "width:150px;display:#{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
|
51
54
|
</span>
|
52
55
|
</td>
|
53
56
|
<td class="lbl-col">
|
54
57
|
<%= f.label :country_id, t(:country)+':' %>
|
55
58
|
</td>
|
56
59
|
<td colspan="3">
|
57
|
-
<span id="<%= name==t('shipping_address') ? "s" : "b" %>country"><%= f.collection_select :country_id,
|
60
|
+
<span id="<%= name==t('shipping_address') ? "s" : "b" %>country"><%= f.collection_select :country_id, available_countries, :id, :name, {}, {:style => 'width:150px;'} %></span>
|
58
61
|
</td>
|
59
62
|
</tr>
|
60
|
-
<tr>
|
63
|
+
<tr class="<%= name == t('shipping_address') ? "shipping-row" : "billing-row" %>">
|
61
64
|
<td class="lbl-col">
|
62
65
|
<%= f.label :phone, t(:phone)+':' %>
|
63
66
|
</td>
|
@@ -73,4 +76,4 @@
|
|
73
76
|
$('span#<%= name==t('shipping_address') ? "s" : "b" %>country select').change(function() { update_state('<%= name==t('shipping_address') ? "s" : "b" %>'); });
|
74
77
|
});
|
75
78
|
</script>
|
76
|
-
<% end %>
|
79
|
+
<% end %>
|