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,12 +1,9 @@
|
|
1
1
|
<%= render 'spree/admin/shared/settings_checkout_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
6
|
-
|
7
|
-
<% content_for :page_actions do %>
|
8
|
-
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_adjustment_reason_list), collection_url, :class => 'button' %></li>
|
9
|
-
<% end %>
|
3
|
+
<% admin_breadcrumb Spree.t(:settings) %>
|
4
|
+
<% admin_breadcrumb Spree.t('admin.tab.checkout') %>
|
5
|
+
<% admin_breadcrumb link_to plural_resource_name(Spree::AdjustmentReason), spree.admin_adjustment_reasons_path %>
|
6
|
+
<% admin_breadcrumb @object.name %>
|
10
7
|
|
11
8
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @object } %>
|
12
9
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<%= render 'spree/admin/shared/settings_checkout_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.checkout')) %>
|
5
|
+
<% admin_breadcrumb(plural_resource_name(Spree::AdjustmentReason)) %>
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<ul class="actions inline-menu">
|
9
9
|
<li>
|
10
|
-
<%= button_link_to Spree.t(:new_adjustment_reason), new_object_url, {
|
10
|
+
<%= button_link_to Spree.t(:new_adjustment_reason), new_object_url, { id: 'admin_new_named_type' } %>
|
11
11
|
</li>
|
12
12
|
</ul>
|
13
13
|
<% end %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%= render 'spree/admin/shared/settings_checkout_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.checkout')) %>
|
5
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::AdjustmentReason), spree.admin_adjustment_reasons_path) %>
|
6
|
+
<% admin_breadcrumb(Spree.t(:new_adjustment_reason)) %>
|
6
7
|
|
7
8
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_adjustment_reason_list), collection_url, :class => 'button' %></li>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @object } %>
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Adjustments' } %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<% end %>
|
3
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Adjustment), spree.admin_order_adjustments_path(@order)) %>
|
4
|
+
<% admin_breadcrumb("#{Spree.t('actions.edit')} #{Spree::Adjustment.model_name.human}") %>
|
6
5
|
|
7
6
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= button_link_to Spree.t(:back_to_adjustments_list), spree.admin_order_adjustments_url(@order), :icon => 'arrow-left' %></li>
|
9
7
|
<% end %>
|
10
8
|
|
11
9
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @adjustment } %>
|
@@ -14,8 +12,8 @@
|
|
14
12
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
15
13
|
|
16
14
|
<div class="filter-actions actions" data-hook="buttons">
|
17
|
-
<%= button Spree.t(:continue)
|
18
|
-
<%=
|
15
|
+
<%= button Spree.t(:continue) %>
|
16
|
+
<%= link_to Spree.t('actions.cancel'), admin_order_adjustments_url(@order), :class => 'button' %>
|
19
17
|
</div>
|
20
18
|
</fieldset>
|
21
19
|
<% end %>
|
@@ -1,16 +1,13 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Adjustments' } %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
<i class="fa fa-arrow-right"></i> <%= Spree.t(:adjustments) %>
|
5
|
-
<% end %>
|
3
|
+
<% admin_breadcrumb(plural_resource_name(Spree::Adjustment)) %>
|
6
4
|
|
7
5
|
<% content_for :page_actions do %>
|
8
6
|
<% if can? :create, Spree::Adjustment %>
|
9
7
|
<li>
|
10
|
-
<%= button_link_to Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order)
|
8
|
+
<%= button_link_to Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order) %>
|
11
9
|
</li>
|
12
10
|
<% end %>
|
13
|
-
<li><%= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, :icon => 'arrow-left' %></li>
|
14
11
|
<% end %>
|
15
12
|
|
16
13
|
<%= render :partial => 'adjustments_table' %>
|
@@ -18,7 +15,7 @@
|
|
18
15
|
<% if @order.can_add_coupon? %>
|
19
16
|
<div data-hook="adjustments_new_coupon_code">
|
20
17
|
<%= text_field_tag "coupon_code", "", :placeholder => Spree.t(:coupon_code) %>
|
21
|
-
<%= button Spree.t(:add_coupon_code),
|
18
|
+
<%= button Spree.t(:add_coupon_code), nil, 'submit', :id => "add_coupon_code" %>
|
22
19
|
</div>
|
23
20
|
<% end %>
|
24
21
|
<%= javascript_tag do -%>
|
@@ -1,11 +1,10 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Adjustments' } %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
|
3
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Adjustment), spree.admin_order_adjustments_path(@order)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t(:new_adjustment)) %>
|
5
|
+
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= button_link_to Spree.t(:back_to_adjustments_list), spree.admin_order_adjustments_url(@order), :icon => 'arrow-left' %></li>
|
9
8
|
<% end %>
|
10
9
|
|
11
10
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @adjustment } %>
|
@@ -15,8 +14,8 @@
|
|
15
14
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
16
15
|
|
17
16
|
<div class="filter-actions actions" data-hook="buttons">
|
18
|
-
<%= button Spree.t(:continue)
|
19
|
-
<%= button_link_to Spree.t('actions.cancel'), admin_order_adjustments_url(@order)
|
17
|
+
<%= button Spree.t(:continue) %>
|
18
|
+
<%= button_link_to Spree.t('actions.cancel'), admin_order_adjustments_url(@order) %>
|
20
19
|
</div>
|
21
20
|
</fieldset>
|
22
21
|
<% end %>
|
@@ -1,6 +1,7 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Order), spree.admin_orders_path) %>
|
2
|
+
<% admin_breadcrumb(link_to "##{@order.number}", spree.edit_admin_order_path(@order)) %>
|
3
|
+
<% admin_breadcrumb(Spree.t(:cancel_inventory)) %>
|
4
|
+
|
4
5
|
|
5
6
|
<table class="stock-contents index">
|
6
7
|
<colgroup>
|
@@ -1,13 +1,11 @@
|
|
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::Country), spree.admin_countries_path) %>
|
6
|
+
<% admin_breadcrumb(@country.name) %>
|
6
7
|
|
7
8
|
<% content_for :page_actions do %>
|
8
|
-
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_countries_list), spree.admin_countries_path, :icon => 'arrow-left' %>
|
10
|
-
</li>
|
11
9
|
<% end %>
|
12
10
|
|
13
11
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @country } %>
|
@@ -1,14 +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::Country)) %>
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<ul class="actions inline-menu">
|
9
9
|
<% if can?(:create, Spree::Country) %>
|
10
10
|
<li>
|
11
|
-
<%= button_link_to Spree.t(:new_country), new_object_url, { :
|
11
|
+
<%= button_link_to Spree.t(:new_country), new_object_url, { :id => 'admin_new_country' } %>
|
12
12
|
</li>
|
13
13
|
<% end %>
|
14
14
|
</ul>
|
@@ -1,11 +1,11 @@
|
|
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::Country), spree.admin_countries_path) %>
|
6
|
+
<% admin_breadcrumb(Spree.t(:new_country)) %>
|
6
7
|
|
7
8
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_countries_list), admin_countries_path, :class => 'button' %></li>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @countries } %>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
<td class='align-center'>
|
46
46
|
<%= form_for [:admin, return_item] do |f| %>
|
47
47
|
<%= f.hidden_field 'reception_status_event', value: 'receive' %>
|
48
|
-
<%= f.button Spree.t('actions.receive'), class: '
|
48
|
+
<%= f.button Spree.t('actions.receive'), class: 'with-tip', "data-action" => 'save' %>
|
49
49
|
<% end %>
|
50
50
|
</td>
|
51
51
|
<% end %>
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Customer Returns' } %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<% end %>
|
3
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::CustomerReturn), spree.admin_order_customer_returns_url(@order)) %>
|
4
|
+
<% admin_breadcrumb(@customer_return.number) %>
|
6
5
|
|
7
6
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= button_link_to Spree.t(:back_to_customer_return_list), spree.admin_order_customer_returns_url(@order), :icon => 'arrow-left' %></li>
|
9
7
|
<% end %>
|
10
8
|
|
11
9
|
<% if @manual_intervention_return_items.any? %>
|
@@ -41,7 +39,7 @@
|
|
41
39
|
<% if @customer_return.completely_decided? %>
|
42
40
|
<%= form_for [:admin, @order, Spree::Reimbursement.new] do |f| %>
|
43
41
|
<%= hidden_field_tag :build_from_customer_return_id, @customer_return.id %>
|
44
|
-
<%= f.button class: 'button
|
42
|
+
<%= f.button class: 'button' do %>
|
45
43
|
<%= Spree.t(:create_reimbursement) %>
|
46
44
|
<% end %>
|
47
45
|
<% end %>
|
@@ -54,7 +52,7 @@
|
|
54
52
|
<% end %>
|
55
53
|
|
56
54
|
<fieldset data-hook="reimbursements" class="no-border-bottom align-center">
|
57
|
-
<legend align="center"><%= Spree::Reimbursement
|
55
|
+
<legend align="center"><%= plural_resource_name(Spree::Reimbursement) %></legend>
|
58
56
|
<% if @customer_return.reimbursements.any? %>
|
59
57
|
<%= render partial: 'reimbursements_table', locals: {reimbursements: @customer_return.reimbursements} %>
|
60
58
|
<% else %>
|
@@ -3,15 +3,12 @@
|
|
3
3
|
<% content_for :page_actions do %>
|
4
4
|
<% if can? :create, Spree::CustomerReturn %>
|
5
5
|
<li>
|
6
|
-
<%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order)
|
6
|
+
<%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order) %>
|
7
7
|
</li>
|
8
8
|
<% end %>
|
9
|
-
<li><%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => 'arrow-left' %></li>
|
10
9
|
<% end %>
|
11
10
|
|
12
|
-
<%
|
13
|
-
<i class="fa fa-arrow-right"></i> <%= Spree::CustomerReturn.model_name.human(count: :other) %>
|
14
|
-
<% end %>
|
11
|
+
<% admin_breadcrumb(plural_resource_name(Spree::CustomerReturn)) %>
|
15
12
|
|
16
13
|
<% if @customer_returns.any? %>
|
17
14
|
<table class="index">
|
@@ -1,11 +1,10 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Customer Returns' } %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
|
3
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::CustomerReturn), spree.admin_order_customer_returns_url(@order)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t(:new_customer_return)) %>
|
5
|
+
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= button_link_to Spree.t(:back_to_customer_return_list), spree.admin_order_customer_returns_url(@order), :icon => 'arrow-left' %></li>
|
9
8
|
<% end %>
|
10
9
|
|
11
10
|
<% if @rma_return_items.any? || @new_return_items.any? %>
|
@@ -41,8 +40,8 @@
|
|
41
40
|
</div>
|
42
41
|
|
43
42
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
44
|
-
<%= button Spree.t('actions.create')
|
45
|
-
<%= button_link_to Spree.t('actions.cancel'), admin_order_customer_returns_url(@order)
|
43
|
+
<%= button Spree.t('actions.create') %>
|
44
|
+
<%= button_link_to Spree.t('actions.cancel'), admin_order_customer_returns_url(@order) %>
|
46
45
|
</div>
|
47
46
|
</fieldset>
|
48
47
|
<% end %>
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<%= render 'spree/admin/shared/general_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<% end %>
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t(:general_settings)) %>
|
6
5
|
|
7
6
|
<%= form_tag admin_general_settings_path, method: :put do %>
|
8
7
|
<div id="preferences" data-hook>
|
@@ -59,37 +58,14 @@
|
|
59
58
|
</div>
|
60
59
|
<% end %>
|
61
60
|
|
62
|
-
<% if can? :clear_cache, :general_settings %>
|
63
|
-
<div class="row">
|
64
|
-
<div class="alpha six columns">
|
65
|
-
<fieldset class="no-border-bottom">
|
66
|
-
<legend align="center"><%= Spree.t(:clear_cache)%></legend>
|
67
|
-
<div>
|
68
|
-
<%= Spree.t(:clear_cache_warning) %>
|
69
|
-
</div>
|
70
|
-
<div class="field" data-hook="general_settings_clear_cache">
|
71
|
-
<%= button Spree.t(:clear_cache), '', 'button', id: "clear_cache" %>
|
72
|
-
</div>
|
73
|
-
</fieldset>
|
74
|
-
</div>
|
75
|
-
</div>
|
76
|
-
<% end %>
|
77
|
-
|
78
61
|
<% if can? :update, :general_settings %>
|
79
62
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
80
|
-
<%= button Spree.t('actions.update')
|
81
|
-
<%=
|
63
|
+
<%= button Spree.t('actions.update') %>
|
64
|
+
<%= link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, :class => 'button' %>
|
82
65
|
</div>
|
83
66
|
<% end %>
|
84
67
|
|
85
68
|
</fieldset>
|
86
69
|
|
87
70
|
</div>
|
88
|
-
|
89
|
-
|
90
71
|
<% end %>
|
91
|
-
|
92
|
-
<script>
|
93
|
-
$('#store_default_currency').select2();
|
94
|
-
$('#currency').select2();
|
95
|
-
</script>
|
@@ -2,8 +2,12 @@
|
|
2
2
|
|
3
3
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @image } %>
|
4
4
|
|
5
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Image), admin_product_images_path(@product)) %>
|
6
|
+
<% admin_breadcrumb(@image.attachment_file_name) %>
|
7
|
+
|
8
|
+
|
5
9
|
<% content_for :page_actions do %>
|
6
|
-
<li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product)
|
10
|
+
<li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product) %></li>
|
7
11
|
<% end %>
|
8
12
|
|
9
13
|
<%= form_for [:admin, @product, @image], :html => { :multipart => true } do |f| %>
|
@@ -18,7 +22,7 @@
|
|
18
22
|
</div>
|
19
23
|
<div class="clear"></div>
|
20
24
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
21
|
-
<%= button Spree.t('actions.update')
|
25
|
+
<%= button Spree.t('actions.update') %>
|
22
26
|
<%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button remove' %>
|
23
27
|
</div>
|
24
28
|
</fieldset>
|
@@ -1,5 +1,8 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Images'} %>
|
2
2
|
|
3
|
+
<% admin_breadcrumb(plural_resource_name(Spree::Image)) %>
|
4
|
+
|
5
|
+
|
3
6
|
<% content_for :page_actions do %>
|
4
7
|
<% if can?(:create, Spree::Image) %>
|
5
8
|
<li><%= link_to_with_icon('plus', Spree.t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link', :class => 'button') %></li>
|
@@ -3,10 +3,10 @@
|
|
3
3
|
<legend align="center"><%= Spree.t(:new_image) %></legend>
|
4
4
|
|
5
5
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
6
|
-
|
6
|
+
|
7
7
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
8
|
-
<%= button Spree.t('actions.update')
|
9
|
-
<%=
|
8
|
+
<%= button Spree.t('actions.update') %>
|
9
|
+
<%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button' %>
|
10
10
|
</div>
|
11
11
|
</fieldset>
|
12
12
|
<% end %>
|
@@ -1,15 +1,11 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/order_tabs', locals: { current: 'Payments' }%>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%= Spree::Payment.model_name.human %>
|
6
|
-
<i class="fa fa-arrow-right"></i>
|
7
|
-
<%= Spree::LogEntry.model_name.human(count: :other) %>
|
8
|
-
<% end %>
|
3
|
+
<% admin_breadcrumb(Spree::Payment.model_name.human) %>
|
4
|
+
<% admin_breadcrumb(plural_resource_name(Spree::LogEntry)) %>
|
9
5
|
|
10
6
|
<% content_for :page_actions do %>
|
11
|
-
<li><%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment)
|
12
|
-
<li><%= button_link_to Spree.t(:back_to_payment), spree.admin_order_payment_url(@order, @payment)
|
7
|
+
<li><%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment) %></li>
|
8
|
+
<li><%= button_link_to Spree.t(:back_to_payment), spree.admin_order_payment_url(@order, @payment) %></li>
|
13
9
|
<% end %>
|
14
10
|
|
15
11
|
<table class='index' id='listing_log_entries'>
|
@@ -1,17 +1,15 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
|
2
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::OptionType), spree.admin_option_types_path) %>
|
3
|
+
<% admin_breadcrumb(@option_type.name) %>
|
4
|
+
|
4
5
|
|
5
6
|
<% content_for :page_actions do %>
|
6
7
|
<li>
|
7
8
|
<span id="new_add_option_value" data-hook>
|
8
|
-
<%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button
|
9
|
+
<%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button' %>
|
9
10
|
</span>
|
10
11
|
</li>
|
11
|
-
|
12
|
-
<%= button_link_to Spree.t(:back_to_option_types_list), spree.admin_option_types_path, :icon => 'arrow-left' %>
|
13
|
-
</li>
|
14
|
-
<% end %>
|
12
|
+
<% end %>
|
15
13
|
|
16
14
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @option_type } %>
|
17
15
|
|
@@ -23,7 +21,7 @@
|
|
23
21
|
</fieldset>
|
24
22
|
|
25
23
|
<fieldset>
|
26
|
-
<legend><%= Spree::OptionValue
|
24
|
+
<legend><%= plural_resource_name(Spree::OptionValue) %></legend>
|
27
25
|
<table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
|
28
26
|
<thead data-hook="option_header">
|
29
27
|
<tr>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
|
2
|
+
<% admin_breadcrumb(plural_resource_name(Spree::OptionType)) %>
|
3
|
+
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<% if can?(:create, Spree::OptionType) %>
|
7
7
|
<li id="new_ot_link">
|
8
|
-
<%= button_link_to Spree.t(:new_option_type), new_admin_option_type_url, { :remote => true, :
|
8
|
+
<%= button_link_to Spree.t(:new_option_type), new_admin_option_type_url, { :remote => true, :id => 'new_option_type_link' } %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|