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
data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs
CHANGED
@@ -61,7 +61,7 @@
|
|
61
61
|
|
62
62
|
<fieldset class="no-border-bottom">
|
63
63
|
<legend align="center" class="stock-location">
|
64
|
-
<button class="add_variant
|
64
|
+
<button class="add_variant" title="{{ t "add" }}" data-action="add">{{ t "add" }}</button>
|
65
65
|
</legend>
|
66
66
|
</fieldset>
|
67
67
|
</fieldset>
|
@@ -1,27 +1,25 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
{{
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
26
|
-
</td>
|
27
|
-
</tr>
|
1
|
+
<td colspan='2'>
|
2
|
+
Move {{variant.name}} to
|
3
|
+
</td>
|
4
|
+
<td colspan='2'>
|
5
|
+
<select name="item_stock_location" style='width:100%;'>
|
6
|
+
<option></option>
|
7
|
+
<optgroup label="{{ t "existing_shipments" }}">
|
8
|
+
{{#each shipments}}
|
9
|
+
<option value='shipment:{{this.number}}'>{{this.stock_location.name}}({{this.number}})</option>
|
10
|
+
{{/each}}
|
11
|
+
</optgroup>
|
12
|
+
<optgroup label="{{ t "new_shipment_at_location" }}">
|
13
|
+
{{#each variant.stock_items}}
|
14
|
+
<option value='stock_location:{{this.stock_location_id}}'>{{this.stock_location_name}} ({{this.count_on_hand}} on hand)</option>
|
15
|
+
{{/each}}
|
16
|
+
</optgroup>
|
17
|
+
</select>
|
18
|
+
</td>
|
19
|
+
<td>
|
20
|
+
<input class="quantity" id="item_quantity" type="number" min="1" value="1" max="{{max_quantity}}">
|
21
|
+
</td>
|
22
|
+
<td class='actions'>
|
23
|
+
<a href='#' class='save-split icon_link fa fa-ok no-text with-tip' title='Save'></a>
|
24
|
+
<a href='#' class='cancel-split icon_link fa fa-cancel no-text with-tip' title='Cancel'></a>
|
25
|
+
</td>
|
@@ -9,10 +9,14 @@ $.fn.userAutocomplete = function () {
|
|
9
9
|
minimumInputLength: 1,
|
10
10
|
multiple: true,
|
11
11
|
initSelection: function (element, callback) {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
Spree.ajax({
|
13
|
+
url: Spree.routes.users_api,
|
14
|
+
data: {
|
15
|
+
ids: element.val()
|
16
|
+
},
|
17
|
+
success: function(data) {
|
18
|
+
callback(data.users);
|
19
|
+
}
|
16
20
|
});
|
17
21
|
},
|
18
22
|
ajax: {
|
@@ -21,10 +25,12 @@ $.fn.userAutocomplete = function () {
|
|
21
25
|
params: { "headers": { "X-Spree-Token": Spree.api_key } },
|
22
26
|
data: function (term) {
|
23
27
|
return {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
+
q: {
|
29
|
+
m: 'or',
|
30
|
+
email_start: term,
|
31
|
+
addresses_firstname_start: term,
|
32
|
+
addresses_lastname_start: term
|
33
|
+
}
|
28
34
|
};
|
29
35
|
},
|
30
36
|
results: function (data) {
|
@@ -148,7 +148,7 @@ $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !
|
|
148
148
|
$font-family-base: $font-family-sans-serif !default;
|
149
149
|
|
150
150
|
// Pixel value used to responsively scale all typography. Applied to the `<html>` element.
|
151
|
-
$font-size-root:
|
151
|
+
$font-size-root: 15px !default;
|
152
152
|
|
153
153
|
$font-size-base: 1rem !default;
|
154
154
|
$font-size-lg: 1.25rem !default;
|
@@ -624,9 +624,9 @@ $thumbnail-border-radius: $border-radius !default;
|
|
624
624
|
$breadcrumb-padding-vertical: .75rem !default;
|
625
625
|
$breadcrumb-padding-horizontal: 1rem !default;
|
626
626
|
|
627
|
-
$breadcrumb-bg:
|
627
|
+
$breadcrumb-bg: none !default;
|
628
628
|
$breadcrumb-divider-color: $gray-light !default;
|
629
|
-
$breadcrumb-active-color: $
|
629
|
+
$breadcrumb-active-color: $color-4 !default;
|
630
630
|
$breadcrumb-divider: "/" !default;
|
631
631
|
|
632
632
|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
position: fixed;
|
4
4
|
top: 0;
|
5
5
|
right: 0;
|
6
|
+
bottom: 0;
|
6
7
|
z-index: 1000;
|
7
8
|
opacity: 0.8;
|
8
9
|
@include calc(width, "100% - #{$width-sidebar}");
|
@@ -10,9 +11,12 @@
|
|
10
11
|
.wrapper {
|
11
12
|
border-radius: 10px;
|
12
13
|
position: absolute;
|
14
|
+
top: 50%;
|
13
15
|
left: 50%;
|
14
16
|
width: 200px;
|
17
|
+
height: 100px;
|
15
18
|
margin-left: -100px;
|
19
|
+
margin-top: -50px;
|
16
20
|
padding: 11px 0;
|
17
21
|
background-color: $color-3;
|
18
22
|
color: $color-1;
|
@@ -24,10 +28,9 @@
|
|
24
28
|
}
|
25
29
|
|
26
30
|
.progress-message {
|
27
|
-
font-size:
|
31
|
+
font-size: 130%;
|
28
32
|
font-weight: $font-weight-bold;
|
29
33
|
margin-top: 20px;
|
30
|
-
text-transform: uppercase;
|
31
34
|
}
|
32
35
|
}
|
33
36
|
|
@@ -1,15 +1,12 @@
|
|
1
|
-
|
2
|
-
//---------------------------------------------------
|
3
|
-
#sidebar {
|
1
|
+
body:not(.new-layout) #sidebar {
|
4
2
|
overflow: visible;
|
5
3
|
border-top: 1px solid $color-border;
|
6
4
|
margin-top: 17px;
|
7
5
|
|
8
6
|
.sidebar-title {
|
9
7
|
color: $color-2;
|
10
|
-
text-transform: uppercase;
|
11
8
|
text-align: center;
|
12
|
-
font-size:
|
9
|
+
font-size: 16px;
|
13
10
|
font-weight: $font-weight-bold;
|
14
11
|
|
15
12
|
> span {
|
@@ -30,3 +27,15 @@
|
|
30
27
|
}
|
31
28
|
}
|
32
29
|
}
|
30
|
+
|
31
|
+
body.new-layout .content-sidebar {
|
32
|
+
ul {
|
33
|
+
padding-left: 0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
body.new-layout .sidebar-title {
|
38
|
+
@include line-through();
|
39
|
+
color: $color-2;
|
40
|
+
font-size: 14px;
|
41
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@mixin line-through($color: $color-2, $background: $color-1) {
|
2
|
+
position: relative;
|
3
|
+
text-align: center;
|
4
|
+
|
5
|
+
&:before {
|
6
|
+
content: "";
|
7
|
+
position: absolute;
|
8
|
+
top: calc(50% - 1px);
|
9
|
+
left: 0;
|
10
|
+
width: 100%;
|
11
|
+
height: 1px;
|
12
|
+
background: $color;
|
13
|
+
z-index: 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
> * { // usually a <span> but we'll use an * just in case
|
17
|
+
@include padding(null 1rem);
|
18
|
+
position: relative;
|
19
|
+
background: $background;
|
20
|
+
z-index: 1;
|
21
|
+
}
|
22
|
+
}
|
@@ -30,6 +30,7 @@
|
|
30
30
|
.select2-search-choice-close {
|
31
31
|
@extend .fa;
|
32
32
|
@extend .fa-times;
|
33
|
+
display: none;
|
33
34
|
margin-top: 2px;
|
34
35
|
font-size: 100% !important;
|
35
36
|
background-image: none !important;
|
@@ -111,7 +112,8 @@
|
|
111
112
|
}
|
112
113
|
|
113
114
|
.select2-results {
|
114
|
-
|
115
|
+
margin: 4px 0;
|
116
|
+
padding: 0 4px;
|
115
117
|
|
116
118
|
li {
|
117
119
|
font-size: 85% !important;
|
@@ -123,7 +125,7 @@
|
|
123
125
|
|
124
126
|
&.select2-highlighted {
|
125
127
|
.select2-result-label {
|
126
|
-
&,
|
128
|
+
&, .media-heading, .media-content, .customer-email {
|
127
129
|
color: $color-1 !important;
|
128
130
|
}
|
129
131
|
}
|
@@ -134,6 +136,14 @@
|
|
134
136
|
min-height: 22px;
|
135
137
|
clear: both;
|
136
138
|
overflow: auto;
|
139
|
+
|
140
|
+
.variant-autocomplete-item {
|
141
|
+
.media-content {
|
142
|
+
dd {
|
143
|
+
margin: 0;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
137
147
|
}
|
138
148
|
|
139
149
|
&.select2-no-results, &.select2-searching {
|
@@ -142,7 +152,6 @@
|
|
142
152
|
color: $color-body-text;
|
143
153
|
text-align: center;
|
144
154
|
font-weight: $font-weight-bold;
|
145
|
-
text-transform: uppercase;
|
146
155
|
}
|
147
156
|
}
|
148
157
|
|
@@ -1,12 +1,31 @@
|
|
1
|
-
[data-hook="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
padding
|
1
|
+
[data-hook="admin_products_index_search"] {
|
2
|
+
@include make-row();
|
3
|
+
|
4
|
+
> * {
|
5
|
+
@include make-col();
|
6
|
+
@include padding(0 null); // override the padding on .field
|
7
7
|
}
|
8
8
|
}
|
9
9
|
|
10
|
+
.product-search-field-name {
|
11
|
+
@include make-col-span(6);
|
12
|
+
}
|
13
|
+
|
14
|
+
.product-search-field-sku {
|
15
|
+
@include make-col-span(4);
|
16
|
+
}
|
17
|
+
|
18
|
+
.product-search-field-show-deleted.field.checkbox {
|
19
|
+
// extra specificity to override styles
|
20
|
+
@include make-col-span(2);
|
21
|
+
min-height: initial; // override .field.checkbox
|
22
|
+
margin-bottom: 0; // override .checkbox
|
23
|
+
}
|
24
|
+
|
25
|
+
div[data-hook="admin_products_index_search_buttons"] {
|
26
|
+
margin-top: 2rem;
|
27
|
+
}
|
28
|
+
|
10
29
|
[data-hook="admin_product_form_fields"] {
|
11
30
|
label {
|
12
31
|
display: inline-block;
|
@@ -28,7 +47,6 @@
|
|
28
47
|
|
29
48
|
.outstanding-balance {
|
30
49
|
margin-bottom: 15px;
|
31
|
-
text-transform: uppercase;
|
32
50
|
|
33
51
|
strong {
|
34
52
|
color: $color-2;
|
@@ -72,8 +72,7 @@ textarea {
|
|
72
72
|
|
73
73
|
label {
|
74
74
|
font-weight: $font-weight-bold;
|
75
|
-
|
76
|
-
font-size: 85%;
|
75
|
+
font-size: 90%;
|
77
76
|
display: inline;
|
78
77
|
margin-bottom: 5px;
|
79
78
|
color: $color-4;
|
@@ -97,14 +96,14 @@ input[type="submit"],
|
|
97
96
|
input[type="button"],
|
98
97
|
button, .button {
|
99
98
|
display: inline-block;
|
100
|
-
padding:
|
99
|
+
padding: 6px 15px;
|
101
100
|
border: none;
|
102
101
|
border-radius: $border-radius;
|
103
102
|
background-color: $color-btn-bg;
|
104
103
|
color: $color-btn-text;
|
105
|
-
text-transform: uppercase;
|
106
104
|
font-weight: $font-weight-bold !important;
|
107
105
|
white-space: nowrap;
|
106
|
+
line-height: $line-height;
|
108
107
|
|
109
108
|
&:before {
|
110
109
|
font-weight: normal !important;
|
@@ -228,9 +227,8 @@ fieldset {
|
|
228
227
|
legend {
|
229
228
|
background-color: $color-1;
|
230
229
|
color: $color-2;
|
231
|
-
font-size:
|
230
|
+
font-size: 16px;
|
232
231
|
font-weight: $font-weight-bold;
|
233
|
-
text-transform: uppercase;
|
234
232
|
text-align: center;
|
235
233
|
padding: 8px 15px;
|
236
234
|
width: auto;
|
@@ -1,10 +1,13 @@
|
|
1
1
|
.main-header {
|
2
2
|
@include display(flex);
|
3
3
|
@include align-items(center);
|
4
|
-
|
5
|
-
padding: 15px 14px;
|
4
|
+
padding: 15px $grid-gutter-width;
|
6
5
|
background-color: very-light($color-3, 4);
|
7
6
|
border-bottom: 1px solid $color-border;
|
7
|
+
|
8
|
+
body:not(.new-layout) & {
|
9
|
+
margin-left: $width-sidebar;
|
10
|
+
}
|
8
11
|
}
|
9
12
|
|
10
13
|
.page-title {
|
@@ -5,6 +5,10 @@ html {
|
|
5
5
|
body {
|
6
6
|
position: relative;
|
7
7
|
min-height: 100%;
|
8
|
+
|
9
|
+
&.new-layout {
|
10
|
+
padding-left: $width-sidebar;
|
11
|
+
}
|
8
12
|
}
|
9
13
|
|
10
14
|
.admin-nav {
|
@@ -12,9 +16,38 @@ body {
|
|
12
16
|
width: $width-sidebar;
|
13
17
|
}
|
14
18
|
|
15
|
-
.
|
16
|
-
|
17
|
-
|
19
|
+
.content-wrapper {
|
20
|
+
body:not(.new-layout) & {
|
21
|
+
margin-left: $width-sidebar;
|
22
|
+
}
|
23
|
+
|
24
|
+
body.new-layout & {
|
25
|
+
@include padding(1rem $grid-gutter-width null);
|
26
|
+
}
|
27
|
+
|
28
|
+
&.centered {
|
29
|
+
@include margin(null auto);
|
30
|
+
max-width: map-get($container-max-widths, "xl");
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.content {
|
35
|
+
@include make-row();
|
36
|
+
}
|
37
|
+
|
38
|
+
.content-main {
|
39
|
+
@include make-col();
|
40
|
+
@include make-col-span(12);
|
41
|
+
overflow-x: hidden; // makes sure that the tabs are able to resize
|
42
|
+
|
43
|
+
.has-sidebar & {
|
44
|
+
@include make-col-span(9);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.content-sidebar {
|
49
|
+
@include make-col();
|
50
|
+
@include make-col-span(3);
|
18
51
|
}
|
19
52
|
|
20
53
|
#content {
|