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,23 @@
|
|
1
|
+
<table class="index">
|
2
|
+
<thead>
|
3
|
+
<tr data-hook="taxons_header">
|
4
|
+
<th><%= Spree.t(:name) %></th>
|
5
|
+
<th><%= Spree.t(:path) %></th>
|
6
|
+
<th></th>
|
7
|
+
</tr>
|
8
|
+
</thead>
|
9
|
+
<tbody>
|
10
|
+
<% taxons.each do |taxon| %>
|
11
|
+
<tr id="<%= spree_dom_id(taxon) %>" data-hook="taxons_row" class="<%= cycle('odd', 'even')%>">
|
12
|
+
<td><%= taxon.name %></td>
|
13
|
+
<td><%= taxon_path taxon %></td>
|
14
|
+
<td class="actions">
|
15
|
+
<%= link_to_delete taxon, :url => remove_admin_product_taxon_url(@product, taxon), :name => icon('delete') + ' ' + Spree.t(:remove) %>
|
16
|
+
</td>
|
17
|
+
</tr>
|
18
|
+
<% end %>
|
19
|
+
<% if taxons.empty? %>
|
20
|
+
<tr data-hook="taxons_none"><td colspan="3"><%= Spree.t(:none) %>.</td></tr>
|
21
|
+
<% end %>
|
22
|
+
</tbody>
|
23
|
+
</table>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= Spree.t(:taxon_edit) %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= button_link_to Spree.t(:back_to_taxonomies_list), spree.admin_taxonomies_path, :icon => 'icon-arrow-left' %>
|
10
|
+
</li>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% # Because otherwise the form would attempt to use to_param of @taxon %>
|
14
|
+
<% form_url = admin_taxonomy_taxon_path(@taxonomy.id, @taxon.id) %>
|
15
|
+
<%= form_for [:admin, @taxonomy, @taxon], :method => :put, :url => form_url, :html => { :multipart => true } do |f| %>
|
16
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
17
|
+
|
18
|
+
<div class="form-buttons" data-hook="buttons">
|
19
|
+
<%= button Spree.t('actions.update'), 'icon-refresh' %>
|
20
|
+
<%= Spree.t(:or) %>
|
21
|
+
<%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), :icon => "icon-remove" %>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<div data-hook="admin_tracker_form_fields" class="row">
|
2
|
+
<div class="alpha four columns">
|
3
|
+
<div data-hook="analytics_id" class="field">
|
4
|
+
<%= label_tag nil, Spree.t(:google_analytics_id) %>
|
5
|
+
<%= text_field :tracker, :analytics_id, :class => 'fullwidth' %>
|
6
|
+
</div>
|
7
|
+
</div>
|
8
|
+
<div class="four columns">
|
9
|
+
<div data-hook="environment" class="field">
|
10
|
+
<%= label_tag nil, Spree.t(:environment) %>
|
11
|
+
<%= collection_select(:tracker, :environment, Rails.configuration.database_configuration.keys.sort, :to_s, :titleize, {}, {:id => 'tracker-env', :class => 'select2 fullwidth'}) %>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<div class="omega four columns">
|
15
|
+
<div data-hook="active" class="field">
|
16
|
+
<%= label_tag nil, Spree.t(:active) %>
|
17
|
+
<ul>
|
18
|
+
<li>
|
19
|
+
<%= radio_button(:tracker, :active, true) %>
|
20
|
+
<%= Spree.t(:say_yes) %>
|
21
|
+
</li>
|
22
|
+
<li>
|
23
|
+
<%= radio_button(:tracker, :active, false) %>
|
24
|
+
<%= Spree.t(:say_no) %>
|
25
|
+
</li>
|
26
|
+
</ul>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<div class="clear"></div>
|
31
|
+
|
32
|
+
<div data-hook="additional_tracker_fields"></div>
|
33
|
+
|
34
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= Spree.t(:editing_tracker) %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= button_link_to Spree.t(:back_to_trackers_list), spree.admin_trackers_path, :icon => 'icon-arrow-left' %>
|
10
|
+
</li>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @tracker } %>
|
14
|
+
|
15
|
+
<%= form_for [:admin, @tracker] do |f| %>
|
16
|
+
<fieldset class="no-border-top">
|
17
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
18
|
+
<%= render :partial => 'spree/admin/shared/edit_resource_links' %>
|
19
|
+
</fieldset>
|
20
|
+
<% end %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= Spree.t(:analytics_trackers) %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= button_link_to Spree.t(:new_tracker), new_object_url, :icon => 'icon-plus', :id => 'admin_new_tracker_link' %>
|
10
|
+
</li>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% unless @trackers.any? %>
|
14
|
+
<div class="no-objects-found">
|
15
|
+
<%= Spree.t(:no_trackers_found)%>,
|
16
|
+
<%= link_to Spree.t(:add_one), new_object_url %>!
|
17
|
+
</div>
|
18
|
+
<% else %>
|
19
|
+
<table class="index">
|
20
|
+
<colgroup>
|
21
|
+
<col style="width: 30%">
|
22
|
+
<col style="width: 40%">
|
23
|
+
<col style="width: 15%">
|
24
|
+
<col style="width: 15%">
|
25
|
+
</colgroup>
|
26
|
+
<thead>
|
27
|
+
<tr data-hook="admin_trackers_index_headers">
|
28
|
+
<th><%= Spree.t(:google_analytics_id) %></th>
|
29
|
+
<th><%= Spree.t(:environment) %></th>
|
30
|
+
<th><%= Spree.t(:active) %></th>
|
31
|
+
<th class="actions"></th>
|
32
|
+
</tr>
|
33
|
+
</thead>
|
34
|
+
<tbody>
|
35
|
+
<% @trackers.each do |tracker|%>
|
36
|
+
<tr id="<%= spree_dom_id tracker %>" data-hook="admin_trackers_index_rows" class="<%= cycle('odd', 'even')%>">
|
37
|
+
<td><%= tracker.analytics_id %></td>
|
38
|
+
<td><%= tracker.environment.to_s.titleize %></td>
|
39
|
+
<td class="align-center"><%= tracker.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
40
|
+
<td class="actions">
|
41
|
+
<%= link_to_edit tracker, :no_text => true %>
|
42
|
+
<%= link_to_delete tracker, :no_text => true %>
|
43
|
+
</td>
|
44
|
+
</tr>
|
45
|
+
<% end %>
|
46
|
+
</tbody>
|
47
|
+
</table>
|
48
|
+
<% end%>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
|
+
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= Spree.t(:new_tracker) %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<li>
|
9
|
+
<%= button_link_to Spree.t(:back_to_trackers_list), spree.admin_trackers_path, :icon => 'icon-arrow-left' %>
|
10
|
+
</li>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @tracker } %>
|
14
|
+
|
15
|
+
<%= form_for [:admin, @tracker] do |f| %>
|
16
|
+
<fieldset class="no-border-top">
|
17
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
18
|
+
<%= render :partial => 'spree/admin/shared/new_resource_links' %>
|
19
|
+
</fieldset>
|
20
|
+
<% end %>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<script type='text/template' id='variant_autocomplete_template'>
|
2
|
+
<div class='variant-autocomplete-item'>
|
3
|
+
<figure class='variant-image'>
|
4
|
+
{{#if variant.image }}
|
5
|
+
<img src='{{variant.image}}' />
|
6
|
+
{{ else }}
|
7
|
+
<img src='/assets/noimage/mini.png' />
|
8
|
+
{{/if}}
|
9
|
+
</figure>
|
10
|
+
|
11
|
+
<div class='variant-details'>
|
12
|
+
|
13
|
+
<h6 class="variant-name">{{variant.name}}</h6>
|
14
|
+
|
15
|
+
<ul class='variant-data'>
|
16
|
+
<li class='variant-sku'><strong>{{t 'sku'}}:</strong> {{variant.sku}}</li>
|
17
|
+
</ul>
|
18
|
+
|
19
|
+
{{#if variant.option_values}}
|
20
|
+
<ul class='variant-options'>
|
21
|
+
{{#each variant.option_values}}
|
22
|
+
<li><strong>{{this.option_type.presentation}}:</strong> {{this.presentation}}</li>
|
23
|
+
{{/each}}
|
24
|
+
</ul>
|
25
|
+
{{/if}}
|
26
|
+
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</script>
|
30
|
+
|
31
|
+
<script type='text/template' id='variant_autocomplete_stock_template'>
|
32
|
+
<fieldset>
|
33
|
+
<legend align="center"><%= Spree.t(:select_stock) %></legend>
|
34
|
+
<table class="stock-levels" data-hook="stock-levels">
|
35
|
+
<colgroup>
|
36
|
+
<col style="width: 30%;" />
|
37
|
+
<col style="width: 40%;" />
|
38
|
+
<col style="width: 20%;" />
|
39
|
+
<col style="width: 10%;" />
|
40
|
+
</colgroup>
|
41
|
+
<thead>
|
42
|
+
<th><%= Spree.t(:location) %></th>
|
43
|
+
<th><%= Spree.t(:count_on_hand) %></th>
|
44
|
+
<th><%= Spree.t(:quantity) %></th>
|
45
|
+
<th class="actions"></th>
|
46
|
+
</thead>
|
47
|
+
<tbody>
|
48
|
+
{{#each variant.stock_items}}
|
49
|
+
<tr>
|
50
|
+
<td>{{this.stock_location_name}}</td>
|
51
|
+
<td>
|
52
|
+
{{this.count_on_hand}}
|
53
|
+
{{#if this.backorderable}}
|
54
|
+
(backorders allowed)
|
55
|
+
{{/if}}
|
56
|
+
</td>
|
57
|
+
<td>
|
58
|
+
<input class="quantity" id="stock_item_quantity" data-stock-location-id="{{this.stock_location_id}}" type="number" min="1" value="1">
|
59
|
+
</td>
|
60
|
+
<td class="actions">
|
61
|
+
<button class="add_variant no-text icon-plus icon_link with-tip" data-stock-location-id="{{this.stock_location_id}}" title="Add" data-action="add"></button>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
{{/each}}
|
65
|
+
</tbody>
|
66
|
+
</fieldset>
|
67
|
+
</script>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<div data-hook="admin_variant_form_fields" class="label-block left six columns alpha">
|
2
|
+
<div data-hook="variants">
|
3
|
+
<% @product.option_types.each do |option_type| %>
|
4
|
+
<div class="field" data-hook="presentation">
|
5
|
+
<%= label :new_variant, option_type.presentation %>
|
6
|
+
<%= f.collection_select 'option_value_ids', option_type.option_values, :id, :presentation,
|
7
|
+
{ :prompt => true }, { :name => 'variant[option_value_ids][]', :class => 'select2 fullwidth' } %>
|
8
|
+
</div>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<div class="field" data-hook="sku">
|
12
|
+
<%= f.label :sku, Spree.t(:sku) %>
|
13
|
+
<%= f.text_field :sku, :class => 'fullwidth' %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="field" data-hook="price">
|
17
|
+
<%= f.label :price, Spree.t(:price) %>
|
18
|
+
<%= f.text_field :price, :value => number_to_currency(@variant.price, :unit => ''), :class => 'fullwidth' %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="field" data-hook="cost_price">
|
22
|
+
<%= f.label :cost_price, Spree.t(:cost_price) %>
|
23
|
+
<%= f.text_field :cost_price, :value => number_to_currency(@variant.cost_price, :unit => ''), :class => 'fullwidth' %>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<div class="right six columns omega label-block" data-hook="admin_variant_form_additional_fields">
|
29
|
+
<% [:weight, :height, :width, :depth].each do |field| %>
|
30
|
+
<div class="field" data-hook="<%= field %>"><%= f.label field, Spree.t(field) %>
|
31
|
+
<% value = number_with_precision(@variant.send(field), :precision => 2) %>
|
32
|
+
<%= f.text_field field, :value => value, :class => 'fullwidth' %>
|
33
|
+
</div>
|
34
|
+
<% end %>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="clear"></div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
|
2
|
+
|
3
|
+
<%= render :partial => 'spree/admin/shared/product_tabs', :locals => { :current => 'Variants' } %>
|
4
|
+
|
5
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @variant } %>
|
6
|
+
|
7
|
+
<%= form_for [:admin, @product, @variant] do |f| %>
|
8
|
+
<fieldset class="no-border-top">
|
9
|
+
<div data-hook="admin_variant_edit_form">
|
10
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<%= render :partial => 'spree/admin/shared/edit_resource_links' %>
|
14
|
+
</fieldset>
|
15
|
+
<% end %>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
<%= render :partial => 'spree/admin/shared/product_sub_menu' %>
|
2
|
+
|
3
|
+
<%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Variants'} %>
|
4
|
+
|
5
|
+
<%# Place for new variant form %>
|
6
|
+
<div id="new_variant" data-hook></div>
|
7
|
+
|
8
|
+
<% if @variants.any? %>
|
9
|
+
<table class="index sortable" data-sortable-link="<%= update_positions_admin_product_variants_path(@product) %>">
|
10
|
+
<colgroup>
|
11
|
+
<col style="width: 5%" />
|
12
|
+
<col style="width: 25%" />
|
13
|
+
<col style="width: 20%" />
|
14
|
+
<col style="width: 20%" />
|
15
|
+
<col style="width: 15%" />
|
16
|
+
<col style="width: 15%" />
|
17
|
+
</colgroup>
|
18
|
+
<thead data-hook="variants_header">
|
19
|
+
<tr>
|
20
|
+
<th colspan="2"><%= Spree.t(:options) %></th>
|
21
|
+
<th><%= Spree.t(:price) %></th>
|
22
|
+
<th><%= Spree.t(:sku) %></th>
|
23
|
+
<th class="actions"></th>
|
24
|
+
</tr>
|
25
|
+
</thead>
|
26
|
+
<tbody>
|
27
|
+
<% @variants.each do |variant| %>
|
28
|
+
<tr id="<%= spree_dom_id variant %>" <%= 'style="color:red;"' if variant.deleted? %> data-hook="variants_row" class="<%= cycle('odd', 'even')%>">
|
29
|
+
<td class="no-border">
|
30
|
+
<span class="handle"></span>
|
31
|
+
</td>
|
32
|
+
<td><%= variant.options_text %></td>
|
33
|
+
<td class="align-center"><%= variant.display_price.to_html %></td>
|
34
|
+
<td class="align-center"><%= variant.sku %></td>
|
35
|
+
<td class="actions">
|
36
|
+
<%= link_to_edit(variant, :no_text => true) unless variant.deleted? %>
|
37
|
+
|
38
|
+
<%= link_to_delete(variant, :no_text => true) unless variant.deleted? %>
|
39
|
+
</td>
|
40
|
+
</tr>
|
41
|
+
<% end %>
|
42
|
+
<% unless @product.has_variants? %>
|
43
|
+
<tr><td colspan="5"><%= Spree.t(:none) %></td></tr>
|
44
|
+
<% end %>
|
45
|
+
</tbody>
|
46
|
+
</table>
|
47
|
+
<% else %>
|
48
|
+
<div class="alpha twelve columns no-objects-found"><%= Spree.t(:no_results)%>.</div>
|
49
|
+
<% end %>
|
50
|
+
|
51
|
+
<% if @product.empty_option_values? %>
|
52
|
+
<p class='first_add_option_types no-objects-found' data-hook="first_add_option_types">
|
53
|
+
<%= Spree.t(:to_add_variants_you_must_first_define) %>
|
54
|
+
<%= link_to Spree.t(:option_types), admin_product_url(@product) %>
|
55
|
+
<%= Spree.t(:and) %>
|
56
|
+
<%= link_to Spree.t(:option_values), admin_option_types_url %>
|
57
|
+
</p>
|
58
|
+
<% else %>
|
59
|
+
<% content_for :page_actions do %>
|
60
|
+
<ul class="inline-menu" data-hook="toolbar">
|
61
|
+
<li id="new_var_link" data-hook>
|
62
|
+
<%= link_to_with_icon('icon-plus',
|
63
|
+
Spree.t(:new_variant),
|
64
|
+
new_admin_product_variant_url(@product),
|
65
|
+
:remote => :true,
|
66
|
+
:'data-update' => 'new_variant',
|
67
|
+
:class => 'button'
|
68
|
+
) %>
|
69
|
+
</li>
|
70
|
+
<li><%= link_to_with_icon('icon-filter', @deleted.blank? ? Spree.t(:show_deleted) : Spree.t(:show_active), admin_product_variants_url(@product, :deleted => @deleted.blank? ? "on" : "off"), :class => 'button') %></li>
|
71
|
+
</ul>
|
72
|
+
<% end %>
|
73
|
+
|
74
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @variant } %>
|
2
|
+
|
3
|
+
<%= form_for [:admin, @product, @variant] do |f| %>
|
4
|
+
<fieldset data-hook="admin_variant_new_form">
|
5
|
+
<legend align="center"><%= Spree.t(:new_variant) %></legend>
|
6
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
7
|
+
<%= render :partial => 'spree/admin/shared/new_resource_links' %>
|
8
|
+
</fieldset>
|
9
|
+
<% end %>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<div class="alpha six columns" data-hook="admin_zone_form_fields">
|
2
|
+
<fieldset class="no-border-bottom">
|
3
|
+
<legend align="center"><%= Spree.t(:general_settings)%></legend>
|
4
|
+
|
5
|
+
<%= zone_form.field_container :name do %>
|
6
|
+
<%= zone_form.label :name, Spree.t(:name) %><br />
|
7
|
+
<%= zone_form.text_field :name, :class => 'fullwidth' %>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<%= zone_form.field_container :description do %>
|
11
|
+
<%= zone_form.label :description, Spree.t(:description) %><br />
|
12
|
+
<%= zone_form.text_field :description, :class => 'fullwidth' %>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<div data-hook="default" class="field">
|
16
|
+
<%= zone_form.check_box :default_tax %>
|
17
|
+
<%= label_tag Spree.t(:default_tax_zone) %>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div data-hook="type" class="field">
|
21
|
+
<%= label_tag Spree.t(:type) %>
|
22
|
+
<ul>
|
23
|
+
<li>
|
24
|
+
<%= zone_form.radio_button('kind', 'country', { :id => 'country_based' }) %>
|
25
|
+
<%= label_tag :country_based, Spree.t(:country_based) %>
|
26
|
+
</li>
|
27
|
+
<li>
|
28
|
+
<%= zone_form.radio_button('kind', 'state', { :id => 'state_based' }) %>
|
29
|
+
<%= label_tag :state_based, Spree.t(:state_based) %>
|
30
|
+
</li>
|
31
|
+
</ul>
|
32
|
+
</div>
|
33
|
+
</fieldset>
|
34
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= javascript_tag "var #{type}_member='#{generate_template(zone_form, :zone_members, {:partial => type + "_member"})}';" %>
|
2
|
+
|
3
|
+
|
4
|
+
<div id="<%= type %>_members" data-hook="member" class="omega six columns">
|
5
|
+
<fieldset class="no-border-bottom">
|
6
|
+
<legend align="center"><%= Spree.t(type) %></legend>
|
7
|
+
|
8
|
+
<ul id="ul-nested-<%= type %>" class="member-list fields">
|
9
|
+
<% members_of_type = zone_form.object.zone_members.select { |member| member.zoneable_type && member.zoneable_type == "Spree::#{type.capitalize}" } %>
|
10
|
+
<%= zone_form.fields_for :zone_members, members_of_type do |member_form| %>
|
11
|
+
<%= render :partial => "#{type}_member", :locals => { :f => member_form } %>
|
12
|
+
<% end %>
|
13
|
+
</ul>
|
14
|
+
|
15
|
+
<div data-hook="buttons" class="field align-center">
|
16
|
+
<%= button_link_to Spree.t("add_#{type}"), "##{type}_member", { :icon => 'icon-plus', :id => "nested-#{type}" } %>
|
17
|
+
</div>
|
18
|
+
</fieldset>
|
19
|
+
</div>
|