spree_backend 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/app/assets/images/admin/bg/spree_50.png +0 -0
- data/app/assets/images/admin/payment_banner.png +0 -0
- data/app/assets/images/admin/progress.gif +0 -0
- data/app/assets/javascripts/admin/address_states.js +27 -0
- data/app/assets/javascripts/admin/admin.js.erb +283 -0
- data/app/assets/javascripts/admin/calculator.js +16 -0
- data/app/assets/javascripts/admin/checkouts/edit.js +94 -0
- data/app/assets/javascripts/admin/gateway.js +13 -0
- data/app/assets/javascripts/admin/image_settings.js.erb +62 -0
- data/app/assets/javascripts/admin/images/index.js.coffee +15 -0
- data/app/assets/javascripts/admin/images/new.js.coffee +7 -0
- data/app/assets/javascripts/admin/nested-attribute.js +23 -0
- data/app/assets/javascripts/admin/option_type_autocomplete.js.erb +35 -0
- data/app/assets/javascripts/admin/orders/edit.js +17 -0
- data/app/assets/javascripts/admin/orders/edit_form.js +16 -0
- data/app/assets/javascripts/admin/payments/new.js +16 -0
- data/app/assets/javascripts/admin/product_picker.js +37 -0
- data/app/assets/javascripts/admin/progress.coffee +27 -0
- data/app/assets/javascripts/admin/promotions.js +98 -0
- data/app/assets/javascripts/admin/shipments.js.erb +66 -0
- data/app/assets/javascripts/admin/spree-select2.js.erb +22 -0
- data/app/assets/javascripts/admin/spree_backend.js +19 -0
- data/app/assets/javascripts/admin/states.js +9 -0
- data/app/assets/javascripts/admin/stock_management.js.coffee +9 -0
- data/app/assets/javascripts/admin/stock_transfer.js.coffee +181 -0
- data/app/assets/javascripts/admin/taxon_autocomplete.js.erb +32 -0
- data/app/assets/javascripts/admin/taxon_tree_menu.js.coffee +22 -0
- data/app/assets/javascripts/admin/taxonomy.js.coffee +127 -0
- data/app/assets/javascripts/admin/underscore-min.js +1227 -0
- data/app/assets/javascripts/admin/user_picker.js +31 -0
- data/app/assets/javascripts/admin/variant_autocomplete.js.erb +180 -0
- data/app/assets/javascripts/admin/zone.js.coffee +39 -0
- data/app/assets/javascripts/store/backend.js +1 -0
- data/app/assets/stylesheets/admin/components/_actions.scss +31 -0
- data/app/assets/stylesheets/admin/components/_date-picker.scss +154 -0
- data/app/assets/stylesheets/admin/components/_messages.scss +43 -0
- data/app/assets/stylesheets/admin/components/_navigation.scss +150 -0
- data/app/assets/stylesheets/admin/components/_pagination.scss +17 -0
- data/app/assets/stylesheets/admin/components/_product_autocomplete.scss +29 -0
- data/app/assets/stylesheets/admin/components/_progress.scss +35 -0
- data/app/assets/stylesheets/admin/components/_sidebar.scss +24 -0
- data/app/assets/stylesheets/admin/components/_states.scss +34 -0
- data/app/assets/stylesheets/admin/components/_table-filter.scss +14 -0
- data/app/assets/stylesheets/admin/globals/_functions.scss +25 -0
- data/app/assets/stylesheets/admin/globals/_mixins.scss +25 -0
- data/app/assets/stylesheets/admin/globals/_variables.scss +142 -0
- data/app/assets/stylesheets/admin/globals/_variables_override.scss +7 -0
- data/app/assets/stylesheets/admin/hacks/_ie.scss +73 -0
- data/app/assets/stylesheets/admin/hacks/_mozilla.scss +32 -0
- data/app/assets/stylesheets/admin/hacks/_opera.scss +17 -0
- data/app/assets/stylesheets/admin/plugins/_jstree.scss +132 -0
- data/app/assets/stylesheets/admin/plugins/_powertip.scss +86 -0
- data/app/assets/stylesheets/admin/plugins/_select2.scss +176 -0
- data/app/assets/stylesheets/admin/plugins/_token-input.scss +110 -0
- data/app/assets/stylesheets/admin/plugins/font-awesome.scss +303 -0
- data/app/assets/stylesheets/admin/sections/_bulk_transfer.scss +8 -0
- data/app/assets/stylesheets/admin/sections/_edit_checkouts.scss +72 -0
- data/app/assets/stylesheets/admin/sections/_image_settings.scss +3 -0
- data/app/assets/stylesheets/admin/sections/_orders.scss +54 -0
- data/app/assets/stylesheets/admin/sections/_overview.scss +86 -0
- data/app/assets/stylesheets/admin/sections/_products.scss +113 -0
- data/app/assets/stylesheets/admin/sections/_promotions.scss +100 -0
- data/app/assets/stylesheets/admin/shared/_forms.scss +262 -0
- data/app/assets/stylesheets/admin/shared/_icons.scss +22 -0
- data/app/assets/stylesheets/admin/shared/_layout.scss +91 -0
- data/app/assets/stylesheets/admin/shared/_tables.scss +198 -0
- data/app/assets/stylesheets/admin/shared/_typography.scss +132 -0
- data/app/assets/stylesheets/admin/spree_admin.scss +39 -0
- data/app/assets/stylesheets/admin/spree_backend.css +16 -0
- data/app/assets/stylesheets/store/backend.css +1 -0
- data/app/controllers/spree/admin/adjustments_controller.rb +30 -0
- data/app/controllers/spree/admin/banners_controller.rb +14 -0
- data/app/controllers/spree/admin/base_controller.rb +92 -0
- data/app/controllers/spree/admin/countries_controller.rb +11 -0
- data/app/controllers/spree/admin/general_settings_controller.rb +34 -0
- data/app/controllers/spree/admin/image_settings_controller.rb +66 -0
- data/app/controllers/spree/admin/images_controller.rb +35 -0
- data/app/controllers/spree/admin/inventory_units_controller.rb +6 -0
- data/app/controllers/spree/admin/line_items_controller.rb +49 -0
- data/app/controllers/spree/admin/mail_methods_controller.rb +38 -0
- data/app/controllers/spree/admin/option_types_controller.rb +46 -0
- data/app/controllers/spree/admin/option_values_controller.rb +11 -0
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +40 -0
- data/app/controllers/spree/admin/orders_controller.rb +133 -0
- data/app/controllers/spree/admin/overview_controller.rb +13 -0
- data/app/controllers/spree/admin/payment_methods_controller.rb +65 -0
- data/app/controllers/spree/admin/payments_controller.rb +111 -0
- data/app/controllers/spree/admin/product_properties_controller.rb +18 -0
- data/app/controllers/spree/admin/products_controller.rb +115 -0
- data/app/controllers/spree/admin/promotion_actions_controller.rb +45 -0
- data/app/controllers/spree/admin/promotion_rules_controller.rb +50 -0
- data/app/controllers/spree/admin/promotions_controller.rb +23 -0
- data/app/controllers/spree/admin/properties_controller.rb +12 -0
- data/app/controllers/spree/admin/prototypes_controller.rb +27 -0
- data/app/controllers/spree/admin/reports_controller.rb +55 -0
- data/app/controllers/spree/admin/resource_controller.rb +261 -0
- data/app/controllers/spree/admin/return_authorizations_controller.rb +21 -0
- data/app/controllers/spree/admin/search_controller.rb +27 -0
- data/app/controllers/spree/admin/shipping_categories_controller.rb +6 -0
- data/app/controllers/spree/admin/shipping_methods_controller.rb +45 -0
- data/app/controllers/spree/admin/states_controller.rb +29 -0
- data/app/controllers/spree/admin/stock_items_controller.rb +24 -0
- data/app/controllers/spree/admin/stock_locations_controller.rb +7 -0
- data/app/controllers/spree/admin/stock_movements_controller.rb +60 -0
- data/app/controllers/spree/admin/stock_transfers_controller.rb +53 -0
- data/app/controllers/spree/admin/tax_categories_controller.rb +19 -0
- data/app/controllers/spree/admin/tax_rates_controller.rb +26 -0
- data/app/controllers/spree/admin/tax_settings_controller.rb +17 -0
- data/app/controllers/spree/admin/taxonomies_controller.rb +21 -0
- data/app/controllers/spree/admin/taxons_controller.rb +112 -0
- data/app/controllers/spree/admin/trackers_controller.rb +6 -0
- data/app/controllers/spree/admin/variants_controller.rb +44 -0
- data/app/controllers/spree/admin/zones_controller.rb +26 -0
- data/app/helpers/spree/admin/base_helper.rb +168 -0
- data/app/helpers/spree/admin/general_settings_helper.rb +13 -0
- data/app/helpers/spree/admin/inventory_settings_helper.rb +9 -0
- data/app/helpers/spree/admin/navigation_helper.rb +154 -0
- data/app/helpers/spree/admin/orders_helper.rb +19 -0
- data/app/helpers/spree/admin/payments_helper.rb +11 -0
- data/app/helpers/spree/admin/products_helper.rb +27 -0
- data/app/helpers/spree/admin/stock_movements_helper.rb +13 -0
- data/app/helpers/spree/admin/tables_helper.rb +15 -0
- data/app/helpers/spree/admin/taxons_helper.rb +9 -0
- data/app/helpers/spree/promotion_rules_helper.rb +13 -0
- data/app/models/spree/backend_configuration.rb +5 -0
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +36 -0
- data/app/views/spree/admin/adjustments/_form.html.erb +16 -0
- data/app/views/spree/admin/adjustments/edit.html.erb +22 -0
- data/app/views/spree/admin/adjustments/index.html.erb +14 -0
- data/app/views/spree/admin/adjustments/new.html.erb +23 -0
- data/app/views/spree/admin/banners/_gateway.html.erb +16 -0
- data/app/views/spree/admin/countries/_form.html.erb +22 -0
- data/app/views/spree/admin/countries/edit.html.erb +21 -0
- data/app/views/spree/admin/countries/index.html.erb +34 -0
- data/app/views/spree/admin/general_settings/edit.html.erb +92 -0
- data/app/views/spree/admin/image_settings/edit.html.erb +126 -0
- data/app/views/spree/admin/images/_form.html.erb +18 -0
- data/app/views/spree/admin/images/edit.html.erb +28 -0
- data/app/views/spree/admin/images/index.html.erb +58 -0
- data/app/views/spree/admin/images/new.html.erb +15 -0
- data/app/views/spree/admin/inventory_units/adjust.html.erb +31 -0
- data/app/views/spree/admin/line_items/create.js.erb +1 -0
- data/app/views/spree/admin/line_items/destroy.js.erb +1 -0
- data/app/views/spree/admin/mail_methods/_form.html.erb +80 -0
- data/app/views/spree/admin/mail_methods/edit.html.erb +21 -0
- data/app/views/spree/admin/option_types/_form.html.erb +17 -0
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +9 -0
- data/app/views/spree/admin/option_types/edit.html.erb +50 -0
- data/app/views/spree/admin/option_types/index.html.erb +40 -0
- data/app/views/spree/admin/option_types/new.html.erb +11 -0
- data/app/views/spree/admin/option_types/new.js.erb +2 -0
- data/app/views/spree/admin/orders/_add_product.html.erb +15 -0
- data/app/views/spree/admin/orders/_form.html.erb +45 -0
- data/app/views/spree/admin/orders/_line_item.html.erb +9 -0
- data/app/views/spree/admin/orders/_shipment.html.erb +148 -0
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +66 -0
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +27 -0
- data/app/views/spree/admin/orders/edit.html.erb +30 -0
- data/app/views/spree/admin/orders/index.html.erb +134 -0
- data/app/views/spree/admin/payment_methods/_form.html.erb +57 -0
- data/app/views/spree/admin/payment_methods/edit.html.erb +23 -0
- data/app/views/spree/admin/payment_methods/index.html.erb +52 -0
- data/app/views/spree/admin/payment_methods/new.html.erb +22 -0
- data/app/views/spree/admin/payments/_bill_address_form.html.erb +9 -0
- data/app/views/spree/admin/payments/_form.html.erb +28 -0
- data/app/views/spree/admin/payments/_list.html.erb +26 -0
- data/app/views/spree/admin/payments/credit.html.erb +18 -0
- data/app/views/spree/admin/payments/index.html.erb +24 -0
- data/app/views/spree/admin/payments/new.html.erb +26 -0
- data/app/views/spree/admin/payments/show.html.erb +18 -0
- data/app/views/spree/admin/payments/source_forms/_check.html.erb +0 -0
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +50 -0
- data/app/views/spree/admin/payments/source_views/_check.html.erb +0 -0
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +29 -0
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +17 -0
- data/app/views/spree/admin/product_properties/index.html.erb +59 -0
- data/app/views/spree/admin/products/_add_stock_form.html.erb +6 -0
- data/app/views/spree/admin/products/_form.html.erb +128 -0
- data/app/views/spree/admin/products/_properties_form.erb +10 -0
- data/app/views/spree/admin/products/edit.html.erb +18 -0
- data/app/views/spree/admin/products/index.html.erb +102 -0
- data/app/views/spree/admin/products/new.html.erb +81 -0
- data/app/views/spree/admin/products/new.js.erb +7 -0
- data/app/views/spree/admin/products/stock.html.erb +79 -0
- data/app/views/spree/admin/promotion_actions/create.js.erb +13 -0
- data/app/views/spree/admin/promotion_actions/destroy.js.erb +1 -0
- data/app/views/spree/admin/promotion_rules/create.js.erb +7 -0
- data/app/views/spree/admin/promotion_rules/destroy.js.erb +3 -0
- data/app/views/spree/admin/promotions/_actions.html.erb +32 -0
- data/app/views/spree/admin/promotions/_form.html.erb +56 -0
- data/app/views/spree/admin/promotions/_promotion_action.html.erb +11 -0
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +9 -0
- data/app/views/spree/admin/promotions/_rules.html.erb +45 -0
- data/app/views/spree/admin/promotions/_tab.html.erb +1 -0
- data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +26 -0
- data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +22 -0
- data/app/views/spree/admin/promotions/edit.html.erb +28 -0
- data/app/views/spree/admin/promotions/index.html.erb +52 -0
- data/app/views/spree/admin/promotions/new.html.erb +16 -0
- data/app/views/spree/admin/promotions/rules/_first_order.html.erb +0 -0
- data/app/views/spree/admin/promotions/rules/_item_total.html.erb +6 -0
- data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +5 -0
- data/app/views/spree/admin/promotions/rules/_product.html.erb +9 -0
- data/app/views/spree/admin/promotions/rules/_user.html.erb +4 -0
- data/app/views/spree/admin/promotions/rules/_user_logged_in.html.erb +0 -0
- data/app/views/spree/admin/properties/_form.html.erb +16 -0
- data/app/views/spree/admin/properties/edit.html.erb +18 -0
- data/app/views/spree/admin/properties/filtered.html.erb +1 -0
- data/app/views/spree/admin/properties/index.html.erb +41 -0
- data/app/views/spree/admin/properties/new.html.erb +13 -0
- data/app/views/spree/admin/properties/new.js.erb +2 -0
- data/app/views/spree/admin/prototypes/_form.html.erb +25 -0
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +25 -0
- data/app/views/spree/admin/prototypes/available.js.erb +2 -0
- data/app/views/spree/admin/prototypes/edit.html.erb +20 -0
- data/app/views/spree/admin/prototypes/index.html.erb +40 -0
- data/app/views/spree/admin/prototypes/new.html.erb +11 -0
- data/app/views/spree/admin/prototypes/new.js.erb +5 -0
- data/app/views/spree/admin/prototypes/select.js.erb +4 -0
- data/app/views/spree/admin/prototypes/show.html.erb +42 -0
- data/app/views/spree/admin/reports/index.html.erb +21 -0
- data/app/views/spree/admin/reports/sales_total.html.erb +37 -0
- data/app/views/spree/admin/return_authorizations/_form.html.erb +78 -0
- data/app/views/spree/admin/return_authorizations/edit.html.erb +32 -0
- data/app/views/spree/admin/return_authorizations/index.html.erb +52 -0
- data/app/views/spree/admin/return_authorizations/new.html.erb +22 -0
- data/app/views/spree/admin/search/users.rabl +30 -0
- data/app/views/spree/admin/shared/_address.html.erb +6 -0
- data/app/views/spree/admin/shared/_address_form.html.erb +72 -0
- data/app/views/spree/admin/shared/_alert.html.erb +5 -0
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +22 -0
- data/app/views/spree/admin/shared/_configuration_menu.html.erb +30 -0
- data/app/views/spree/admin/shared/_destroy.js.erb +16 -0
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +5 -0
- data/app/views/spree/admin/shared/_head.html.erb +25 -0
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +5 -0
- data/app/views/spree/admin/shared/_order_details.html.erb +56 -0
- data/app/views/spree/admin/shared/_order_tabs.html.erb +75 -0
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +8 -0
- data/app/views/spree/admin/shared/_product_tabs.html.erb +30 -0
- data/app/views/spree/admin/shared/_report_criteria.html.erb +17 -0
- data/app/views/spree/admin/shared/_routes.html.erb +8 -0
- data/app/views/spree/admin/shared/_show_resource_links.html.erb +5 -0
- data/app/views/spree/admin/shared/_stock_movement_form.html.erb +30 -0
- data/app/views/spree/admin/shared/_tabs.html.erb +14 -0
- data/app/views/spree/admin/shared/_translations.html.erb +32 -0
- data/app/views/spree/admin/shared/_update_order_state.js +7 -0
- data/app/views/spree/admin/shipping_categories/_form.html.erb +6 -0
- data/app/views/spree/admin/shipping_categories/edit.html.erb +20 -0
- data/app/views/spree/admin/shipping_categories/index.html.erb +35 -0
- data/app/views/spree/admin/shipping_categories/new.html.erb +20 -0
- data/app/views/spree/admin/shipping_methods/_form.html.erb +58 -0
- data/app/views/spree/admin/shipping_methods/edit.html.erb +29 -0
- data/app/views/spree/admin/shipping_methods/index.html.erb +48 -0
- data/app/views/spree/admin/shipping_methods/new.html.erb +29 -0
- data/app/views/spree/admin/states/_form.html.erb +14 -0
- data/app/views/spree/admin/states/_state_list.html.erb +31 -0
- data/app/views/spree/admin/states/edit.html.erb +20 -0
- data/app/views/spree/admin/states/index.html.erb +24 -0
- data/app/views/spree/admin/states/new.html.erb +15 -0
- data/app/views/spree/admin/states/new.js.erb +2 -0
- data/app/views/spree/admin/stock_locations/_form.html.erb +87 -0
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +39 -0
- data/app/views/spree/admin/stock_locations/edit.html.erb +17 -0
- data/app/views/spree/admin/stock_locations/index.html.erb +49 -0
- data/app/views/spree/admin/stock_locations/new.html.erb +16 -0
- data/app/views/spree/admin/stock_movements/_form.html.erb +13 -0
- data/app/views/spree/admin/stock_movements/edit.html.erb +16 -0
- data/app/views/spree/admin/stock_movements/index.html.erb +43 -0
- data/app/views/spree/admin/stock_movements/new.html.erb +16 -0
- data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +27 -0
- data/app/views/spree/admin/stock_transfers/index.html.erb +94 -0
- data/app/views/spree/admin/stock_transfers/new.html.erb +108 -0
- data/app/views/spree/admin/stock_transfers/show.html.erb +48 -0
- data/app/views/spree/admin/tax_categories/_form.html.erb +24 -0
- data/app/views/spree/admin/tax_categories/edit.html.erb +18 -0
- data/app/views/spree/admin/tax_categories/index.html.erb +48 -0
- data/app/views/spree/admin/tax_categories/new.html.erb +19 -0
- data/app/views/spree/admin/tax_categories/show.html.erb +1 -0
- data/app/views/spree/admin/tax_rates/_form.html.erb +42 -0
- data/app/views/spree/admin/tax_rates/edit.html.erb +21 -0
- data/app/views/spree/admin/tax_rates/index.html.erb +59 -0
- data/app/views/spree/admin/tax_rates/new.html.erb +25 -0
- data/app/views/spree/admin/tax_settings/edit.html.erb +18 -0
- data/app/views/spree/admin/taxonomies/_form.html.erb +7 -0
- data/app/views/spree/admin/taxonomies/_js_head.html.erb +13 -0
- data/app/views/spree/admin/taxonomies/_list.html.erb +26 -0
- data/app/views/spree/admin/taxonomies/_taxon.html.erb +12 -0
- data/app/views/spree/admin/taxonomies/edit.erb +42 -0
- data/app/views/spree/admin/taxonomies/index.html.erb +15 -0
- data/app/views/spree/admin/taxonomies/new.html.erb +22 -0
- data/app/views/spree/admin/taxons/_form.html.erb +44 -0
- data/app/views/spree/admin/taxons/_taxon_table.html.erb +23 -0
- data/app/views/spree/admin/taxons/edit.html.erb +23 -0
- data/app/views/spree/admin/taxons/search.rabl +5 -0
- data/app/views/spree/admin/trackers/_form.html.erb +34 -0
- data/app/views/spree/admin/trackers/edit.html.erb +20 -0
- data/app/views/spree/admin/trackers/index.html.erb +48 -0
- data/app/views/spree/admin/trackers/new.html.erb +20 -0
- data/app/views/spree/admin/variants/_autocomplete.js.erb +67 -0
- data/app/views/spree/admin/variants/_form.html.erb +37 -0
- data/app/views/spree/admin/variants/edit.html.erb +15 -0
- data/app/views/spree/admin/variants/index.html.erb +74 -0
- data/app/views/spree/admin/variants/new.html.erb +9 -0
- data/app/views/spree/admin/variants/new.js.erb +3 -0
- data/app/views/spree/admin/zones/_country_member.html.erb +5 -0
- data/app/views/spree/admin/zones/_form.html.erb +34 -0
- data/app/views/spree/admin/zones/_member_type.html.erb +19 -0
- data/app/views/spree/admin/zones/_state_member.html.erb +5 -0
- data/app/views/spree/admin/zones/edit.html.erb +23 -0
- data/app/views/spree/admin/zones/index.html.erb +53 -0
- data/app/views/spree/admin/zones/new.html.erb +21 -0
- data/app/views/spree/layouts/admin.html.erb +135 -0
- data/app/views/spree/test_mailer/test_email.text.erb +4 -0
- data/config/initializers/form_builder.rb +15 -0
- data/config/routes.rb +159 -0
- data/lib/spree/backend.rb +21 -0
- data/lib/spree/backend/action_callbacks.rb +26 -0
- data/lib/spree/backend/engine.rb +41 -0
- data/lib/spree_backend.rb +1 -0
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +255 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_0073ea_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_666666_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_ff0084_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/assets/images/jquery.alerts/images/help.gif +0 -0
- data/vendor/assets/images/jquery.alerts/images/important.gif +0 -0
- data/vendor/assets/images/jquery.alerts/images/info.gif +0 -0
- data/vendor/assets/images/jquery.alerts/images/title.gif +0 -0
- data/vendor/assets/javascripts/css_browser_selector_dev.js +156 -0
- data/vendor/assets/javascripts/equalize.js +41 -0
- data/vendor/assets/javascripts/handlebars.js +1920 -0
- data/vendor/assets/javascripts/jquery.adaptivemenu.js +60 -0
- data/vendor/assets/javascripts/jquery.alerts/jquery.alerts.js +235 -0
- data/vendor/assets/javascripts/jquery.cookie.js +41 -0
- data/vendor/assets/javascripts/jquery.delayedobserver.js +35 -0
- data/vendor/assets/javascripts/jquery.horizontalNav.js +141 -0
- data/vendor/assets/javascripts/jquery.jstree/jquery.jstree.js +4540 -0
- data/vendor/assets/javascripts/jquery.jstree/themes/apple/bg.jpg +0 -0
- data/vendor/assets/javascripts/jquery.jstree/themes/apple/d.png +0 -0
- data/vendor/assets/javascripts/jquery.jstree/themes/apple/dot_for_ie.gif +0 -0
- data/vendor/assets/javascripts/jquery.jstree/themes/apple/style.css +61 -0
- data/vendor/assets/javascripts/jquery.jstree/themes/apple/throbber.gif +0 -0
- data/vendor/assets/javascripts/jquery.powertip.js +796 -0
- data/vendor/assets/javascripts/jquery.vAlign.js +11 -0
- data/vendor/assets/javascripts/modernizr.js +4 -0
- data/vendor/assets/javascripts/responsive-tables.js +42 -0
- data/vendor/assets/javascripts/spin.js +319 -0
- data/vendor/assets/javascripts/trunk8.js +233 -0
- data/vendor/assets/stylesheets/font-awesome-ie7.css +645 -0
- data/vendor/assets/stylesheets/font-awesome.css.erb +303 -0
- data/vendor/assets/stylesheets/jquery-ui.datepicker.css.erb +357 -0
- data/vendor/assets/stylesheets/jquery.alerts/jquery.alerts.css.erb +57 -0
- data/vendor/assets/stylesheets/jquery.alerts/jquery.alerts.spree.css +29 -0
- data/vendor/assets/stylesheets/jquery.powertip.css +85 -0
- data/vendor/assets/stylesheets/responsive-tables.css +21 -0
- metadata +509 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
<div data-hook="admin_image_form_fields">
|
2
|
+
<div class="four columns alpha">
|
3
|
+
<div data-hook="file" class="field">
|
4
|
+
<%= f.label Spree.t(:filename) %><br>
|
5
|
+
<%= f.file_field :attachment %>
|
6
|
+
</div>
|
7
|
+
<div data-hook="variant" class="field">
|
8
|
+
<%= f.label Spree::Variant.model_name.human %><br>
|
9
|
+
<%= f.select :viewable_id, @variants, {}, {:class => 'select2 fullwidth'} %>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<div data-hook="alt_text" class="field omega five columns">
|
13
|
+
<%= f.label Spree.t(:alt_text) %><br>
|
14
|
+
<%= f.text_area :alt, :rows => 4, :class => 'fullwidth' %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="clear"></div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
|
2
|
+
|
3
|
+
<%= render :partial => 'spree/admin/shared/product_tabs', :locals => { :current => 'Images' } %>
|
4
|
+
|
5
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @image } %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product), :icon => 'icon-arrow-left' %></li>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<%= form_for [:admin, @product, @image], :html => { :multipart => true } do |f| %>
|
12
|
+
<fieldset data-hook="edit_image">
|
13
|
+
<legend align="center"><%= @image.attachment_file_name%></legend>
|
14
|
+
<div data-hook="thumbnail" class="field alpha three columns align-center">
|
15
|
+
<%= f.label Spree.t(:thumbnail) %><br>
|
16
|
+
<%= link_to image_tag(@image.attachment.url(:small)), @image.attachment.url(:product) %>
|
17
|
+
</div>
|
18
|
+
<div class="nine columns omega">
|
19
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
20
|
+
</div>
|
21
|
+
<div class="clear"></div>
|
22
|
+
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
23
|
+
<%= button Spree.t('actions.update'), 'icon-refresh' %>
|
24
|
+
<span class="or"><%= Spree.t(:or) %></span>
|
25
|
+
<%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button icon-remove' %>
|
26
|
+
</div>
|
27
|
+
</fieldset>
|
28
|
+
<% end %>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
|
2
|
+
|
3
|
+
<%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Images'} %>
|
4
|
+
|
5
|
+
<% content_for :page_actions do %>
|
6
|
+
<li><%= link_to_with_icon('icon-plus', Spree.t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link', :class => 'button') %></li>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<div id="images" data-hook></div>
|
10
|
+
|
11
|
+
<% unless @product.images.any? || @product.variant_images.any? %>
|
12
|
+
<div class="no-objects-found">
|
13
|
+
<%= Spree.t(:no_images_found) %>.
|
14
|
+
</div>
|
15
|
+
<% else %>
|
16
|
+
<table class="index sortable" data-hook="images_table" data-sortable-link="<%= update_positions_admin_product_images_url(@product) %>">
|
17
|
+
<colgroup>
|
18
|
+
<col style="width: 5%">
|
19
|
+
<col style="width: 10%">
|
20
|
+
<% if @product.has_variants? %>
|
21
|
+
<col style="width: 25%">
|
22
|
+
<% end %>
|
23
|
+
<col style="width: 45%">
|
24
|
+
<col style="width: 15%">
|
25
|
+
</colgroup>
|
26
|
+
<thead>
|
27
|
+
<tr data-hook="images_header">
|
28
|
+
<th colspan="2"><%= Spree.t(:thumbnail) %></th>
|
29
|
+
<% if @product.has_variants? %>
|
30
|
+
<th><%= Spree::Variant.model_name.human %></th>
|
31
|
+
<% end %>
|
32
|
+
<th><%= Spree.t(:alt_text) %></th>
|
33
|
+
<th class="actions"></th>
|
34
|
+
</tr>
|
35
|
+
</thead>
|
36
|
+
|
37
|
+
<tbody>
|
38
|
+
<% (@product.variant_images).each do |image| %>
|
39
|
+
<tr id="<%= spree_dom_id image %>" data-hook="images_row" class="<%= cycle('odd', 'even')%>">
|
40
|
+
<td class="no-border">
|
41
|
+
<span class="handle"></span>
|
42
|
+
</td>
|
43
|
+
<td>
|
44
|
+
<%= link_to image_tag(image.attachment.url(:mini)), image.attachment.url(:product) %>
|
45
|
+
</td>
|
46
|
+
<% if @product.has_variants? %>
|
47
|
+
<td><%= options_text_for(image) %></td>
|
48
|
+
<% end %>
|
49
|
+
<td><%= image.alt %></td>
|
50
|
+
<td class="actions">
|
51
|
+
<%= link_to_with_icon 'icon-edit', Spree.t(:edit), edit_admin_product_image_url(@product, image), :no_text => true, :data => {:action => 'edit'} %>
|
52
|
+
<%= link_to_delete image, { :url => admin_product_image_url(@product, image), :no_text => true } %>
|
53
|
+
</td>
|
54
|
+
</tr>
|
55
|
+
<% end %>
|
56
|
+
</tbody>
|
57
|
+
</table>
|
58
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= form_for [:admin, @product, @image], :html => { :multipart => true } do |f| %>
|
2
|
+
<fieldset data-hook="new_image">
|
3
|
+
<legend align="center"><%= Spree.t(:new_image) %></legend>
|
4
|
+
|
5
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
6
|
+
|
7
|
+
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
8
|
+
<%= button Spree.t('actions.update'), 'icon-refresh' %>
|
9
|
+
<span class="or"><%= Spree.t(:or) %></span>
|
10
|
+
<%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button' %>
|
11
|
+
</div>
|
12
|
+
</fieldset>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= javascript_include_tag 'admin/images/new.js' %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @level } %>
|
2
|
+
|
3
|
+
<%= form_tag do %>
|
4
|
+
<br /><br />
|
5
|
+
|
6
|
+
<h1><%= Spree.t(:inventory_adjustment) %></h1>
|
7
|
+
|
8
|
+
<table class="basic-table">
|
9
|
+
<thead data-hook="inventory_header">
|
10
|
+
<tr>
|
11
|
+
<th><%= Spree.t(:sku) %></th>
|
12
|
+
<th><%= Spree.t(:product) %></th>
|
13
|
+
<th><%= Spree.t(:options) %></th>
|
14
|
+
<th><%= Spree.t(:adjustment) %></th>
|
15
|
+
</tr>
|
16
|
+
</thead>
|
17
|
+
<tbody>
|
18
|
+
<tr data-hook="inventory_row">
|
19
|
+
<td><%= @variant.sku %></td>
|
20
|
+
<td><%= @variant.product.name %></td>
|
21
|
+
<td><%= variant_options @variant %></td>
|
22
|
+
<td>
|
23
|
+
<%= text_field :level, :adjustment, :class => 'quantity' %>
|
24
|
+
</td>
|
25
|
+
</tr>
|
26
|
+
</tbody>
|
27
|
+
</table>
|
28
|
+
<%= submit_tag Spree.t('actions.update') %>
|
29
|
+
<%= Spree.t(:or) %>
|
30
|
+
<%= link_to Spree.t('actions.cancel'), :controller => 'overview', :action => :index %>
|
31
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#order-form-wrapper").html('<%= escape_javascript(render :partial => "spree/admin/orders/form") %>');
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#order-form-wrapper").html('<%= escape_javascript(render :partial => "spree/admin/orders/form") %>');
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<div data-hook="admin_mail_method_form_fields">
|
2
|
+
<div class="row">
|
3
|
+
|
4
|
+
<div class="alpha six columns" data-hook="general">
|
5
|
+
<fieldset class="no-border-bottom">
|
6
|
+
<legend align="center"><%= Spree.t(:general) %></legend>
|
7
|
+
|
8
|
+
<div class="field">
|
9
|
+
<%= preference_field_tag("enable_mail_delivery", Spree::Config[:enable_mail_delivery], :type => :boolean) %>
|
10
|
+
<%= label_tag :enable_mail_delivery, Spree.t(:enable_mail_delivery) %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="field">
|
14
|
+
<%= label_tag :mails_from, Spree.t(:send_mails_as) %><br />
|
15
|
+
<%= text_field_tag :mails_from, Spree::Config[:mails_from], :maxlength => 256, :class => 'fullwidth' %>
|
16
|
+
<br />
|
17
|
+
<span class="info">
|
18
|
+
<%= Spree.t(:smtp_send_all_emails_as_from_following_address) %>
|
19
|
+
</span>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="field">
|
23
|
+
<%= label_tag :mail_bcc, Spree.t(:send_copy_of_all_mails_to) %><br />
|
24
|
+
<%= text_field_tag :mail_bcc, Spree::Config[:mail_bcc], :maxlength => 256, :class => 'fullwidth' %>
|
25
|
+
<br />
|
26
|
+
<span class="info">
|
27
|
+
<%= Spree.t(:smtp_send_copy_to_this_addresses) %>
|
28
|
+
</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="field">
|
32
|
+
<%= label_tag :intercept_email, Spree.t(:intercept_email_address) %><br />
|
33
|
+
<%= text_field_tag :intercept_email, Spree::Config[:intercept_email], :maxlength => 256, :class => 'fullwidth' %>
|
34
|
+
<br />
|
35
|
+
<span class="info">
|
36
|
+
<%= Spree.t(:intercept_email_instructions) %>
|
37
|
+
</span>
|
38
|
+
</div>
|
39
|
+
</fieldset>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<div class="six columns omega" data-hook="smtp">
|
43
|
+
<fieldset class="no-border-bottom">
|
44
|
+
<legend align="center"><%= Spree.t(:smtp) %></legend>
|
45
|
+
<div class="field">
|
46
|
+
<%= label_tag :mail_domain, Spree.t(:smtp_domain) %><br />
|
47
|
+
<%= text_field_tag :mail_domain, Spree::Config[:mail_domain], :class => 'fullwidth' %>
|
48
|
+
</div>
|
49
|
+
<div class="field">
|
50
|
+
<%= label_tag :mail_host, Spree.t(:smtp_mail_host) %><br />
|
51
|
+
<%= text_field_tag :mail_host, Spree::Config[:mail_host], :class => 'fullwidth' %>
|
52
|
+
</div>
|
53
|
+
<div class="field">
|
54
|
+
<%= label_tag :mail_port, Spree.t(:smtp_port) %><br />
|
55
|
+
<%= text_field_tag :mail_port, Spree::Config[:mail_port], :class => 'fullwidth' %>
|
56
|
+
</div>
|
57
|
+
<div class="field">
|
58
|
+
<%= label_tag :secure_connection_type, Spree.t(:secure_connection_type) %><br />
|
59
|
+
<%= select_tag(:secure_connection_type,
|
60
|
+
options_from_collection_for_select(Spree::Core::MailSettings::SECURE_CONNECTION_TYPES, :to_s, :to_s, Spree::Config[:secure_connection_type]),
|
61
|
+
:class => 'select2 fullwidth') %>
|
62
|
+
</div>
|
63
|
+
<div class="field">
|
64
|
+
<%= label_tag :mail_auth_type, Spree.t(:smtp_authentication_type) %><br />
|
65
|
+
<%= select_tag(:mail_auth_type,
|
66
|
+
options_from_collection_for_select(Spree::Core::MailSettings::MAIL_AUTH, :to_s, :to_s, Spree::Config[:mail_auth_type]),
|
67
|
+
:class => 'select2 fullwidth') %>
|
68
|
+
</div>
|
69
|
+
<div class="field">
|
70
|
+
<%= label_tag :smtp_username, Spree.t(:smtp_username) %><br />
|
71
|
+
<%= text_field_tag :smtp_username, Spree::Config[:smtp_username], :class => 'fullwidth' %>
|
72
|
+
</div>
|
73
|
+
<div class="field">
|
74
|
+
<%= label_tag :preferred_smtp_password, Spree.t(:smtp_password) %><br />
|
75
|
+
<%= password_field_tag :smtp_password, Spree::Config[:smtp_password], :class => 'fullwidth' %>
|
76
|
+
</div>
|
77
|
+
</fieldset>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
</div>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= Spree.t(:mail_method_settings) %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= link_to_with_icon 'icon-envelope-alt', Spree.t('admin.mail_methods.send_testmail'), testmail_admin_mail_method_path,
|
10
|
+
:method => :post, :title => Spree.t('admin.mail_methods.send_testmail'), :class => 'send_mail button no-text' %>
|
11
|
+
</li>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @mail_method } %>
|
15
|
+
|
16
|
+
<%= form_tag admin_mail_method_path, :method => :put do |f| %>
|
17
|
+
<fieldset class="no-border-top">
|
18
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
19
|
+
<div class="form-buttons filter-actions actions" data-hook="buttons"><%= button Spree.t('actions.update'), 'icon-refresh' %></div>
|
20
|
+
</fieldset>
|
21
|
+
<% end %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<div data-hook="admin_option_type_form_fields" class="align-center row">
|
2
|
+
<div class="alpha eight columns">
|
3
|
+
<%= f.field_container :name do %>
|
4
|
+
<%= f.label :name, Spree.t(:name) %> <span class="required">*</span><br />
|
5
|
+
<%= f.text_field :name, :class => "fullwidth" %>
|
6
|
+
<%= f.error_message_on :name %>
|
7
|
+
<% end %>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div class="omega eight columns">
|
11
|
+
<%= f.field_container :presentation do %>
|
12
|
+
<%= f.label :presentation, Spree.t(:presentation) %> <span class="required">*</span><br />
|
13
|
+
<%= f.text_field :presentation, :class => "fullwidth" %>
|
14
|
+
<%= f.error_message_on :presentation %>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value" class="<%= cycle('odd', 'even')%>">
|
2
|
+
<td class="no-border">
|
3
|
+
<span class="handle"></span>
|
4
|
+
<%= f.hidden_field :id %>
|
5
|
+
</td>
|
6
|
+
<td class="name"><%= f.text_field :name %></td>
|
7
|
+
<td class="presentation"><%= f.text_field :presentation %></td>
|
8
|
+
<td class="actions"><%= link_to_remove_fields Spree.t(:remove), f, :no_text => true %></td>
|
9
|
+
</tr>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= Spree.t(:editing_option_type) %> <span class="green">"<%= @option_type.name %>"</span>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<span id="new_add_option_value" data-hook>
|
10
|
+
<%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button icon-plus' %>
|
11
|
+
</span>
|
12
|
+
</li>
|
13
|
+
<li>
|
14
|
+
<%= button_link_to Spree.t(:back_to_option_types_list), spree.admin_option_types_path, :icon => 'icon-arrow-left' %>
|
15
|
+
</li>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @option_type } %>
|
19
|
+
|
20
|
+
<%= form_for [:admin, @option_type] do |f| %>
|
21
|
+
<fieldset>
|
22
|
+
<legend align="center"><%= Spree.t(:option_values) %></legend>
|
23
|
+
|
24
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
25
|
+
|
26
|
+
<table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
|
27
|
+
<thead data-hook="option_header">
|
28
|
+
<tr>
|
29
|
+
<th colspan="2"><%= Spree.t(:name) %></th>
|
30
|
+
<th><%= Spree.t(:display) %></th>
|
31
|
+
<th class="actions"></th>
|
32
|
+
</tr>
|
33
|
+
</thead>
|
34
|
+
<tbody id="option_values">
|
35
|
+
<% if @option_type.option_values.empty? %>
|
36
|
+
<tr id="none" data-hook="option_none" class="<%= cycle('odd', 'even')%>">
|
37
|
+
<td colspan="2"><%= Spree.t(:none) %></td>
|
38
|
+
<td class="actions"></td>
|
39
|
+
</tr>
|
40
|
+
<% else %>
|
41
|
+
<%= f.fields_for :option_values do |option_value_form| %>
|
42
|
+
<%= render :partial => 'option_value_fields', :locals => { :f => option_value_form } %>
|
43
|
+
<% end %>
|
44
|
+
<% end %>
|
45
|
+
</tbody>
|
46
|
+
</table>
|
47
|
+
|
48
|
+
<%= render :partial => 'spree/admin/shared/edit_resource_links' %>
|
49
|
+
</fieldset>
|
50
|
+
<% end %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<% content_for :page_title do %>
|
2
|
+
<%= Spree.t(:option_types) %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% content_for :page_actions do %>
|
6
|
+
<li id="new_ot_link">
|
7
|
+
<%= button_link_to Spree.t(:new_option_type), new_admin_option_type_url, { :remote => true, :icon => 'icon-plus', :id => 'new_option_type_link' } %>
|
8
|
+
</li>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
|
12
|
+
|
13
|
+
<div id="new_option_type"></div>
|
14
|
+
|
15
|
+
<table class="index sortable" id="listing_option_types" data-hook data-sortable-link="<%= update_positions_admin_option_types_url %>">
|
16
|
+
<colgroup>
|
17
|
+
<col style="width: 44%">
|
18
|
+
<col style="width: 44%">
|
19
|
+
<col style="width: 12%">
|
20
|
+
</colgroup>
|
21
|
+
<thead>
|
22
|
+
<tr data-hook="option_header">
|
23
|
+
<th><%= Spree.t(:name) %></th>
|
24
|
+
<th><%= Spree.t(:presentation) %></th>
|
25
|
+
<th class="actions"></th>
|
26
|
+
</tr>
|
27
|
+
</thead>
|
28
|
+
<tbody>
|
29
|
+
<% @option_types.each do |option_type| %>
|
30
|
+
<tr class="spree_option_type <%= cycle('odd', 'even')%>" id="<%= spree_dom_id option_type %>" data-hook="option_row">
|
31
|
+
<td><span class="handle"></span> <%= option_type.name %></td>
|
32
|
+
<td class="presentation"><%= option_type.presentation %></td>
|
33
|
+
<td class="actions">
|
34
|
+
<%= link_to_edit(option_type, :class => 'admin_edit_option_type', :no_text => true) %>
|
35
|
+
<%= link_to_delete(option_type, :no_text => true) %>
|
36
|
+
</td>
|
37
|
+
</tr>
|
38
|
+
<% end %>
|
39
|
+
</tbody>
|
40
|
+
</table>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
|
2
|
+
|
3
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @option_type } %>
|
4
|
+
|
5
|
+
<%= form_for [:admin, @option_type] do |f| %>
|
6
|
+
<fieldset>
|
7
|
+
<legend align="center"><%= Spree.t(:new_option_type) %></legend>
|
8
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
9
|
+
<%= render :partial => 'spree/admin/shared/new_resource_links' %>
|
10
|
+
</fieldset>
|
11
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= render :partial => "spree/admin/variants/autocomplete", :formats => :js %>
|
2
|
+
|
3
|
+
<div id="add-line-item" data-hook>
|
4
|
+
<fieldset class="no-border-bottom">
|
5
|
+
<legend align="center"><%= Spree.t(:add_product) %></legend>
|
6
|
+
|
7
|
+
<div data-hook="add_product_name" class="field twelve columns alpha">
|
8
|
+
<%= label_tag :add_variant_id, Spree.t(:name_or_sku) %>
|
9
|
+
<%= hidden_field_tag :add_variant_id, "", :class => "variant_autocomplete fullwidth" %>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
</fieldset>
|
13
|
+
|
14
|
+
<div id="stock_details"></div>
|
15
|
+
</div>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<div data-hook="admin_order_form_fields">
|
2
|
+
<% if @line_item.try(:errors).present? %>
|
3
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @line_item } %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<%= render :partial => "spree/admin/orders/shipment", :collection => @order.shipments, :locals => { :order => order } %>
|
7
|
+
<% if order.adjustments.eligible.exists? %>
|
8
|
+
<fieldset class="no-border-bottom">
|
9
|
+
<legend><%= Spree.t('adjustments') %></legend>
|
10
|
+
<table>
|
11
|
+
<thead>
|
12
|
+
<th><%= Spree.t('name')%></th>
|
13
|
+
<th><%= Spree.t('amount')%></th>
|
14
|
+
</thead>
|
15
|
+
<tbody id="order-charges" data-hook="order_details_adjustments" class="with-border">
|
16
|
+
<% order.adjustments.eligible.each do |adjustment| %>
|
17
|
+
<% next if ((adjustment.originator_type == 'Spree::TaxRate') and (adjustment.amount == 0)) || adjustment.originator_type == 'Spree::ShippingMethod' %>
|
18
|
+
<tr class="total">
|
19
|
+
<td><strong><%= adjustment.label %>:</strong></td>
|
20
|
+
<td class="total align-center"><span><%= adjustment.display_amount %></span></td>
|
21
|
+
</tr>
|
22
|
+
<% end %>
|
23
|
+
</tbody>
|
24
|
+
</table>
|
25
|
+
</fieldset>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
<% if order.line_items.exists? %>
|
29
|
+
<fieldset class="no-border-bottom" id="order-total" data-hook="order_details_total">
|
30
|
+
<legend><%= Spree.t(:order_total) %></legend>
|
31
|
+
<span class="order-total"><%= order.display_total %></span>
|
32
|
+
</fieldset>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
<%= javascript_tag do -%>
|
36
|
+
var order_number = '<%= @order.number %>';
|
37
|
+
var shipments = [];
|
38
|
+
|
39
|
+
<% @order.shipments.each do |shipment| %>
|
40
|
+
shipments.push(<%== shipment.to_json(:root => false, :include => :inventory_units) %>);
|
41
|
+
<% end %>
|
42
|
+
|
43
|
+
<%= render :partial => 'spree/admin/shared/update_order_state', :handlers => [:js] %>
|
44
|
+
<% end -%>
|
45
|
+
</div>
|