solidus_backend 1.3.2 → 1.4.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_backend might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +38 -0
- data/app/assets/javascripts/spree/backend/components/tooltips.js +2 -0
- data/app/assets/javascripts/spree/backend/product_picker.js +2 -2
- data/app/assets/javascripts/spree/backend/routes.js +0 -1
- data/app/assets/javascripts/spree/backend/shipments.js +147 -118
- data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +16 -14
- data/app/assets/javascripts/spree/backend/templates/orders/customer_details/autocomplete.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/autocomplete.hbs.erb +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/split.hbs +25 -27
- data/app/assets/javascripts/spree/backend/user_picker.js +14 -8
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +3 -3
- data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +4 -0
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_hint.scss +3 -0
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_progress.scss +5 -2
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +14 -5
- data/app/assets/stylesheets/spree/backend/components/_states.scss +1 -2
- data/app/assets/stylesheets/spree/backend/globals/_mixins.css +2 -0
- data/app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss +22 -0
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +12 -3
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +25 -7
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +0 -1
- data/app/assets/stylesheets/spree/backend/sections/_transfer_items.scss +0 -1
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +4 -6
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +5 -2
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +36 -3
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +1 -3
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +0 -2
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +3 -1
- data/app/controllers/spree/admin/cancellations_controller.rb +1 -1
- data/app/controllers/spree/admin/general_settings_controller.rb +0 -6
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +7 -0
- data/app/controllers/spree/admin/orders_controller.rb +1 -1
- data/app/controllers/spree/admin/payment_methods_controller.rb +8 -3
- data/app/controllers/spree/admin/payments_controller.rb +12 -5
- data/app/controllers/spree/admin/products_controller.rb +1 -1
- data/app/controllers/spree/admin/refunds_controller.rb +1 -1
- data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
- data/app/controllers/spree/admin/root_controller.rb +1 -1
- data/app/controllers/spree/admin/stock_items_controller.rb +0 -8
- data/app/controllers/spree/admin/stock_transfers_controller.rb +6 -6
- data/app/controllers/spree/admin/users_controller.rb +7 -3
- data/app/helpers/spree/admin/base_helper.rb +11 -0
- data/app/helpers/spree/admin/navigation_helper.rb +46 -3
- data/app/helpers/spree/admin/orders_helper.rb +0 -1
- data/app/helpers/spree/admin/stock_locations_helper.rb +1 -5
- data/app/models/spree/backend_configuration.rb +100 -0
- data/app/views/spree/admin/adjustment_reasons/edit.html.erb +4 -7
- data/app/views/spree/admin/adjustment_reasons/index.html.erb +4 -4
- data/app/views/spree/admin/adjustment_reasons/new.html.erb +4 -4
- data/app/views/spree/admin/adjustments/edit.html.erb +4 -6
- data/app/views/spree/admin/adjustments/index.html.erb +3 -6
- data/app/views/spree/admin/adjustments/new.html.erb +5 -6
- data/app/views/spree/admin/cancellations/index.html.erb +4 -3
- data/app/views/spree/admin/countries/edit.html.erb +4 -6
- data/app/views/spree/admin/countries/index.html.erb +4 -4
- data/app/views/spree/admin/countries/new.html.erb +4 -4
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/edit.html.erb +4 -6
- data/app/views/spree/admin/customer_returns/index.html.erb +2 -5
- data/app/views/spree/admin/customer_returns/new.html.erb +5 -6
- data/app/views/spree/admin/general_settings/edit.html.erb +4 -28
- data/app/views/spree/admin/images/edit.html.erb +6 -2
- data/app/views/spree/admin/images/index.html.erb +3 -0
- data/app/views/spree/admin/images/new.html.erb +3 -3
- data/app/views/spree/admin/log_entries/index.html.erb +4 -8
- data/app/views/spree/admin/option_types/edit.html.erb +7 -9
- data/app/views/spree/admin/option_types/index.html.erb +4 -4
- data/app/views/spree/admin/orders/_shipment.html.erb +4 -1
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +4 -1
- data/app/views/spree/admin/orders/cart.html.erb +4 -8
- data/app/views/spree/admin/orders/confirm.html.erb +3 -4
- data/app/views/spree/admin/orders/confirm/_payments.html.erb +1 -1
- data/app/views/spree/admin/orders/confirm_advance.html.erb +3 -4
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +2 -4
- data/app/views/spree/admin/orders/customer_details/show.html.erb +3 -5
- data/app/views/spree/admin/orders/edit.html.erb +1 -8
- data/app/views/spree/admin/orders/index.html.erb +11 -5
- data/app/views/spree/admin/payment_methods/edit.html.erb +5 -7
- data/app/views/spree/admin/payment_methods/index.html.erb +6 -5
- data/app/views/spree/admin/payment_methods/new.html.erb +6 -7
- data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
- data/app/views/spree/admin/payments/credit.html.erb +3 -3
- data/app/views/spree/admin/payments/index.html.erb +4 -7
- data/app/views/spree/admin/payments/new.html.erb +4 -5
- data/app/views/spree/admin/payments/show.html.erb +4 -7
- data/app/views/spree/admin/prices/_form.html.erb +1 -0
- data/app/views/spree/admin/prices/index.html.erb +2 -2
- data/app/views/spree/admin/product_properties/index.html.erb +3 -1
- data/app/views/spree/admin/products/_form.html.erb +11 -18
- data/app/views/spree/admin/products/_properties_form.erb +1 -1
- data/app/views/spree/admin/products/edit.html.erb +3 -2
- data/app/views/spree/admin/products/index.html.erb +19 -28
- data/app/views/spree/admin/products/new.html.erb +4 -2
- data/app/views/spree/admin/promotion_categories/edit.html.erb +4 -3
- data/app/views/spree/admin/promotion_categories/index.html.erb +4 -4
- data/app/views/spree/admin/promotion_categories/new.html.erb +4 -3
- data/app/views/spree/admin/promotion_rules/create.js.erb +1 -1
- data/app/views/spree/admin/promotions/_actions.html.erb +3 -3
- data/app/views/spree/admin/promotions/_rules.html.erb +2 -2
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/edit.html.erb +4 -5
- data/app/views/spree/admin/promotions/index.html.erb +3 -5
- data/app/views/spree/admin/promotions/new.html.erb +3 -3
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +2 -2
- data/app/views/spree/admin/properties/edit.html.erb +3 -6
- data/app/views/spree/admin/properties/index.html.erb +5 -5
- data/app/views/spree/admin/prototypes/_form.html.erb +3 -3
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
- data/app/views/spree/admin/prototypes/edit.html.erb +3 -6
- data/app/views/spree/admin/prototypes/index.html.erb +4 -4
- data/app/views/spree/admin/prototypes/show.html.erb +2 -2
- data/app/views/spree/admin/refund_reasons/edit.html.erb +4 -4
- data/app/views/spree/admin/refund_reasons/index.html.erb +5 -4
- data/app/views/spree/admin/refund_reasons/new.html.erb +5 -4
- data/app/views/spree/admin/refunds/edit.html.erb +5 -6
- data/app/views/spree/admin/refunds/new.html.erb +6 -6
- data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -3
- data/app/views/spree/admin/reimbursements/edit.html.erb +5 -6
- data/app/views/spree/admin/reimbursements/index.html.erb +2 -4
- data/app/views/spree/admin/reimbursements/show.html.erb +3 -4
- data/app/views/spree/admin/reports/index.html.erb +2 -3
- data/app/views/spree/admin/reports/sales_total.html.erb +2 -4
- data/app/views/spree/admin/return_authorizations/edit.html.erb +15 -16
- data/app/views/spree/admin/return_authorizations/index.html.erb +3 -5
- data/app/views/spree/admin/return_authorizations/new.html.erb +5 -6
- data/app/views/spree/admin/return_reasons/edit.html.erb +3 -2
- data/app/views/spree/admin/return_reasons/index.html.erb +3 -1
- data/app/views/spree/admin/return_reasons/new.html.erb +4 -2
- data/app/views/spree/admin/shared/_areas_tabs.html.erb +3 -3
- data/app/views/spree/admin/shared/_configuration_menu.html.erb +2 -2
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_head.html.erb +1 -8
- data/app/views/spree/admin/shared/_header.html.erb +8 -12
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_no_objects_found.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_submenu.html.erb +10 -10
- data/app/views/spree/admin/shared/_order_summary.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_tabs.html.erb +3 -3
- data/app/views/spree/admin/shared/_payments_tabs.html.erb +1 -1
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +2 -2
- data/app/views/spree/admin/shared/_product_tabs.html.erb +8 -9
- data/app/views/spree/admin/shared/_report_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_settings_checkout_tabs.html.erb +4 -4
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +5 -5
- data/app/views/spree/admin/shared/_shipping_tabs.html.erb +4 -3
- data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
- data/app/views/spree/admin/shared/_tabs.html.erb +12 -37
- data/app/views/spree/admin/shared/_taxes_tabs.html.erb +2 -2
- data/app/views/spree/admin/shared/_variant_search.html.erb +1 -1
- data/app/views/spree/admin/shared/named_types/_edit.html.erb +5 -5
- data/app/views/spree/admin/shared/named_types/_index.html.erb +5 -4
- data/app/views/spree/admin/shared/named_types/_new.html.erb +5 -4
- data/app/views/spree/admin/shipping_categories/edit.html.erb +5 -6
- data/app/views/spree/admin/shipping_categories/index.html.erb +5 -4
- data/app/views/spree/admin/shipping_categories/new.html.erb +5 -6
- data/app/views/spree/admin/shipping_methods/_form.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/edit.html.erb +5 -6
- data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
- data/app/views/spree/admin/shipping_methods/new.html.erb +5 -6
- data/app/views/spree/admin/states/edit.html.erb +5 -6
- data/app/views/spree/admin/states/index.html.erb +5 -4
- data/app/views/spree/admin/states/new.html.erb +5 -3
- data/app/views/spree/admin/stock_items/index.html.erb +4 -7
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/edit.html.erb +5 -5
- data/app/views/spree/admin/stock_locations/index.html.erb +16 -9
- data/app/views/spree/admin/stock_locations/new.html.erb +5 -4
- data/app/views/spree/admin/stock_movements/index.html.erb +3 -4
- data/app/views/spree/admin/stock_movements/new.html.erb +2 -3
- data/app/views/spree/admin/stock_transfers/_location.html.erb +7 -0
- data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/edit.html.erb +5 -6
- data/app/views/spree/admin/stock_transfers/index.html.erb +5 -5
- data/app/views/spree/admin/stock_transfers/new.html.erb +6 -8
- data/app/views/spree/admin/stock_transfers/receive.html.erb +4 -12
- data/app/views/spree/admin/stock_transfers/show.html.erb +6 -12
- data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +5 -13
- data/app/views/spree/admin/store_credits/edit_amount.html.erb +6 -4
- data/app/views/spree/admin/store_credits/edit_validity.html.erb +8 -6
- data/app/views/spree/admin/store_credits/index.html.erb +5 -5
- data/app/views/spree/admin/store_credits/new.html.erb +5 -4
- data/app/views/spree/admin/store_credits/show.html.erb +5 -4
- data/app/views/spree/admin/style_guide/topics/typography/_icons.html.erb +2 -2
- data/app/views/spree/admin/tax_categories/edit.html.erb +5 -4
- data/app/views/spree/admin/tax_categories/index.html.erb +5 -4
- data/app/views/spree/admin/tax_categories/new.html.erb +5 -4
- data/app/views/spree/admin/tax_rates/edit.html.erb +5 -6
- data/app/views/spree/admin/tax_rates/index.html.erb +5 -4
- data/app/views/spree/admin/tax_rates/new.html.erb +5 -6
- data/app/views/spree/admin/taxonomies/edit.erb +7 -9
- data/app/views/spree/admin/taxonomies/index.html.erb +4 -4
- data/app/views/spree/admin/taxonomies/new.html.erb +5 -7
- data/app/views/spree/admin/taxons/edit.html.erb +5 -6
- data/app/views/spree/admin/taxons/index.html.erb +2 -3
- data/app/views/spree/admin/trackers/edit.html.erb +5 -6
- data/app/views/spree/admin/trackers/index.html.erb +4 -4
- data/app/views/spree/admin/trackers/new.html.erb +4 -6
- data/app/views/spree/admin/users/_form.html.erb +2 -2
- data/app/views/spree/admin/users/_tabs.html.erb +5 -5
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -4
- data/app/views/spree/admin/users/addresses.html.erb +5 -4
- data/app/views/spree/admin/users/edit.html.erb +6 -6
- data/app/views/spree/admin/users/index.html.erb +4 -5
- data/app/views/spree/admin/users/items.html.erb +4 -3
- data/app/views/spree/admin/users/new.html.erb +2 -9
- data/app/views/spree/admin/users/orders.html.erb +4 -3
- data/app/views/spree/admin/variants/_form.html.erb +1 -0
- data/app/views/spree/admin/variants/edit.html.erb +4 -3
- data/app/views/spree/admin/variants/index.html.erb +10 -8
- data/app/views/spree/admin/variants/new.html.erb +5 -0
- data/app/views/spree/admin/zones/_country_members.html.erb +2 -2
- data/app/views/spree/admin/zones/_state_members.html.erb +2 -2
- data/app/views/spree/admin/zones/edit.html.erb +5 -6
- data/app/views/spree/admin/zones/index.html.erb +5 -4
- data/app/views/spree/admin/zones/new.html.erb +6 -7
- data/app/views/spree/layouts/admin.html.erb +28 -15
- data/config/initializers/form_builder.rb +6 -0
- data/config/routes.rb +2 -6
- data/spec/controllers/spree/admin/cancellations_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/customer_returns_controller_spec.rb +4 -4
- data/spec/controllers/spree/admin/missing_products_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/orders_controller_spec.rb +28 -28
- data/spec/controllers/spree/admin/payment_methods_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/payments_controller_spec.rb +7 -7
- data/spec/controllers/spree/admin/prices_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/product_properties_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/products_controller_spec.rb +6 -6
- data/spec/controllers/spree/admin/promotion_actions_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/promotion_codes_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/promotion_rules_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/promotions_controller_spec.rb +7 -7
- data/spec/controllers/spree/admin/refunds_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/reports_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/resource_controller_spec.rb +6 -6
- data/spec/controllers/spree/admin/return_authorizations_controller_spec.rb +11 -11
- data/spec/controllers/spree/admin/return_items_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/stock_items_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/stock_transfers_controller_spec.rb +10 -10
- data/spec/controllers/spree/admin/store_credits_controller_spec.rb +10 -10
- data/spec/controllers/spree/admin/users_controller_spec.rb +139 -141
- data/spec/controllers/spree/admin/variants_controller_spec.rb +2 -2
- data/spec/features/admin/configuration/general_settings_spec.rb +7 -16
- data/spec/features/admin/configuration/payment_methods_spec.rb +7 -7
- data/spec/features/admin/configuration/stock_locations_spec.rb +1 -1
- data/spec/features/admin/configuration/tax_categories_spec.rb +1 -1
- data/spec/features/admin/configuration/zones_spec.rb +1 -1
- data/spec/features/admin/homepage_spec.rb +2 -2
- data/spec/features/admin/orders/adjustments_spec.rb +1 -1
- data/spec/features/admin/orders/cancelling_inventory_spec.rb +8 -8
- data/spec/features/admin/orders/customer_details_spec.rb +20 -5
- data/spec/features/admin/orders/listing_spec.rb +97 -70
- data/spec/features/admin/orders/new_order_spec.rb +35 -6
- data/spec/features/admin/orders/order_details_spec.rb +37 -58
- data/spec/features/admin/orders/payments_spec.rb +57 -4
- data/spec/features/admin/orders/return_authorizations_spec.rb +25 -0
- data/spec/features/admin/orders/shipments_spec.rb +5 -5
- data/spec/features/admin/products/edit/products_spec.rb +1 -1
- data/spec/features/admin/products/edit/taxons_spec.rb +5 -5
- data/spec/features/admin/products/edit/variants_spec.rb +1 -1
- data/spec/features/admin/products/option_types_spec.rb +2 -2
- data/spec/features/admin/products/products_spec.rb +6 -6
- data/spec/features/admin/products/properties_spec.rb +6 -6
- data/spec/features/admin/products/prototypes_spec.rb +1 -1
- data/spec/features/admin/products/stock_management_spec.rb +5 -5
- data/spec/features/admin/promotion_adjustments_spec.rb +8 -8
- data/spec/features/admin/promotions/option_value_rule_spec.rb +4 -4
- data/spec/features/admin/promotions/product_rule_spec.rb +33 -0
- data/spec/features/admin/promotions/tiered_calculator_spec.rb +2 -2
- data/spec/features/admin/promotions/user_rule_spec.rb +15 -0
- data/spec/features/admin/reports_spec.rb +1 -1
- data/spec/features/admin/users_spec.rb +27 -2
- data/spec/helpers/admin/base_helper_spec.rb +30 -0
- data/spec/helpers/admin/navigation_helper_spec.rb +40 -2
- data/spec/spec_helper.rb +10 -8
- data/spec/support/feature/order_feature_helper.rb +17 -0
- metadata +18 -11
- data/app/assets/javascripts/spree/backend/general_settings.js.coffee +0 -13
- data/spec/controllers/spree/admin/general_settings_controller_spec.rb +0 -41
@@ -1,13 +1,12 @@
|
|
1
1
|
<%= render 'spree/admin/shared/shipping_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.shipping')) %>
|
5
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::ShippingMethod), spree.admin_shipping_methods_path) %>
|
6
|
+
<% admin_breadcrumb(Spree.t(:new_shipping_method)) %>
|
7
|
+
|
6
8
|
|
7
9
|
<% content_for :page_actions do %>
|
8
|
-
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, :icon => 'arrow-left' %>
|
10
|
-
</li>
|
11
10
|
<% end %>
|
12
11
|
|
13
12
|
<div data-hook="admin_shipping_method_new_form_header">
|
@@ -1,13 +1,12 @@
|
|
1
1
|
<%= render 'spree/admin/shared/areas_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.areas')) %>
|
5
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::State), spree.admin_states_path) %>
|
6
|
+
<% admin_breadcrumb(@state.name) %>
|
7
|
+
|
6
8
|
|
7
9
|
<% content_for :page_actions do %>
|
8
|
-
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_states_list), spree.admin_country_states_url(@country), :icon => 'arrow-left' %>
|
10
|
-
</li>
|
11
10
|
<% end %>
|
12
11
|
|
13
12
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @state } %>
|
@@ -1,13 +1,14 @@
|
|
1
1
|
<%= render 'spree/admin/shared/areas_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.areas')) %>
|
5
|
+
<% admin_breadcrumb(plural_resource_name(Spree::State)) %>
|
6
|
+
|
6
7
|
|
7
8
|
<% content_for :page_actions do %>
|
8
9
|
<% if can?(:create, Spree::State) %>
|
9
10
|
<li>
|
10
|
-
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { :
|
11
|
+
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { :id => 'new_state_link' } %>
|
11
12
|
</li>
|
12
13
|
<% end %>
|
13
14
|
<% end %>
|
@@ -2,9 +2,11 @@
|
|
2
2
|
|
3
3
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @state } %>
|
4
4
|
|
5
|
-
<%
|
6
|
-
|
7
|
-
<%
|
5
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
6
|
+
<% admin_breadcrumb(Spree.t('admin.tab.areas')) %>
|
7
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::State), spree.admin_states_path) %>
|
8
|
+
<% admin_breadcrumb(Spree.t(:new_state)) %>
|
9
|
+
|
8
10
|
|
9
11
|
<%= form_for [:admin, @country, @state] do |f| %>
|
10
12
|
<fieldset>
|
@@ -1,15 +1,12 @@
|
|
1
1
|
<% if @product %>
|
2
|
-
<% content_for :page_actions do %>
|
3
|
-
<li><%= button_link_to Spree.t(:back_to_products_list), session[:return_to] || admin_products_url, :icon => 'arrow-left' %></li>
|
4
|
-
<% end %>
|
5
|
-
|
6
2
|
<%= render :partial => 'spree/admin/shared/product_tabs', :locals => { :current => 'Stock Management' } %>
|
7
3
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @product } %>
|
4
|
+
<% admin_breadcrumb(Spree.t(:manage_stock)) %>
|
5
|
+
|
8
6
|
<% else %>
|
9
7
|
|
10
|
-
<%
|
11
|
-
|
12
|
-
<% end %>
|
8
|
+
<% admin_breadcrumb(Spree.t(:stock)) %>
|
9
|
+
|
13
10
|
<% end %>
|
14
11
|
|
15
12
|
<% content_for :table_filter_title do %>
|
@@ -31,8 +31,8 @@
|
|
31
31
|
</div>
|
32
32
|
|
33
33
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
34
|
-
<%= button Spree.t(:transfer_stock)
|
35
|
-
<%=
|
34
|
+
<%= button Spree.t(:transfer_stock) %>
|
35
|
+
<%= link_to Spree.t('actions.cancel'), collection_url, :class => 'button' %>
|
36
36
|
</div>
|
37
37
|
</fieldset>
|
38
38
|
<% end %>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<%= render 'spree/admin/shared/shipping_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
|
6
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.shipping')) %>
|
5
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::StockLocation), spree.admin_stock_locations_path) %>
|
6
|
+
<% admin_breadcrumb(@stock_location.name) %>
|
7
|
+
|
7
8
|
|
8
9
|
<% content_for :page_actions do %>
|
9
|
-
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_stock_locations_list), admin_stock_locations_path, :class => 'button' %></li>
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @stock_location } %>
|
@@ -1,20 +1,21 @@
|
|
1
1
|
<%= render 'spree/admin/shared/shipping_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.shipping')) %>
|
5
|
+
<% admin_breadcrumb(plural_resource_name(Spree::StockLocation)) %>
|
6
|
+
|
6
7
|
|
7
8
|
<% content_for :page_actions do %>
|
8
9
|
<ul class="actions inline-menu">
|
9
10
|
<% if can?(:create, Spree::StockLocation) %>
|
10
11
|
<li>
|
11
|
-
<%= button_link_to Spree.t(:new_stock_location), new_object_url, { :
|
12
|
+
<%= button_link_to Spree.t(:new_stock_location), new_object_url, { :id => 'admin_new_stock_location' } %>
|
12
13
|
</li>
|
13
14
|
<% end %>
|
14
15
|
|
15
16
|
<% if can?(:create, Spree::StockTransfer) %>
|
16
17
|
<li>
|
17
|
-
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path
|
18
|
+
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path %>
|
18
19
|
</li>
|
19
20
|
<% end %>
|
20
21
|
</ul>
|
@@ -34,7 +35,7 @@
|
|
34
35
|
<th class="no-border"></th>
|
35
36
|
<th><%= Spree::StockLocation.human_attribute_name(:name) %></th>
|
36
37
|
<th><%= Spree::StockLocation.human_attribute_name(:state_id) %></th>
|
37
|
-
<th><%= Spree::StockMovement
|
38
|
+
<th><%= plural_resource_name(Spree::StockMovement) %></th>
|
38
39
|
<th class="actions"></th>
|
39
40
|
</tr>
|
40
41
|
</thead>
|
@@ -49,11 +50,17 @@
|
|
49
50
|
<span class="handle"></span>
|
50
51
|
<% end %>
|
51
52
|
</td>
|
52
|
-
<td class="align-center"><%=
|
53
|
-
<td class="align-center"
|
53
|
+
<td class="align-center"><%= admin_stock_location_display_name(stock_location) %></td>
|
54
|
+
<td class="align-center">
|
55
|
+
<% if stock_location.active? %>
|
56
|
+
<span class="state active"><%= Spree.t('active') %></span>
|
57
|
+
<% else %>
|
58
|
+
<span class="state inactive"><%= Spree.t('inactive') %></span>
|
59
|
+
<% end %>
|
60
|
+
</td>
|
54
61
|
<td class="align-center">
|
55
62
|
<% if can?(:display, Spree::StockMovement) %>
|
56
|
-
<%= link_to Spree::StockMovement
|
63
|
+
<%= link_to plural_resource_name(Spree::StockMovement), admin_stock_location_stock_movements_path(stock_location.id) %>
|
57
64
|
<% else %>
|
58
65
|
Stock Movements
|
59
66
|
<% end %>
|
@@ -1,11 +1,12 @@
|
|
1
1
|
<%= render 'spree/admin/shared/shipping_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.shipping')) %>
|
5
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::StockLocation), spree.admin_stock_locations_path) %>
|
6
|
+
<% admin_breadcrumb(Spree.t(:new_stock_location)) %>
|
7
|
+
|
6
8
|
|
7
9
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_stock_locations_list), admin_stock_locations_path, :class => 'button' %></li>
|
9
10
|
<% end %>
|
10
11
|
|
11
12
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @stock_locations } %>
|
@@ -1,13 +1,12 @@
|
|
1
1
|
<%= render 'spree/admin/shared/shipping_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<% end %>
|
3
|
+
<% admin_breadcrumb(Spree.t(:stock_movements_for_stock_location, stock_location_name: @stock_location.name)) %>
|
4
|
+
|
6
5
|
|
7
6
|
<% content_for :page_actions do %>
|
8
7
|
<% if can?(:create, Spree::StockMovement) %>
|
9
8
|
<li>
|
10
|
-
<%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location),
|
9
|
+
<%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location), id: 'admin_new_stock_movement_link' %>
|
11
10
|
</li>
|
12
11
|
<% end %>
|
13
12
|
|
@@ -1,6 +1,5 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<% end %>
|
1
|
+
<% admin_breadcrumb(Spree.t(:new_stock_movement)) %>
|
2
|
+
|
4
3
|
|
5
4
|
<% content_for :page_actions do %>
|
6
5
|
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_stock_movements_list), admin_stock_location_stock_movements_path(@stock_location), :class => 'button' %></li>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<div class='location'>
|
2
|
+
<h5>
|
3
|
+
<span><%= admin_stock_location_display_name(stock_transfer.source_location) %></span>
|
4
|
+
<span class='arrow'>→</span>
|
5
|
+
<span><%= admin_stock_location_display_name(stock_transfer.destination_location) if stock_transfer.destination_location %></span>
|
6
|
+
</h5>
|
7
|
+
</div>
|
@@ -59,5 +59,5 @@
|
|
59
59
|
</tbody>
|
60
60
|
</table>
|
61
61
|
<div class="no-objects-found" <%= 'hidden' if @stock_transfer.transfer_items.any? %>>
|
62
|
-
<%= Spree.t(:no_resource, resource: Spree::TransferItem
|
62
|
+
<%= Spree.t(:no_resource, resource: plural_resource_name(Spree::TransferItem)) %>
|
63
63
|
</div>
|
@@ -1,15 +1,14 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to Spree.t(:stock), spree.admin_stock_items_path) %>
|
2
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::StockTransfer), spree.admin_stock_transfers_path) %>
|
3
|
+
<% admin_breadcrumb(@stock_transfer.number) %>
|
4
|
+
|
4
5
|
|
5
6
|
<% content_for :page_actions do %>
|
6
7
|
<li>
|
7
|
-
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path, icon: 'arrow-left' %>
|
8
8
|
</li>
|
9
9
|
<li>
|
10
10
|
<%= button_link_to Spree.t(:ready_to_ship),
|
11
11
|
finalize_admin_stock_transfer_path(@stock_transfer),
|
12
|
-
icon: 'truck',
|
13
12
|
method: 'put',
|
14
13
|
data: { confirm: Spree.t('finalize_stock_transfer.confirm') }
|
15
14
|
%>
|
@@ -33,7 +32,7 @@
|
|
33
32
|
<%= f.error_message_on :destination_location %>
|
34
33
|
<% end %>
|
35
34
|
<div class="filter-actions actions" data-hook="buttons">
|
36
|
-
<%= button Spree.t('actions.save')
|
35
|
+
<%= button Spree.t('actions.save') %>
|
37
36
|
</div>
|
38
37
|
</fieldset>
|
39
38
|
<% end %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to Spree.t(:stock), spree.admin_stock_items_path) %>
|
2
|
+
<% admin_breadcrumb(plural_resource_name(Spree::StockTransfer)) %>
|
3
|
+
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<% if can? :create, Spree::StockTransfer %>
|
7
7
|
<li>
|
8
|
-
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path
|
8
|
+
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
@@ -59,7 +59,7 @@
|
|
59
59
|
|
60
60
|
<div class="actions filter-actions">
|
61
61
|
<div data-hook="admin_stock_transfers_index_search_buttons">
|
62
|
-
<%= button Spree.t(:filter_results)
|
62
|
+
<%= button Spree.t(:filter_results) %>
|
63
63
|
</div>
|
64
64
|
</div>
|
65
65
|
<% end %>
|
@@ -1,11 +1,9 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to Spree.t(:stock), spree.admin_stock_items_path) %>
|
2
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::StockTransfer), spree.admin_stock_transfers_path) %>
|
3
|
+
<% admin_breadcrumb(Spree.t(:new_stock_transfer)) %>
|
4
|
+
|
4
5
|
|
5
6
|
<% content_for :page_actions do %>
|
6
|
-
<li>
|
7
|
-
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path, icon: 'arrow-left' %>
|
8
|
-
</li>
|
9
7
|
<% end %>
|
10
8
|
|
11
9
|
<%= form_for [:admin, @stock_transfer] do |f| %>
|
@@ -21,8 +19,8 @@
|
|
21
19
|
<%= f.error_message_on :description %>
|
22
20
|
<% end %>
|
23
21
|
<div class="filter-actions actions" data-hook="buttons">
|
24
|
-
<%= button Spree.t(:continue)
|
25
|
-
<%=
|
22
|
+
<%= button Spree.t(:continue) %>
|
23
|
+
<%= link_to Spree.t('actions.cancel'), admin_stock_transfers_path, class: 'button' %>
|
26
24
|
</div>
|
27
25
|
</fieldset>
|
28
26
|
<% end %>
|
@@ -1,28 +1,20 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<% end %>
|
1
|
+
<% admin_breadcrumb("#{Spree.t(:receiving)} #{@stock_transfer.number}") %>
|
2
|
+
|
4
3
|
|
5
4
|
<% content_for :page_actions do %>
|
6
5
|
<li>
|
7
|
-
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path
|
6
|
+
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path %>
|
8
7
|
</li>
|
9
8
|
<li>
|
10
9
|
<%= button_link_to Spree.t(:close),
|
11
10
|
close_admin_stock_transfer_path(@stock_transfer),
|
12
|
-
icon: 'lock',
|
13
11
|
method: 'put',
|
14
12
|
data: { confirm: Spree.t('close_stock_transfer.confirm') } %>
|
15
13
|
</li>
|
16
14
|
<% end %>
|
17
15
|
|
18
16
|
<div id='stock_transfer_summary' class='fullwidth'>
|
19
|
-
|
20
|
-
<span class='summary-field'>From:</span>
|
21
|
-
<span><%= @stock_transfer.source_location.admin_name %></span>
|
22
|
-
<span class='arrow'>→</span>
|
23
|
-
<span class='summary-field'>To:</span>
|
24
|
-
<span><%= @stock_transfer.destination_location.admin_name %></span>
|
25
|
-
</div>
|
17
|
+
<%= render 'spree/admin/stock_transfers/location', stock_transfer: @stock_transfer %>
|
26
18
|
<div class='count-summary'>
|
27
19
|
<span id='total-received-quantity'><%= @stock_transfer.received_item_count %></span>
|
28
20
|
/
|
@@ -1,21 +1,15 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to Spree.t(:stock), spree.admin_stock_items_path) %>
|
2
|
+
<% admin_breadcrumb(Spree::StockTransfer.model_name.human, @stock_transfer.number) %>
|
3
|
+
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<li>
|
7
|
-
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path
|
7
|
+
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path %>
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<fieldset class="no-border-bottom">
|
12
|
-
|
13
|
-
<h6>
|
14
|
-
<span><%= @stock_transfer.source_location.admin_name %></span>
|
15
|
-
<span class='arrow'>→</span>
|
16
|
-
<span><%= @stock_transfer.destination_location.try!(:admin_name) %></span>
|
17
|
-
</h6>
|
18
|
-
</div>
|
12
|
+
<%= render 'spree/admin/stock_transfers/location', stock_transfer: @stock_transfer %>
|
19
13
|
|
20
14
|
<div>
|
21
15
|
<label><%= Spree::StockTransfer.human_attribute_name(:description) %></label>
|
@@ -49,6 +43,6 @@
|
|
49
43
|
</fieldset>
|
50
44
|
|
51
45
|
<fieldset>
|
52
|
-
<legend><%= Spree::TransferItem
|
46
|
+
<legend><%= plural_resource_name(Spree::TransferItem) %></legend>
|
53
47
|
<%= render partial: 'transfer_item_table', locals: { transfer_items: @stock_transfer.transfer_items, show_expected: true, show_received: true, show_actions: false } %>
|
54
48
|
</fieldset>
|
@@ -1,15 +1,13 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<% end %>
|
1
|
+
<% admin_breadcrumb("#{Spree.t('actions.ship')} #{Spree::StockTransfer.model_name.human} \##{@stock_transfer.number}") %>
|
2
|
+
|
4
3
|
|
5
4
|
<% content_for :page_actions do %>
|
6
5
|
<li>
|
7
|
-
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path
|
6
|
+
<%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path %>
|
8
7
|
</li>
|
9
8
|
<li>
|
10
9
|
<%= button_link_to Spree.t('actions.ship'),
|
11
10
|
ship_admin_stock_transfer_path(@stock_transfer),
|
12
|
-
icon: 'check',
|
13
11
|
method: 'put',
|
14
12
|
data: { confirm: Spree.t('ship_stock_transfer.confirm') }
|
15
13
|
%>
|
@@ -17,13 +15,7 @@
|
|
17
15
|
<% end %>
|
18
16
|
|
19
17
|
<div id='stock_transfer_summary' class='fullwidth'>
|
20
|
-
|
21
|
-
<h5>
|
22
|
-
<span><%= @stock_transfer.source_location.admin_name %></span>
|
23
|
-
<span class='arrow'>→</span>
|
24
|
-
<span><%= @stock_transfer.destination_location.admin_name %></span>
|
25
|
-
</h5>
|
26
|
-
</div>
|
18
|
+
<%= render 'spree/admin/stock_transfers/location', stock_transfer: @stock_transfer %>
|
27
19
|
<div class='shipment-description'>
|
28
20
|
<div class='summary-field creator'><%= Spree::StockTransfer.human_attribute_name(:created_by) %>: <%= @stock_transfer.created_by.email %></div>
|
29
21
|
<div class='summary-field description'><%= @stock_transfer.description %></div>
|
@@ -49,6 +41,6 @@
|
|
49
41
|
</fieldset>
|
50
42
|
|
51
43
|
<fieldset id='stock-transfer-transfer-items'>
|
52
|
-
<legend align="center"><%= Spree::TransferItem
|
44
|
+
<legend align="center"><%= plural_resource_name(Spree::TransferItem) %></legend>
|
53
45
|
<%= render partial: 'transfer_item_table', locals: { transfer_items: @stock_transfer.transfer_items, show_expected: true, show_received: false, show_actions: false } %>
|
54
46
|
</fieldset>
|
@@ -1,11 +1,13 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::LegacyUser), spree.admin_users_path) %>
|
2
|
+
<% admin_breadcrumb(link_to @user.email, edit_admin_user_url(@user)) %>
|
3
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::StoreCredit), spree.admin_user_store_credits_path(@user)) %>
|
4
|
+
<% admin_breadcrumb(link_to Spree::StoreCredit.model_name.human, admin_user_store_credit_path(@user, @store_credit)) %>
|
5
|
+
<% admin_breadcrumb(Spree.t(:edit)) %>
|
6
|
+
|
4
7
|
|
5
8
|
<%= render 'spree/admin/users/sidebar' %>
|
6
9
|
<%= render 'spree/admin/users/tabs', current: :store_credits %>
|
7
10
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= link_to_with_icon 'arrow-left', Spree.t("admin.store_credits.back_to_edit"), admin_user_store_credit_path(@user, @store_credit), class: 'button' %></li>
|
9
11
|
<% end %>
|
10
12
|
|
11
13
|
<%= form_for [:admin, @user, @store_credit], url: update_amount_admin_user_store_credit_path, method: :put do |f| %>
|