spree_backend 3.1.14 → 3.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/admin/logo.png +0 -0
- data/app/assets/javascripts/spree/backend/admin.js +2 -25
- data/app/assets/javascripts/spree/backend/checkouts/edit.js +2 -1
- data/app/assets/javascripts/spree/backend/line_items.js.coffee +2 -2
- data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js +5 -2
- data/app/assets/javascripts/spree/backend/option_type_autocomplete.js +2 -2
- data/app/assets/javascripts/spree/backend/option_value_picker.js +2 -2
- data/app/assets/javascripts/spree/backend/payments/edit.js.coffee +10 -8
- data/app/assets/javascripts/spree/backend/product_picker.js +3 -2
- data/app/assets/javascripts/spree/backend/{shipments.js.erb → shipments.js} +1 -1
- data/app/assets/javascripts/spree/backend/states.js +9 -7
- data/app/assets/javascripts/spree/backend/stock_location.js +3 -0
- data/app/assets/javascripts/spree/backend/tag_picker.js +52 -0
- data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +2 -2
- data/app/assets/javascripts/spree/backend/taxon_permalink_preview.js +12 -0
- data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +2 -2
- data/app/assets/javascripts/spree/backend/taxons.js.coffee +1 -1
- data/app/assets/javascripts/spree/backend/user_picker.js +4 -3
- data/app/assets/javascripts/spree/backend.js +8 -7
- data/app/assets/stylesheets/spree/backend/components/_main.scss +5 -1
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +7 -0
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +1 -1
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +0 -1
- data/app/controllers/spree/admin/base_controller.rb +0 -11
- data/app/controllers/spree/admin/option_types_controller.rb +2 -14
- data/app/controllers/spree/admin/option_values_controller.rb +1 -1
- data/app/controllers/spree/admin/orders_controller.rb +7 -7
- data/app/controllers/spree/admin/payment_methods_controller.rb +4 -0
- data/app/controllers/spree/admin/product_properties_controller.rb +1 -1
- data/app/controllers/spree/admin/products_controller.rb +1 -1
- data/app/controllers/spree/admin/promotion_actions_controller.rb +5 -5
- data/app/controllers/spree/admin/promotion_rules_controller.rb +6 -6
- data/app/controllers/spree/admin/promotions_controller.rb +2 -2
- data/app/controllers/spree/admin/properties_controller.rb +1 -1
- data/app/controllers/spree/admin/prototypes_controller.rb +2 -2
- data/app/controllers/spree/admin/refunds_controller.rb +1 -1
- data/app/controllers/spree/admin/reimbursement_types_controller.rb +26 -0
- data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
- data/app/controllers/spree/admin/reports_controller.rb +1 -1
- data/app/controllers/spree/admin/resource_controller.rb +8 -8
- data/app/controllers/spree/admin/return_authorizations_controller.rb +3 -3
- data/app/controllers/spree/admin/return_index_controller.rb +1 -1
- data/app/controllers/spree/admin/shipping_methods_controller.rb +2 -2
- data/app/controllers/spree/admin/states_controller.rb +1 -1
- data/app/controllers/spree/admin/stock_items_controller.rb +2 -2
- data/app/controllers/spree/admin/stock_movements_controller.rb +1 -5
- data/app/controllers/spree/admin/store_credits_controller.rb +1 -1
- data/app/controllers/spree/admin/taxons_controller.rb +1 -10
- data/app/controllers/spree/admin/users_controller.rb +5 -41
- data/app/controllers/spree/admin/variants_controller.rb +3 -1
- data/app/helpers/spree/admin/base_helper.rb +1 -6
- data/app/helpers/spree/admin/navigation_helper.rb +9 -31
- data/app/helpers/spree/admin/promotion_rules_helper.rb +12 -0
- data/app/views/kaminari/_first_page.html.erb +1 -1
- data/app/views/kaminari/_last_page.html.erb +1 -1
- data/app/views/kaminari/_next_page.html.erb +1 -1
- data/app/views/kaminari/_page.html.erb +1 -1
- data/app/views/kaminari/_paginator.html.erb +2 -4
- data/app/views/kaminari/_prev_page.html.erb +1 -1
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +1 -1
- data/app/views/spree/admin/adjustments/_form.html.erb +4 -4
- data/app/views/spree/admin/countries/_form.html.erb +2 -2
- data/app/views/spree/admin/countries/edit.html.erb +3 -3
- data/app/views/spree/admin/countries/index.html.erb +3 -3
- data/app/views/spree/admin/countries/new.html.erb +3 -3
- data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
- data/app/views/spree/admin/images/_form.html.erb +2 -2
- data/app/views/spree/admin/option_types/_form.html.erb +2 -2
- data/app/views/spree/admin/option_types/edit.html.erb +5 -5
- data/app/views/spree/admin/option_types/new.html.erb +3 -3
- data/app/views/spree/admin/orders/_adjustments.html.erb +6 -4
- data/app/views/spree/admin/orders/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/_line_items.html.erb +8 -6
- data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +1 -1
- data/app/views/spree/admin/orders/_shipment.html.erb +9 -7
- data/app/views/spree/admin/orders/cart.html.erb +0 -4
- data/app/views/spree/admin/orders/edit.html.erb +0 -4
- data/app/views/spree/admin/orders/index.html.erb +20 -20
- data/app/views/spree/admin/payment_methods/_form.html.erb +5 -5
- data/app/views/spree/admin/payment_methods/index.html.erb +3 -3
- data/app/views/spree/admin/payments/_form.html.erb +6 -6
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +6 -6
- data/app/views/spree/admin/products/_form.html.erb +14 -8
- data/app/views/spree/admin/products/_properties_form.erb +1 -1
- data/app/views/spree/admin/products/index.html.erb +6 -6
- data/app/views/spree/admin/products/new.html.erb +16 -16
- data/app/views/spree/admin/promotion_categories/_form.html.erb +3 -3
- data/app/views/spree/admin/promotion_categories/edit.html.erb +3 -3
- data/app/views/spree/admin/promotion_categories/index.html.erb +3 -3
- data/app/views/spree/admin/promotion_categories/new.html.erb +3 -3
- data/app/views/spree/admin/promotions/_actions.html.erb +4 -4
- data/app/views/spree/admin/promotions/_form.html.erb +10 -10
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
- data/app/views/spree/admin/promotions/_rules.html.erb +4 -4
- data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +1 -1
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +2 -2
- data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +1 -1
- data/app/views/spree/admin/promotions/edit.html.erb +6 -6
- data/app/views/spree/admin/promotions/index.html.erb +5 -5
- data/app/views/spree/admin/promotions/new.html.erb +3 -3
- data/app/views/spree/admin/promotions/rules/_country.html.erb +6 -0
- data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +1 -1
- data/app/views/spree/admin/promotions/rules/_product.html.erb +2 -2
- data/app/views/spree/admin/promotions/rules/_taxon.html.erb +2 -2
- data/app/views/spree/admin/properties/_form.html.erb +2 -2
- data/app/views/spree/admin/properties/edit.html.erb +3 -3
- data/app/views/spree/admin/properties/index.html.erb +6 -6
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
- data/app/views/spree/admin/prototypes/available.js.erb +1 -1
- data/app/views/spree/admin/prototypes/edit.html.erb +3 -3
- data/app/views/spree/admin/prototypes/index.html.erb +3 -3
- data/app/views/spree/admin/prototypes/new.html.erb +3 -3
- data/app/views/spree/admin/prototypes/show.html.erb +1 -1
- data/app/views/spree/admin/refunds/edit.html.erb +2 -0
- data/app/views/spree/admin/refunds/new.html.erb +2 -0
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +32 -0
- data/app/views/spree/admin/reimbursement_types/edit.html.erb +11 -0
- data/app/views/spree/admin/reimbursement_types/index.html.erb +9 -0
- data/app/views/spree/admin/reimbursement_types/new.html.erb +11 -0
- data/app/views/spree/admin/reimbursements/edit.html.erb +1 -1
- data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/_form.html.erb +4 -4
- data/app/views/spree/admin/return_index/customer_returns.html.erb +1 -2
- data/app/views/spree/admin/return_index/return_authorizations.html.erb +4 -4
- data/app/views/spree/admin/roles/edit.html.erb +1 -1
- data/app/views/spree/admin/roles/new.html.erb +1 -1
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +2 -2
- data/app/views/spree/admin/shared/_destroy.js.erb +1 -1
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_head.html.erb +2 -1
- data/app/views/spree/admin/shared/_header.html.erb +4 -11
- data/app/views/spree/admin/shared/_index_table_options.html.erb +1 -1
- data/app/views/spree/admin/shared/_main_menu.html.erb +6 -0
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_order_summary.html.erb +3 -3
- data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +3 -3
- data/app/views/spree/admin/shared/_translations.html.erb +38 -38
- data/app/views/spree/admin/shared/{_update_order_state.js → _update_order_state.js.erb} +3 -3
- data/app/views/spree/admin/shared/named_types/_index.html.erb +2 -2
- data/app/views/spree/admin/shipping_categories/edit.html.erb +3 -3
- data/app/views/spree/admin/shipping_categories/index.html.erb +3 -3
- data/app/views/spree/admin/shipping_categories/new.html.erb +3 -3
- data/app/views/spree/admin/shipping_methods/_form.html.erb +14 -14
- data/app/views/spree/admin/shipping_methods/edit.html.erb +3 -3
- data/app/views/spree/admin/shipping_methods/index.html.erb +3 -3
- data/app/views/spree/admin/shipping_methods/new.html.erb +3 -3
- data/app/views/spree/admin/states/_form.html.erb +2 -2
- data/app/views/spree/admin/states/_state_list.html.erb +2 -2
- data/app/views/spree/admin/states/edit.html.erb +3 -3
- data/app/views/spree/admin/states/index.html.erb +3 -3
- data/app/views/spree/admin/states/new.html.erb +3 -3
- data/app/views/spree/admin/stock_locations/_form.html.erb +0 -8
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +1 -1
- data/app/views/spree/admin/stock_locations/edit.html.erb +3 -3
- data/app/views/spree/admin/stock_locations/index.html.erb +4 -4
- data/app/views/spree/admin/stock_locations/new.html.erb +3 -3
- data/app/views/spree/admin/stock_transfers/index.html.erb +3 -3
- data/app/views/spree/admin/stock_transfers/new.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/show.html.erb +3 -3
- data/app/views/spree/admin/tax_categories/_form.html.erb +7 -7
- data/app/views/spree/admin/tax_categories/edit.html.erb +3 -3
- data/app/views/spree/admin/tax_categories/new.html.erb +3 -3
- data/app/views/spree/admin/tax_rates/_form.html.erb +5 -5
- data/app/views/spree/admin/tax_rates/edit.html.erb +3 -3
- data/app/views/spree/admin/tax_rates/new.html.erb +3 -3
- data/app/views/spree/admin/taxonomies/_form.html.erb +2 -2
- data/app/views/spree/admin/taxonomies/_js_head.html.erb +0 -5
- data/app/views/spree/admin/taxonomies/new.html.erb +1 -1
- data/app/views/spree/admin/taxons/_form.html.erb +7 -7
- data/app/views/spree/admin/taxons/_taxon_table.html.erb +1 -1
- data/app/views/spree/admin/taxons/edit.html.erb +0 -15
- data/app/views/spree/admin/taxons/index.html.erb +1 -1
- data/app/views/spree/admin/trackers/_form.html.erb +1 -1
- data/app/views/spree/admin/trackers/edit.html.erb +3 -3
- data/app/views/spree/admin/trackers/index.html.erb +3 -3
- data/app/views/spree/admin/trackers/new.html.erb +3 -3
- data/app/views/spree/admin/users/_addresses_form.html.erb +2 -2
- data/app/views/spree/admin/users/_form.html.erb +3 -3
- data/app/views/spree/admin/users/index.html.erb +7 -7
- data/app/views/spree/admin/users/items.html.erb +2 -2
- data/app/views/spree/admin/users/new.html.erb +3 -3
- data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +24 -7
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +1 -0
- data/app/views/spree/admin/variants/_form.html.erb +7 -7
- data/app/views/spree/admin/variants/new.html.erb +3 -3
- data/app/views/spree/admin/zones/_country_members.html.erb +1 -1
- data/app/views/spree/admin/zones/_form.html.erb +6 -6
- data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
- data/app/views/spree/admin/zones/edit.html.erb +3 -3
- data/app/views/spree/admin/zones/index.html.erb +5 -5
- data/app/views/spree/admin/zones/new.html.erb +3 -3
- data/config/routes.rb +4 -12
- data/lib/spree/backend/engine.rb +2 -6
- data/spec/controllers/spree/admin/base_controller_spec.rb +46 -0
- data/spec/controllers/spree/admin/customer_returns_controller_spec.rb +185 -0
- data/spec/controllers/spree/admin/general_settings_controller_spec.rb +41 -0
- data/spec/controllers/spree/admin/missing_products_controller_spec.rb +18 -0
- data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +197 -0
- data/spec/controllers/spree/admin/orders_controller_spec.rb +296 -0
- data/spec/controllers/spree/admin/payment_methods_controller_spec.rb +49 -0
- data/spec/controllers/spree/admin/payments_controller_spec.rb +97 -0
- data/spec/controllers/spree/admin/products_controller_spec.rb +99 -0
- data/spec/controllers/spree/admin/promotion_actions_controller_spec.rb +21 -0
- data/spec/controllers/spree/admin/promotion_rules_controller_spec.rb +21 -0
- data/spec/controllers/spree/admin/promotions_controller_spec.rb +44 -0
- data/spec/controllers/spree/admin/refunds_controller_spec.rb +32 -0
- data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +74 -0
- data/spec/controllers/spree/admin/reports_controller_spec.rb +42 -0
- data/spec/controllers/spree/admin/resource_controller_spec.rb +252 -0
- data/spec/controllers/spree/admin/return_authorizations_controller_spec.rb +225 -0
- data/spec/controllers/spree/admin/return_index_controller_spec.rb +37 -0
- data/spec/controllers/spree/admin/return_items_controller_spec.rb +27 -0
- data/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +14 -0
- data/spec/controllers/spree/admin/stock_items_controller_spec.rb +19 -0
- data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +41 -0
- data/spec/controllers/spree/admin/stock_transfers_controller_spec.rb +41 -0
- data/spec/controllers/spree/admin/tax_categories_controller_spec.rb +34 -0
- data/spec/controllers/spree/admin/users_controller_spec.rb +161 -0
- data/spec/controllers/spree/admin/variants_controller_spec.rb +32 -0
- data/spec/features/admin/configuration/analytics_tracker_spec.rb +47 -0
- data/spec/features/admin/configuration/countries_spec.rb +24 -0
- data/spec/features/admin/configuration/general_settings_spec.rb +44 -0
- data/spec/features/admin/configuration/payment_methods_spec.rb +63 -0
- data/spec/features/admin/configuration/roles_spec.rb +47 -0
- data/spec/features/admin/configuration/shipping_methods_spec.rb +62 -0
- data/spec/features/admin/configuration/states_spec.rb +68 -0
- data/spec/features/admin/configuration/stock_locations_spec.rb +48 -0
- data/spec/features/admin/configuration/store_credit_categories_spec.rb +50 -0
- data/spec/features/admin/configuration/tax_categories_spec.rb +56 -0
- data/spec/features/admin/configuration/tax_rates_spec.rb +18 -0
- data/spec/features/admin/configuration/zones_spec.rb +39 -0
- data/spec/features/admin/homepage_spec.rb +89 -0
- data/spec/features/admin/locale_spec.rb +31 -0
- data/spec/features/admin/orders/adjustments_promotions_spec.rb +53 -0
- data/spec/features/admin/orders/adjustments_spec.rb +129 -0
- data/spec/features/admin/orders/cancelling_and_resuming_spec.rb +47 -0
- data/spec/features/admin/orders/customer_details_spec.rb +154 -0
- data/spec/features/admin/orders/line_items_spec.rb +51 -0
- data/spec/features/admin/orders/listing_spec.rb +224 -0
- data/spec/features/admin/orders/log_entries_spec.rb +55 -0
- data/spec/features/admin/orders/new_order_spec.rb +186 -0
- data/spec/features/admin/orders/order_details_spec.rb +662 -0
- data/spec/features/admin/orders/payments_spec.rb +231 -0
- data/spec/features/admin/orders/risk_analysis_spec.rb +48 -0
- data/spec/features/admin/orders/shipments_spec.rb +64 -0
- data/spec/features/admin/orders/state_changes_spec.rb +21 -0
- data/spec/features/admin/products/edit/images_spec.rb +86 -0
- data/spec/features/admin/products/edit/products_spec.rb +64 -0
- data/spec/features/admin/products/edit/taxons_spec.rb +41 -0
- data/spec/features/admin/products/edit/variants_spec.rb +56 -0
- data/spec/features/admin/products/option_types_spec.rb +114 -0
- data/spec/features/admin/products/products_spec.rb +445 -0
- data/spec/features/admin/products/properties_spec.rb +147 -0
- data/spec/features/admin/products/prototypes_spec.rb +112 -0
- data/spec/features/admin/products/stock_management_spec.rb +124 -0
- data/spec/features/admin/products/taxonomies_spec.rb +52 -0
- data/spec/features/admin/products/variant_spec.rb +50 -0
- data/spec/features/admin/promotions/adjustments_spec.rb +259 -0
- data/spec/features/admin/promotions/option_value_rule_spec.rb +70 -0
- data/spec/features/admin/promotions/tiered_calculator_spec.rb +70 -0
- data/spec/features/admin/refund_reasons/refund_reasons_spec.rb +57 -0
- data/spec/features/admin/reimbursement_type/edit_reimbursement_type_spec.rb +36 -0
- data/spec/features/admin/reimbursement_type/new_reimbursement_type_spec.rb +62 -0
- data/spec/features/admin/reports_spec.rb +61 -0
- data/spec/features/admin/return_authorization_reasons/return_authorization_reasons_spec.rb +63 -0
- data/spec/features/admin/returns/customer_returns_spec.rb +80 -0
- data/spec/features/admin/returns/return_authorizations_spec.rb +152 -0
- data/spec/features/admin/stock_transfer_spec.rb +75 -0
- data/spec/features/admin/store_credits_spec.rb +93 -0
- data/spec/features/admin/taxons_spec.rb +47 -0
- data/spec/features/admin/users_spec.rb +286 -0
- data/spec/helpers/admin/base_helper_spec.rb +30 -0
- data/spec/helpers/admin/navigation_helper_spec.rb +111 -0
- data/spec/helpers/admin/promotion_rules_helper_spec.rb +12 -0
- data/spec/helpers/admin/stock_movements_helper_spec.rb +30 -0
- data/spec/models/spree/resource_spec.rb +48 -0
- data/spec/routing/admin_path_spec.rb +22 -0
- data/spec/spec_helper.rb +144 -0
- data/spec/support/appear_before_matcher.rb +8 -0
- data/spec/support/ror_ringer.jpeg +0 -0
- data/spec/test_views/spree/admin/submodule/posts/edit.html.erb +1 -0
- data/spec/test_views/spree/admin/submodule/posts/new.html.erb +1 -0
- data/spec/test_views/spree/admin/widgets/edit.html.erb +1 -0
- data/spec/test_views/spree/admin/widgets/new.html.erb +1 -0
- data/spree_backend.gemspec +4 -3
- data/vendor/assets/javascripts/jquery.jstree/jquery.jstree.js +130 -154
- metadata +114 -34
- data/app/assets/images/admin/payment_banner.png +0 -0
- data/app/assets/images/admin/progress.gif +0 -0
- data/app/assets/javascripts/spree/backend/nested-attribute.js +0 -27
- data/app/assets/javascripts/spree/backend/orders/edit_form.js +0 -21
- data/app/assets/stylesheets/spree/backend/components/_variables.scss +0 -12
- data/app/assets/stylesheets/spree/backend/plugins/_js_tree.scss +0 -0
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +0 -5
- data/app/controllers/spree/admin/root_controller.rb +0 -18
- data/app/controllers/spree/admin/search_controller.rb +0 -41
- data/app/helpers/spree/admin/inventory_settings_helper.rb +0 -9
- data/app/helpers/spree/admin/products_helper.rb +0 -29
- data/app/helpers/spree/admin/tables_helper.rb +0 -15
- data/app/helpers/spree/promotion_rules_helper.rb +0 -13
- data/app/views/spree/admin/inventory_units/adjust.html.erb +0 -29
- data/app/views/spree/admin/orders/_line_item.html.erb +0 -21
- data/app/views/spree/admin/refund_reasons/destroy.js.erb +0 -1
- data/app/views/spree/admin/return_authorization_reasons/destroy.js.erb +0 -1
- data/app/views/spree/admin/search/products.rabl +0 -9
- data/app/views/spree/admin/search/users.rabl +0 -30
- data/app/views/spree/admin/stock_movements/edit.html.erb +0 -17
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to new_button_text, new_object_url, { icon: 'add', id: 'admin_new_named_type', :
|
6
|
+
<%= button_link_to new_button_text, new_object_url, { icon: 'add', id: 'admin_new_named_type', class: "btn-success" } %>
|
7
7
|
<% end if can? :create, resource %>
|
8
8
|
|
9
9
|
<% if @collection.any? %>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<thead>
|
12
12
|
<tr data-hook="named_types_header">
|
13
13
|
<th><%= Spree.t(:name) %></th>
|
14
|
-
<th><%= Spree.t(:
|
14
|
+
<th><%= Spree.t(:status) %></th>
|
15
15
|
<th></th>
|
16
16
|
</tr>
|
17
17
|
</thead>
|
@@ -3,9 +3,9 @@
|
|
3
3
|
<%= @shipping_category.name %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_category } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @shipping_category] do |f| %>
|
9
|
-
<%= render :
|
10
|
-
<%= render :
|
9
|
+
<%= render partial: 'form', locals: { f: f } %>
|
10
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
11
11
|
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_shipping_category), new_object_url, :
|
6
|
+
<%= button_link_to Spree.t(:new_shipping_category), new_object_url, class: "btn-success", icon: 'add' %>
|
7
7
|
<% end if can? :create, Spree::ShippingCategory %>
|
8
8
|
|
9
9
|
<% if @shipping_categories.any? %>
|
@@ -19,8 +19,8 @@
|
|
19
19
|
<tr id="<%= spree_dom_id shipping_category %>" data-hook="category_row">
|
20
20
|
<td><%= shipping_category.name %></td>
|
21
21
|
<td class="actions actions-2 text-right">
|
22
|
-
<%= link_to_edit(shipping_category, :
|
23
|
-
<%= link_to_delete(shipping_category, :
|
22
|
+
<%= link_to_edit(shipping_category, no_text: true) if can? :edit, shipping_category %>
|
23
|
+
<%= link_to_delete(shipping_category, no_text: true) if can? :edit, shipping_category %>
|
24
24
|
</td>
|
25
25
|
</tr>
|
26
26
|
<% end %>
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<%= Spree.t(:new_shipping_category) %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_category } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @shipping_category] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
11
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/new_resource_links' %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<div data-hook="admin_shipping_method_form_fields">
|
2
2
|
<div class="row">
|
3
3
|
<div data-hook="admin_shipping_method_form_name_field" class="col-md-6">
|
4
|
-
<%= f.field_container :name, :
|
4
|
+
<%= f.field_container :name, class: ['form-group'] do %>
|
5
5
|
<%= f.label :name, Spree.t(:name) %>
|
6
|
-
<%= f.text_field :name, :
|
6
|
+
<%= f.text_field :name, class: 'form-control' %>
|
7
7
|
<%= f.error_message_on :name %>
|
8
8
|
<% end %>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div data-hook="admin_shipping_method_form_display_field" class="col-md-6">
|
12
|
-
<%= f.field_container :display_on, :
|
12
|
+
<%= f.field_container :display_on, class: ['form-group'] do %>
|
13
13
|
<%= f.label :display_on, Spree.t(:display) %>
|
14
|
-
<%= select(:shipping_method, :display_on, Spree::ShippingMethod::DISPLAY.collect { |display| [Spree.t(display), display == :both ? nil : display.to_s] }, {}, { :
|
14
|
+
<%= select(:shipping_method, :display_on, Spree::ShippingMethod::DISPLAY.collect { |display| [Spree.t(display), display == :both ? nil : display.to_s] }, {}, { class: 'select2' }) %>
|
15
15
|
<%= f.error_message_on :display_on %>
|
16
16
|
<% end %>
|
17
17
|
</div>
|
@@ -19,25 +19,25 @@
|
|
19
19
|
|
20
20
|
<div class="row">
|
21
21
|
<div data-hook="admin_shipping_method_form_internal_name_field" class="col-md-4">
|
22
|
-
<%= f.field_container :admin_name, :
|
22
|
+
<%= f.field_container :admin_name, class: ['form-group'] do %>
|
23
23
|
<%= f.label :admin_name, Spree.t(:internal_name) %>
|
24
|
-
<%= f.text_field :admin_name, :
|
24
|
+
<%= f.text_field :admin_name, class: 'form-control', label: false %>
|
25
25
|
<%= f.error_message_on :admin_name %>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
28
28
|
|
29
29
|
<div data-hook="admin_shipping_method_form_code" class="col-md-4">
|
30
|
-
<%= f.field_container :code, :
|
30
|
+
<%= f.field_container :code, class: ['form-group'] do %>
|
31
31
|
<%= f.label :code, Spree.t(:code) %>
|
32
|
-
<%= f.text_field :code, :
|
32
|
+
<%= f.text_field :code, class: 'form-control', label: false %>
|
33
33
|
<%= f.error_message_on :code %>
|
34
34
|
<% end %>
|
35
35
|
</div>
|
36
36
|
|
37
37
|
<div data-hook="admin_shipping_method_form_tracking_url_field" class="col-md-4">
|
38
|
-
<%= f.field_container :tracking_url, :
|
38
|
+
<%= f.field_container :tracking_url, class: ['form-group'] do %>
|
39
39
|
<%= f.label :tracking_url, Spree.t(:tracking_url) %>
|
40
|
-
<%= f.text_field :tracking_url, :
|
40
|
+
<%= f.text_field :tracking_url, class: 'form-control', placeholder: Spree.t(:tracking_url_placeholder) %>
|
41
41
|
<%= f.error_message_on :tracking_url %>
|
42
42
|
<% end %>
|
43
43
|
</div>
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</div>
|
55
55
|
|
56
56
|
<div class="panel-body">
|
57
|
-
<%= f.field_container :categories, :
|
57
|
+
<%= f.field_container :categories, class: ['form-group'] do %>
|
58
58
|
<% Spree::ShippingCategory.all.each do |category| %>
|
59
59
|
<div class="checkbox">
|
60
60
|
<%= label_tag do %>
|
@@ -78,7 +78,7 @@
|
|
78
78
|
</div>
|
79
79
|
|
80
80
|
<div class="panel-body">
|
81
|
-
<%= f.field_container :zones, :
|
81
|
+
<%= f.field_container :zones, class: ['form-group'] do %>
|
82
82
|
<% shipping_method_zones = @shipping_method.zones.to_a %>
|
83
83
|
<% Spree::Zone.all.each do |zone| %>
|
84
84
|
<div class="checkbox">
|
@@ -97,7 +97,7 @@
|
|
97
97
|
|
98
98
|
<div class="row">
|
99
99
|
<div data-hook="admin_shipping_method_form_calculator_fields" class="col-md-6">
|
100
|
-
<%= render :
|
100
|
+
<%= render partial: 'spree/admin/shared/calculator_fields', locals: { f: f } %>
|
101
101
|
</div>
|
102
102
|
|
103
103
|
<div class="col-md-6">
|
@@ -109,7 +109,7 @@
|
|
109
109
|
</div>
|
110
110
|
|
111
111
|
<div class="panel-body">
|
112
|
-
<%= f.field_container :categories, :
|
112
|
+
<%= f.field_container :categories, class: ['form-group'] do %>
|
113
113
|
<%= f.select :tax_category_id, @tax_categories.map { |tc| [tc.name, tc.id] }, { include_blank: true }, class: "select2" %>
|
114
114
|
<%= f.error_message_on :tax_category_id %>
|
115
115
|
<% end %>
|
@@ -4,14 +4,14 @@
|
|
4
4
|
<% end %>
|
5
5
|
|
6
6
|
<div data-hook="admin_shipping_method_edit_form_header">
|
7
|
-
<%= render :
|
7
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_method } %>
|
8
8
|
</div>
|
9
9
|
|
10
10
|
<div data-hook="admin_shipping_method_edit_form">
|
11
11
|
<%= form_for [:admin, @shipping_method] do |f| %>
|
12
|
-
<%= render :
|
12
|
+
<%= render partial: 'form', locals: { f: f } %>
|
13
13
|
<div data-hook="admin_shipping_method_edit_form_buttons">
|
14
|
-
<%= render :
|
14
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
15
15
|
</div>
|
16
16
|
<% end %>
|
17
17
|
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_shipping_method), new_object_url, :
|
6
|
+
<%= button_link_to Spree.t(:new_shipping_method), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_shipping_method_link' %>
|
7
7
|
<% end if can? :create, Spree::ShippingMethod %>
|
8
8
|
|
9
9
|
<% if @shipping_methods.any? %>
|
@@ -25,8 +25,8 @@
|
|
25
25
|
<td><%= shipping_method.calculator.description %></td>
|
26
26
|
<td class="text-center"><%= shipping_method.display_on.blank? ? Spree.t(:both) : Spree.t(shipping_method.display_on) %></td>
|
27
27
|
<td data-hook="admin_shipping_methods_index_row_actions" class="actions actions-2 text-right">
|
28
|
-
<%= link_to_edit(shipping_method, :
|
29
|
-
<%= link_to_delete(shipping_method, :
|
28
|
+
<%= link_to_edit(shipping_method, no_text: true) if can? :edit, shipping_method %>
|
29
|
+
<%= link_to_delete(shipping_method, no_text: true) if can? :delete, shipping_method %>
|
30
30
|
</td>
|
31
31
|
</tr>
|
32
32
|
<% end %>
|
@@ -4,16 +4,16 @@
|
|
4
4
|
<% end %>
|
5
5
|
|
6
6
|
<div data-hook="admin_shipping_method_new_form_header">
|
7
|
-
<%= render :
|
7
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_method } %>
|
8
8
|
</div>
|
9
9
|
|
10
10
|
<div data-hook="admin_shipping_method_new_form">
|
11
11
|
<%= form_for [:admin, @shipping_method] do |f| %>
|
12
12
|
<fieldset>
|
13
|
-
<%= render :
|
13
|
+
<%= render partial: 'form', locals: { f: f } %>
|
14
14
|
|
15
15
|
<div data-hook="admin_shipping_method_new_form_buttons">
|
16
|
-
<%= render :
|
16
|
+
<%= render partial: 'spree/admin/shared/new_resource_links' %>
|
17
17
|
</div>
|
18
18
|
</fieldset>
|
19
19
|
<% end %>
|
@@ -2,14 +2,14 @@
|
|
2
2
|
<div class="col-md-6">
|
3
3
|
<%= f.field_container :name, class: ['form-group'] do %>
|
4
4
|
<%= f.label :name, Spree.t(:name) %>
|
5
|
-
<%= f.text_field :name, :
|
5
|
+
<%= f.text_field :name, class: 'form-control' %>
|
6
6
|
<%= f.error_message_on :name %>
|
7
7
|
<% end %>
|
8
8
|
</div>
|
9
9
|
<div class="col-md-6">
|
10
10
|
<%= f.field_container :abbr, class: ['form-group'] do %>
|
11
11
|
<%= f.label :abbr, Spree.t(:abbreviation) %>
|
12
|
-
<%= f.text_field :abbr, :
|
12
|
+
<%= f.text_field :abbr, class: 'form-control' %>
|
13
13
|
<% end %>
|
14
14
|
</div>
|
15
15
|
</div>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
<td><%= state.name %></td>
|
15
15
|
<td class="text-center"><%= state.abbr %></td>
|
16
16
|
<td class="actions actions-2 text-right">
|
17
|
-
<%= link_to_edit(state, :
|
18
|
-
<%= link_to_delete(state, :
|
17
|
+
<%= link_to_edit(state, no_text: true) if can? :edit, state %>
|
18
|
+
<%= link_to_delete(state, no_text: true) if can? :delete, state %>
|
19
19
|
</td>
|
20
20
|
</tr>
|
21
21
|
<% end %>
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<%= @state.name %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @state } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @country, @state] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
11
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -3,16 +3,16 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { :
|
6
|
+
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { class: "btn-success", icon: 'add', id: 'new_state_link' } %>
|
7
7
|
<% end if can? :create, Spree::State %>
|
8
8
|
|
9
9
|
<div data-hook="country" class="form-group">
|
10
10
|
<%= label_tag :country, Spree.t(:country) %>
|
11
|
-
<select id="country" class='observe_field select2' data-base-url="<%=admin_states_path(:
|
11
|
+
<select id="country" class='observe_field select2' data-base-url="<%=admin_states_path(format: :js) %>?country_id=" data-update="#state-list">
|
12
12
|
<%= options_from_collection_for_select(@countries, :id, :name, @country.id) %>
|
13
13
|
</select>
|
14
14
|
</div>
|
15
15
|
|
16
16
|
<div id="state-list" data-hook>
|
17
|
-
<%= render :
|
17
|
+
<%= render partial: 'state_list'%>
|
18
18
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= render :
|
1
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @state } %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
4
|
<%= link_to Spree.t(:states), spree.admin_country_states_url(@country) %> /
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
<%= form_for [:admin, @country, @state] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
11
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/new_resource_links' %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<div class="form-actions" data-hook="buttons">
|
34
34
|
<%= button Spree.t(:transfer_stock), 'plus' %>
|
35
35
|
<span class="or"><%= Spree.t(:or) %></span>
|
36
|
-
<%= button_link_to Spree.t('actions.cancel'), collection_url, :
|
36
|
+
<%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'delete' %>
|
37
37
|
</div>
|
38
38
|
</fieldset>
|
39
39
|
<% end %>
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<%= @stock_location.name %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @stock_location } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @stock_location] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
11
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_stock_location), new_object_url, { :
|
6
|
+
<%= button_link_to Spree.t(:new_stock_location), new_object_url, { class: "btn-success", icon: 'add', id: 'admin_new_stock_location' } %>
|
7
7
|
<% end if can? :create, Spree::StockLocation %>
|
8
8
|
|
9
9
|
<% if @stock_locations.any? %>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<thead>
|
12
12
|
<tr data-hook="stock_locations_header">
|
13
13
|
<th><%= Spree.t(:name) %></th>
|
14
|
-
<th><%= Spree.t(:
|
14
|
+
<th><%= Spree.t(:status) %></th>
|
15
15
|
<th><%= Spree.t(:stock_movements) %></th>
|
16
16
|
<th class="actions"></th>
|
17
17
|
</tr>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
<td><span class="state <%= state(stock_location) %>"><%= Spree.t(state(stock_location)) %></span></td>
|
27
27
|
<td><%= link_to Spree.t(:stock_movements), admin_stock_location_stock_movements_path(stock_location.id) %> </td>
|
28
28
|
<td class="actions actions-2 text-center">
|
29
|
-
<%= link_to_edit(stock_location, :
|
30
|
-
<%= link_to_delete(stock_location, :
|
29
|
+
<%= link_to_edit(stock_location, no_text: true) if can? :create, stock_location %>
|
30
|
+
<%= link_to_delete(stock_location, no_text: true) if can? :create, stock_location %>
|
31
31
|
</td>
|
32
32
|
</tr>
|
33
33
|
<% end %>
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<%= Spree.t(:new_stock_location) %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @stock_location } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @stock_location] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
11
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/new_resource_links' %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -3,13 +3,13 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :
|
6
|
+
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { icon: 'add', class: 'btn-success' } %>
|
7
7
|
<% end if can? :create, Spree::StockTransfer %>
|
8
8
|
|
9
9
|
<div data-hook="admin_orders_index_search" class="well">
|
10
10
|
<fieldset>
|
11
11
|
<legend><%= Spree.t(:search) %></legend>
|
12
|
-
<%= search_form_for @q, :
|
12
|
+
<%= search_form_for @q, url: admin_stock_transfers_path do |f| %>
|
13
13
|
|
14
14
|
<div class="row no-marginb">
|
15
15
|
<div class="col-md-4">
|
@@ -66,7 +66,7 @@
|
|
66
66
|
<td><%= stock_transfer.source_location.try(:name) %></td>
|
67
67
|
<td><%= stock_transfer.destination_location.try(:name) %></td>
|
68
68
|
<td class="actions actions-1">
|
69
|
-
<%= link_to_with_icon 'show', Spree.t(:show), admin_stock_transfer_path(stock_transfer), :
|
69
|
+
<%= link_to_with_icon 'show', Spree.t(:show), admin_stock_transfer_path(stock_transfer), class: 'btn btn-default btn-sm', no_text: true, data: {action: 'view'} %>
|
70
70
|
</td>
|
71
71
|
</tr>
|
72
72
|
<% end %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<% end %>
|
5
5
|
|
6
6
|
<% content_for :page_actions do %>
|
7
|
-
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :
|
7
|
+
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { icon: 'add', class: 'btn-success' } %>
|
8
8
|
<% end if can? :create, Spree::StockTransfer %>
|
9
9
|
|
10
10
|
<fieldset>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<legend id="stock-location-source">
|
29
29
|
<%= Spree.t(:source) %> / <%= @stock_transfer.source_location.name %>
|
30
30
|
</legend>
|
31
|
-
<%= render :
|
31
|
+
<%= render partial: 'stock_movements', object: @stock_transfer.source_movements %>
|
32
32
|
</fieldset>
|
33
33
|
<% end %>
|
34
34
|
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<legend id="stock-location-destination">
|
38
38
|
<%= Spree.t(:destination) %> / <%= @stock_transfer.destination_location.name %>
|
39
39
|
</legend>
|
40
|
-
<%= render :
|
40
|
+
<%= render partial: 'stock_movements', object: @stock_transfer.destination_movements %>
|
41
41
|
</fieldset>
|
42
42
|
<% end %>
|
43
43
|
|
@@ -1,21 +1,21 @@
|
|
1
1
|
<div data-hook="admin_tax_category_form_fields">
|
2
|
-
<%= f.field_container :name, :
|
2
|
+
<%= f.field_container :name, class: ['form-group'] do %>
|
3
3
|
<%= f.label :name, Spree.t(:name) %>
|
4
|
-
<%= f.text_field :name, :
|
4
|
+
<%= f.text_field :name, class: 'form-control' %>
|
5
5
|
<%= f.error_message_on :name %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<%= f.field_container :tax_code, :
|
8
|
+
<%= f.field_container :tax_code, class: ['form-group'] do %>
|
9
9
|
<%= f.label :tax_code, Spree.t(:tax_code) %>
|
10
|
-
<%= f.text_field :tax_code, :
|
10
|
+
<%= f.text_field :tax_code, class: 'form-control' %>
|
11
11
|
<% end %>
|
12
12
|
|
13
|
-
<%= f.field_container :description, :
|
13
|
+
<%= f.field_container :description, class: ['form-group'] do %>
|
14
14
|
<%= f.label :description, Spree.t(:description) %><br>
|
15
|
-
<%= f.text_field :description, :
|
15
|
+
<%= f.text_field :description, class: 'form-control' %>
|
16
16
|
<% end %>
|
17
17
|
|
18
|
-
<%= f.field_container :is_default, :
|
18
|
+
<%= f.field_container :is_default, class: ['checkbox'] do %>
|
19
19
|
<%= f.label :is_default do %>
|
20
20
|
<%= f.check_box :is_default %>
|
21
21
|
<%= Spree.t(:default) %>
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<%= @tax_category.name %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_category } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @tax_category] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
11
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -3,11 +3,11 @@
|
|
3
3
|
<%= Spree.t(:new_tax_category) %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_category } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @tax_category] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
11
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/new_resource_links' %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -10,12 +10,12 @@
|
|
10
10
|
<div class="col-md-6">
|
11
11
|
<div data-hook="name" class="form-group">
|
12
12
|
<%= f.label :name, Spree.t(:name) %>
|
13
|
-
<%= f.text_field :name, :
|
13
|
+
<%= f.text_field :name, class: 'form-control' %>
|
14
14
|
</div>
|
15
15
|
<div data-hook="rate" class="form-group">
|
16
16
|
<%= f.field_container :amount, class: ["form-group"] do %>
|
17
17
|
<%= f.label :amount, Spree.t(:rate) %>
|
18
|
-
<%= f.text_field :amount, :
|
18
|
+
<%= f.text_field :amount, class: 'form-control' %>
|
19
19
|
<%= f.error_message_on :amount %>
|
20
20
|
<% end %>
|
21
21
|
<p class="help-block">
|
@@ -33,11 +33,11 @@
|
|
33
33
|
<div class="col-md-6">
|
34
34
|
<div data-hook="zone" class="form-group">
|
35
35
|
<%= f.label :zone, Spree.t(:zone) %>
|
36
|
-
<%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {:
|
36
|
+
<%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {class: 'select2'}) %>
|
37
37
|
</div>
|
38
38
|
<div data-hook="category" class="form-group">
|
39
39
|
<%= f.label :tax_category_id, Spree.t(:tax_category) %>
|
40
|
-
<%= f.collection_select(:tax_category_id, @available_categories,:id, :name, {}, {:
|
40
|
+
<%= f.collection_select(:tax_category_id, @available_categories,:id, :name, {}, {class: 'select2'}) %>
|
41
41
|
</div>
|
42
42
|
<div data-hook="show_rate" class="form-group">
|
43
43
|
<%= f.label :show_rate_in_label do %>
|
@@ -51,4 +51,4 @@
|
|
51
51
|
</div>
|
52
52
|
</div>
|
53
53
|
|
54
|
-
<%= render 'spree/admin/shared/calculator_fields', :
|
54
|
+
<%= render 'spree/admin/shared/calculator_fields', f: f %>
|
@@ -3,9 +3,9 @@
|
|
3
3
|
<%= @tax_rate.name %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_rate } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @tax_rate] do |f| %>
|
9
|
-
<%= render :
|
10
|
-
<%= render :
|
9
|
+
<%= render partial: 'form', locals: { f: f } %>
|
10
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
11
11
|
<% end %>
|
@@ -3,12 +3,12 @@
|
|
3
3
|
<%= Spree.t(:new_tax_rate) %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%= render :
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_rate } %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @tax_rate] do |f| %>
|
9
9
|
<fieldset>
|
10
|
-
<%= render :
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
11
|
|
12
|
-
<%= render :
|
12
|
+
<%= render partial: 'spree/admin/shared/new_resource_links' %>
|
13
13
|
</fieldset>
|
14
14
|
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div data-hook="admin_inside_taxonomy_form" class="form-group">
|
2
2
|
<%= f.field_container :name, class: ['form-group'] do %>
|
3
3
|
<%= f.label :name, Spree.t(:name) %> <span class="required">*</span>
|
4
|
-
<%= f.text_field :name, :
|
5
|
-
<%= f.error_message_on :name, :
|
4
|
+
<%= f.text_field :name, class: 'form-control' %>
|
5
|
+
<%= f.error_message_on :name, class: 'error-message' %>
|
6
6
|
<% end %>
|
7
7
|
</div>
|
@@ -1,10 +1,5 @@
|
|
1
1
|
<% content_for :head do %>
|
2
2
|
<%= javascript_tag "var taxonomy_id = #{@taxonomy.id};
|
3
|
-
var loading = '#{escape_javascript Spree.t(:loading)}';
|
4
|
-
var new_taxon = '#{escape_javascript Spree.t(:new_taxon)}';
|
5
|
-
var server_error = '#{escape_javascript Spree.t(:server_error)}';
|
6
|
-
var taxonomy_tree_error = '#{escape_javascript Spree.t(:taxonomy_tree_error)}';
|
7
|
-
|
8
3
|
$(document).ready(function(){
|
9
4
|
setup_taxonomy_tree(taxonomy_id);
|
10
5
|
});
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /
|
3
3
|
<%= Spree.t(:new_taxonomy) %>
|
4
4
|
<% end %>
|
5
|
-
<%= render :
|
5
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @taxonomy } %>
|
6
6
|
|
7
7
|
<%= form_for [:admin, @taxonomy] do |f| %>
|
8
8
|
<fieldset>
|