solidus_backend 2.3.1 → 2.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/app/assets/javascripts/spree/backend/admin.js +0 -12
- data/app/assets/javascripts/spree/backend/number_field_updater.coffee +5 -5
- data/app/assets/javascripts/spree/backend/shipments.js +16 -14
- data/app/assets/javascripts/spree/backend/stock_transfers/count_update_forms.coffee +3 -3
- data/app/assets/javascripts/spree/backend/stock_transfers/transfer_item_deleting.coffee +1 -1
- data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +1 -1
- data/app/assets/javascripts/spree/backend/templates/orders/details_adjustment_row.hbs +2 -2
- data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +3 -3
- data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs +5 -5
- data/app/assets/javascripts/spree/backend/templates/stock_transfers/transfer_item.hbs +5 -5
- data/app/assets/javascripts/spree/backend/templates/taxons/_tree.hbs +7 -3
- 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 +2 -2
- data/app/assets/javascripts/spree/backend/views/order/customer_details.js +1 -2
- data/app/assets/javascripts/spree/backend.js +1 -1
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +27 -906
- data/app/assets/stylesheets/spree/backend/components/_actions.scss +13 -15
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_editable_table.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_messages.scss +8 -8
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_number_field_update.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_number_with_currency.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_pills.scss +92 -0
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +7 -32
- data/app/assets/stylesheets/spree/backend/components/_states.scss +5 -27
- data/app/assets/stylesheets/spree/backend/components/_stock_table.scss +0 -12
- data/app/assets/stylesheets/spree/backend/globals/_variables.scss +58 -139
- data/app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss +11 -15
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +7 -5
- data/app/assets/stylesheets/spree/backend/sections/_orders.scss +6 -6
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +5 -1
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +4 -2
- data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +4 -35
- data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +14 -15
- data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +9 -16
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +23 -20
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +1 -5
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +3 -23
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +40 -92
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +6 -6
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -1
- data/app/controllers/spree/admin/adjustments_controller.rb +1 -1
- data/app/controllers/spree/admin/customer_returns_controller.rb +0 -1
- data/app/controllers/spree/admin/promotion_actions_controller.rb +1 -1
- data/app/controllers/spree/admin/shipping_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/style_guide_controller.rb +3 -2
- data/app/controllers/spree/admin/tax_rates_controller.rb +1 -1
- data/app/controllers/spree/admin/users_controller.rb +9 -4
- data/app/helpers/spree/admin/base_helper.rb +32 -35
- data/app/helpers/spree/admin/stock_transfers_helper.rb +0 -4
- data/app/models/spree/backend_configuration.rb +1 -1
- data/app/views/spree/admin/adjustment_reasons/index.html.erb +6 -4
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +5 -5
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +7 -7
- data/app/views/spree/admin/cancellations/index.html.erb +9 -5
- data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +6 -3
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +12 -7
- data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +13 -8
- data/app/views/spree/admin/customer_returns/edit.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +5 -5
- data/app/views/spree/admin/images/_image_row.html.erb +14 -4
- data/app/views/spree/admin/images/index.html.erb +2 -1
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +6 -6
- data/app/views/spree/admin/option_types/edit.html.erb +2 -1
- data/app/views/spree/admin/option_types/index.html.erb +5 -5
- data/app/views/spree/admin/orders/_adjustments.html.erb +3 -3
- data/app/views/spree/admin/orders/_carton.html.erb +1 -1
- data/app/views/spree/admin/orders/_carton_manifest.html.erb +3 -3
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +18 -16
- data/app/views/spree/admin/orders/_shipment.html.erb +26 -30
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +6 -6
- data/app/views/spree/admin/orders/confirm/_line_items.html.erb +3 -3
- data/app/views/spree/admin/orders/confirm/_payments.html.erb +6 -6
- data/app/views/spree/admin/orders/confirm/_shipment.html.erb +1 -1
- data/app/views/spree/admin/orders/confirm/_shipment_manifest.html.erb +3 -3
- data/app/views/spree/admin/orders/index.html.erb +25 -9
- data/app/views/spree/admin/payment_methods/_form.html.erb +4 -1
- data/app/views/spree/admin/payment_methods/index.html.erb +11 -7
- data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
- data/app/views/spree/admin/payments/_list.html.erb +9 -5
- data/app/views/spree/admin/payments/show.html.erb +2 -2
- data/app/views/spree/admin/prices/_master_variant_table.html.erb +2 -2
- data/app/views/spree/admin/prices/_table.html.erb +2 -2
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +4 -2
- data/app/views/spree/admin/products/index.html.erb +10 -9
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +1 -1
- data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +3 -6
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +3 -8
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +3 -8
- data/app/views/spree/admin/promotions/index.html.erb +24 -17
- data/app/views/spree/admin/promotions/rules/_user_role.html.erb +2 -2
- data/app/views/spree/admin/properties/index.html.erb +3 -3
- data/app/views/spree/admin/refund_reasons/index.html.erb +7 -5
- data/app/views/spree/admin/refunds/new.html.erb +1 -1
- data/app/views/spree/admin/reimbursement_types/index.html.erb +2 -2
- data/app/views/spree/admin/reimbursements/edit.html.erb +6 -6
- data/app/views/spree/admin/reimbursements/index.html.erb +9 -2
- data/app/views/spree/admin/reimbursements/show.html.erb +6 -6
- data/app/views/spree/admin/reports/index.html.erb +2 -2
- data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/_form.html.erb +9 -5
- data/app/views/spree/admin/return_authorizations/edit.html.erb +9 -2
- data/app/views/spree/admin/return_authorizations/index.html.erb +11 -4
- data/app/views/spree/admin/search/products.json.jbuilder +10 -0
- data/app/views/spree/admin/search/users.json.jbuilder +37 -0
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -1
- data/app/views/spree/admin/shared/_modal.html.erb +18 -0
- data/app/views/spree/admin/shared/_number_field_update_actions.html.erb +2 -2
- data/app/views/spree/admin/shared/_number_field_update_cell.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_summary.html.erb +21 -5
- data/app/views/spree/admin/shared/_refunds.html.erb +6 -6
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +4 -4
- data/app/views/spree/admin/shared/named_types/_index.html.erb +7 -5
- data/app/views/spree/admin/shared/preference_fields/_boolean.html.erb +13 -0
- data/app/views/spree/admin/shared/preference_fields/_decimal.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_integer.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_password.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_string.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_text.html.erb +12 -0
- data/app/views/spree/admin/shipping_categories/index.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
- data/app/views/spree/admin/stock_items/_stock_management.html.erb +3 -3
- data/app/views/spree/admin/stock_locations/index.html.erb +9 -11
- data/app/views/spree/admin/stock_movements/index.html.erb +4 -4
- data/app/views/spree/admin/stock_transfers/_transfer_item_actions.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +2 -2
- data/app/views/spree/admin/stock_transfers/index.html.erb +10 -6
- data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +1 -1
- data/app/views/spree/admin/store_credits/index.html.erb +53 -50
- data/app/views/spree/admin/store_credits/show.html.erb +5 -5
- data/app/views/spree/admin/stores/_form.html.erb +9 -0
- data/app/views/spree/admin/style_guide/topics/components/_modals.html.erb +50 -0
- data/app/views/spree/admin/style_guide/topics/components/_pills.html.erb +101 -0
- data/app/views/spree/admin/style_guide/topics/tables/_building_tables.html.erb +4 -4
- data/app/views/spree/admin/tax_categories/index.html.erb +5 -5
- data/app/views/spree/admin/tax_rates/index.html.erb +9 -9
- data/app/views/spree/admin/taxonomies/_list.html.erb +4 -4
- data/app/views/spree/admin/taxons/search.json.jbuilder +5 -0
- data/app/views/spree/admin/users/index.html.erb +64 -23
- data/app/views/spree/admin/users/items.html.erb +9 -13
- data/app/views/spree/admin/users/orders.html.erb +28 -12
- data/app/views/spree/admin/variants/_table.html.erb +6 -5
- data/app/views/spree/admin/variants/index.html.erb +12 -16
- data/app/views/spree/admin/variants/new.html.erb +1 -3
- data/app/views/spree/admin/zones/edit.html.erb +0 -3
- data/app/views/spree/admin/zones/index.html.erb +2 -6
- data/app/views/spree/admin/zones/new.html.erb +0 -3
- data/app/views/spree/layouts/admin.html.erb +9 -30
- data/config/routes.rb +0 -4
- data/lib/spree/backend.rb +2 -1
- data/solidus_backend.gemspec +3 -1
- data/spec/controllers/spree/admin/orders_controller_spec.rb +0 -5
- data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
- data/spec/features/admin/configuration/payment_methods_spec.rb +1 -1
- data/spec/features/admin/configuration/zones_spec.rb +1 -1
- data/spec/features/admin/orders/adjustments_spec.rb +1 -1
- data/spec/features/admin/orders/cancelling_and_resuming_spec.rb +4 -4
- data/spec/features/admin/orders/cancelling_inventory_spec.rb +1 -1
- data/spec/features/admin/orders/customer_details_spec.rb +8 -1
- data/spec/features/admin/orders/listing_spec.rb +1 -1
- data/spec/features/admin/orders/new_order_spec.rb +3 -3
- data/spec/features/admin/orders/order_details_spec.rb +17 -16
- data/spec/features/admin/orders/payments_spec.rb +4 -4
- data/spec/features/admin/orders/risk_analysis_spec.rb +2 -2
- data/spec/features/admin/orders/shipments_spec.rb +1 -1
- data/spec/features/admin/products/edit/images_spec.rb +1 -1
- data/spec/features/admin/store_credits_spec.rb +3 -3
- data/spec/features/admin/stores_spec.rb +35 -0
- data/spec/features/admin/users_spec.rb +60 -13
- data/spec/spec_helper.rb +9 -4
- data/vendor/assets/javascripts/solidus_admin/bootstrap.js +657 -361
- data/vendor/assets/javascripts/solidus_admin/popover.js +4 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_alert.scss +4 -11
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_badge.scss +4 -33
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_breadcrumb.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_button-group.scss +11 -15
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_buttons.scss +13 -42
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_card.scss +27 -80
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_carousel.scss +24 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_close.scss +0 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom-forms.scss +27 -36
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_dropdown.scss +15 -48
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_forms.scss +70 -68
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_functions.scss +90 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_grid.scss +3 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_images.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_input-group.scss +6 -8
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_jumbotron.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_list-group.scss +9 -36
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_media.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_mixins.scss +2 -18
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_modal.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss +15 -16
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_navbar.scss +70 -54
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +3 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_popover.scss +96 -72
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_print.scss +1 -9
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_progress.scss +4 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_reboot.scss +187 -95
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tables.scss +34 -19
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tooltip.scss +52 -35
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_type.scss +8 -28
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_utilities.scss +1 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_variables.scss +286 -410
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-grid.scss +2 -8
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-reboot.scss +1 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap.scss +2 -15
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_alert.scss +4 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_badge.scss +6 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_border-radius.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_box-shadow.scss +5 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_breakpoints.scss +23 -13
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_buttons.scss +11 -14
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_clearfix.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_forms.scss +57 -55
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_gradients.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid-framework.scss +9 -18
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid.scss +12 -65
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss +6 -6
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_list-group.scss +2 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_nav-divider.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_pagination.scss +1 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_reset-text.scss +4 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_resize.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss +5 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_text-truncate.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transition.scss +9 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_visibility.scss +2 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_background.scss +4 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_borders.scss +20 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_display.scss +36 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +0 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_flex.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_position.scss +5 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss +10 -12
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_text.scss +5 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_visibility.scss +4 -48
- metadata +73 -34
- data/app/assets/stylesheets/spree/backend/shared/_skeleton.scss +0 -242
- data/app/controllers/spree/admin/countries_controller.rb +0 -9
- data/app/controllers/spree/admin/states_controller.rb +0 -29
- data/app/helpers/spree/admin/reimbursements_helper.rb +0 -14
- data/app/views/spree/admin/countries/_form.html.erb +0 -22
- data/app/views/spree/admin/countries/edit.html.erb +0 -19
- data/app/views/spree/admin/countries/index.html.erb +0 -49
- data/app/views/spree/admin/countries/new.html.erb +0 -18
- data/app/views/spree/admin/search/products.rabl +0 -9
- data/app/views/spree/admin/search/users.rabl +0 -30
- data/app/views/spree/admin/shared/_areas_tabs.html.erb +0 -19
- data/app/views/spree/admin/states/_form.html.erb +0 -14
- data/app/views/spree/admin/states/_state_list.html.erb +0 -33
- data/app/views/spree/admin/states/edit.html.erb +0 -19
- data/app/views/spree/admin/states/index.html.erb +0 -39
- data/app/views/spree/admin/states/new.html.erb +0 -17
- data/app/views/spree/admin/style_guide/topics/typography/_tags.html.erb +0 -25
- data/app/views/spree/admin/taxons/search.rabl +0 -5
- data/app/views/spree/admin/variants/new.js.erb +0 -1
- data/spec/features/admin/configuration/countries_spec.rb +0 -22
- data/spec/features/admin/configuration/states_spec.rb +0 -64
- data/spec/helpers/admin/reimbursements_helper_spec.rb +0 -34
- data/vendor/assets/javascripts/solidus_admin/tether.js +0 -1726
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_normalize.scss +0 -461
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_cards.scss +0 -47
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transforms.scss +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 148c53ce6a46afe15947d57805fb318d8ed920d1
|
4
|
+
data.tar.gz: 1c23abb395e91434d1fd502ec0a699bacbd170d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a79ea6b8190d67af09c4001d2c10f7bbc72518ad8e3fd28c9a53b753467bdee145adf42e97933df89ad6603cfc530a567b55efd10dad6983442749628a0330
|
7
|
+
data.tar.gz: 7534be6e10ce9ccc30082ef98ddeb12b139004468359966d9956cc29fa210d759143537717616575e9e56655b64fced1d9ca81c6c7bb8f341cc0ff813c37de85
|
@@ -69,18 +69,6 @@ var handle_date_picker_fields = function(){
|
|
69
69
|
|
70
70
|
$(document).ready(function(){
|
71
71
|
handle_date_picker_fields();
|
72
|
-
$(".observe_field").on('change', function() {
|
73
|
-
var target = $(this).data("update");
|
74
|
-
$(target).hide();
|
75
|
-
Spree.ajax({ dataType: 'html',
|
76
|
-
url: $(this).data("base-url")+encodeURIComponent($(this).val()),
|
77
|
-
type: 'get',
|
78
|
-
success: function(data){
|
79
|
-
$(target).html(data);
|
80
|
-
$(target).show();
|
81
|
-
}
|
82
|
-
});
|
83
|
-
});
|
84
72
|
var uniqueId = 1;
|
85
73
|
$('.spree_add_fields').click(function() {
|
86
74
|
var target = $(this).data("target");
|
@@ -19,19 +19,19 @@ class NumberFieldUpdater
|
|
19
19
|
|
20
20
|
toggleReadOnly = (id, show) ->
|
21
21
|
toggleButtonVisibility('edit', id, show)
|
22
|
-
toggleButtonVisibility('
|
22
|
+
toggleButtonVisibility('remove', id, show)
|
23
23
|
cssDisplay = if show then 'block' else 'none'
|
24
24
|
$("#number-update-#{id} span").css('display', cssDisplay)
|
25
25
|
|
26
26
|
toggleForm = (id, show) ->
|
27
|
-
toggleButtonVisibility('
|
28
|
-
toggleButtonVisibility('
|
27
|
+
toggleButtonVisibility('cancel', id, show)
|
28
|
+
toggleButtonVisibility('save', id, show)
|
29
29
|
cssDisplay = if show then 'block' else 'none'
|
30
30
|
$("#number-update-#{id} input[type='number']").css('display', cssDisplay)
|
31
31
|
|
32
|
-
toggleButtonVisibility = (
|
32
|
+
toggleButtonVisibility = (buttonAction, id, show) ->
|
33
33
|
cssDisplay = if show then 'inline-block' else 'none'
|
34
|
-
$("
|
34
|
+
$("[data-action='#{buttonAction}'][data-id='#{id}']").css('display', cssDisplay)
|
35
35
|
|
36
36
|
resetInput = (id) ->
|
37
37
|
tableCell = $("#number-update-#{id}")
|
@@ -189,8 +189,12 @@ var ShipmentSplitItemView = Backbone.View.extend({
|
|
189
189
|
}
|
190
190
|
jqXHR.error(function(msg) {
|
191
191
|
alert(Spree.t("split_failed"));
|
192
|
-
}).done(function() {
|
193
|
-
|
192
|
+
}).done(function(response) {
|
193
|
+
if (response.success) {
|
194
|
+
window.Spree.advanceOrder();
|
195
|
+
} else {
|
196
|
+
alert(response.message);
|
197
|
+
};
|
194
198
|
});
|
195
199
|
},
|
196
200
|
|
@@ -224,8 +228,8 @@ var ShipmentItemView = Backbone.View.extend({
|
|
224
228
|
},
|
225
229
|
|
226
230
|
events: {
|
227
|
-
"click .delete-item": "onDelete",
|
228
|
-
"click .split-item": "onSplit",
|
231
|
+
"click button.delete-item": "onDelete",
|
232
|
+
"click button.split-item": "onSplit",
|
229
233
|
},
|
230
234
|
|
231
235
|
removeSplit: function() {
|
@@ -286,13 +290,13 @@ var ShipmentEditView = Backbone.View.extend({
|
|
286
290
|
},
|
287
291
|
|
288
292
|
events: {
|
289
|
-
"click
|
290
|
-
"click
|
291
|
-
"click
|
293
|
+
"click button.edit-method": "toggleMethodEdit",
|
294
|
+
"click button.cancel-method": "toggleMethodEdit",
|
295
|
+
"click button.save-method": "saveMethod",
|
292
296
|
|
293
|
-
"click
|
294
|
-
"click
|
295
|
-
"click
|
297
|
+
"click button.edit-tracking": "toggleTrackingEdit",
|
298
|
+
"click button.cancel-tracking": "toggleTrackingEdit",
|
299
|
+
"click button.save-tracking": "saveTracking",
|
296
300
|
},
|
297
301
|
|
298
302
|
toggleMethodEdit: function(e){
|
@@ -328,10 +332,8 @@ var ShipmentEditView = Backbone.View.extend({
|
|
328
332
|
|
329
333
|
var show = _this.$('tr.show-tracking');
|
330
334
|
show.toggle()
|
331
|
-
|
332
|
-
|
333
|
-
.html(Spree.translations.tracking + ": "))
|
334
|
-
.append(document.createTextNode(data.tracking));
|
335
|
+
.find('.tracking-value')
|
336
|
+
.text(data.tracking);
|
335
337
|
});
|
336
338
|
}
|
337
339
|
});
|
@@ -1,21 +1,21 @@
|
|
1
1
|
class CountUpdateForms
|
2
2
|
@beginListening: (isReceiving) ->
|
3
3
|
# Edit
|
4
|
-
$('body').on 'click', '#listing_transfer_items
|
4
|
+
$('body').on 'click', '#listing_transfer_items [data-action="edit"]', (ev) =>
|
5
5
|
ev.preventDefault()
|
6
6
|
transferItemId = $(ev.currentTarget).data('id')
|
7
7
|
Spree.NumberFieldUpdater.hideReadOnly(transferItemId)
|
8
8
|
Spree.NumberFieldUpdater.showForm(transferItemId)
|
9
9
|
|
10
10
|
# Cancel
|
11
|
-
$('body').on 'click', '#listing_transfer_items
|
11
|
+
$('body').on 'click', '#listing_transfer_items [data-action="cancel"]', (ev) =>
|
12
12
|
ev.preventDefault()
|
13
13
|
transferItemId = $(ev.currentTarget).data('id')
|
14
14
|
Spree.NumberFieldUpdater.hideForm(transferItemId)
|
15
15
|
Spree.NumberFieldUpdater.showReadOnly(transferItemId)
|
16
16
|
|
17
17
|
# Submit
|
18
|
-
$('body').on 'click', '#listing_transfer_items
|
18
|
+
$('body').on 'click', '#listing_transfer_items [data-action="save"]', (ev) =>
|
19
19
|
ev.preventDefault()
|
20
20
|
transferItemId = $(ev.currentTarget).data('id')
|
21
21
|
stockTransferNumber = $("#stock_transfer_number").val()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class TransferItemDeleting
|
2
2
|
@beginListening: ->
|
3
|
-
$('body').on 'click', '#listing_transfer_items
|
3
|
+
$('body').on 'click', '#listing_transfer_items [data-action="remove"]', (ev) =>
|
4
4
|
ev.preventDefault()
|
5
5
|
if confirm(Spree.translations.are_you_sure_delete)
|
6
6
|
transferItemId = $(ev.currentTarget).data('id')
|
@@ -44,7 +44,7 @@ TaxonTreeView = Backbone.View.extend
|
|
44
44
|
})
|
45
45
|
|
46
46
|
resize_placeholder: (e, ui) ->
|
47
|
-
handleHeight = ui.helper.find('.
|
47
|
+
handleHeight = ui.helper.find('.taxon').outerHeight()
|
48
48
|
ui.placeholder.height(handleHeight)
|
49
49
|
|
50
50
|
restore_sort_targets: ->
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<strong>{{ t "sku" }}:</strong> {{ line_item.variant.sku }}
|
15
15
|
</td>
|
16
16
|
{{/if}}
|
17
|
-
<td class="line-item-price
|
17
|
+
<td class="line-item-price">
|
18
18
|
{{ line_item.single_display_amount }}
|
19
19
|
</td>
|
20
20
|
{{#if editing}}
|
@@ -22,11 +22,11 @@
|
|
22
22
|
<input type="number" name="quantity" value="{{ line_item.quantity }}" min="0" class="line_item_quantity" size="5">
|
23
23
|
</td>
|
24
24
|
{{else}}
|
25
|
-
<td class="line-item-qty-show
|
25
|
+
<td class="line-item-qty-show">
|
26
26
|
{{ line_item.quantity }}
|
27
27
|
</td>
|
28
28
|
{{/if}}
|
29
|
-
<td class="line-item-total
|
29
|
+
<td class="line-item-total">
|
30
30
|
{{ line_item.display_amount }}
|
31
31
|
</td>
|
32
32
|
<td class="cart-line-item-delete actions" data-hook="cart_line_item_delete">
|
data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<td
|
2
|
-
<td
|
1
|
+
<td>{{stockLocationName}}</td>
|
2
|
+
<td>
|
3
3
|
<input id="backorderable-{{id}}"
|
4
4
|
name="backorderable"
|
5
5
|
type="checkbox"
|
@@ -8,7 +8,7 @@
|
|
8
8
|
{{#if backorderable}} checked="checked" {{/if}}
|
9
9
|
>
|
10
10
|
</td>
|
11
|
-
<td
|
11
|
+
<td>
|
12
12
|
{{#if editing}}
|
13
13
|
<input class="fullwidth" name="count_on_hand" type="number" value="{{count_on_hand}}">
|
14
14
|
{{else}}
|
@@ -17,8 +17,8 @@
|
|
17
17
|
</td>
|
18
18
|
<td class="actions">
|
19
19
|
{{#if editing}}
|
20
|
-
<a class="submit fa fa-check icon_link with-tip no-text" data-action="
|
21
|
-
<a class="cancel fa fa-
|
20
|
+
<a class="submit fa fa-check icon_link with-tip no-text" data-action="save" href="#"></a>
|
21
|
+
<a class="cancel fa fa-cancel icon_link with-tip no-text" data-action="cancel" href="#"></a>
|
22
22
|
{{else}}
|
23
23
|
<a class="edit fa fa-edit icon_link with-tip no-text" data-action="edit" href="#"></a>
|
24
24
|
{{/if}}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<tr class='new-row' data-transfer-item-id="{{id}}">
|
2
|
-
<td class="
|
2
|
+
<td class="no-padding">
|
3
3
|
<div class='variant-container' data-variant-id="{{variantId}}">
|
4
4
|
<div class='variant-image'>
|
5
5
|
{{> _image image=variantImage size="small" alt=variantName }}
|
@@ -18,7 +18,7 @@
|
|
18
18
|
</div>
|
19
19
|
</div>
|
20
20
|
</td>
|
21
|
-
<td
|
21
|
+
<td>
|
22
22
|
<table class='stock-variant-field-table'>
|
23
23
|
{{#each variantOptions}}
|
24
24
|
<tr>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
{{/each}}
|
29
29
|
</table>
|
30
30
|
</td>
|
31
|
-
<td
|
31
|
+
<td id="number-update-{{id}}">
|
32
32
|
{{#if isReceiving }}
|
33
33
|
<span class='js-number-update-text'>{{receivedQuantity}}</span>
|
34
34
|
<input class="fullwidth js-number-update-input" name="received_quantity" type="number" value="">
|
@@ -39,8 +39,8 @@
|
|
39
39
|
</td>
|
40
40
|
<td class="actions">
|
41
41
|
<a class="fa fa-edit icon_link with-tip no-text" data-action="edit" data-id="{{id}}" href="#"></a>
|
42
|
-
<a class="fa fa-check icon_link with-tip no-text" data-action="
|
43
|
-
<a class="fa fa-
|
42
|
+
<a class="fa fa-check icon_link with-tip no-text" data-action="save" data-id="{{id}}" href="#"></a>
|
43
|
+
<a class="fa fa-cancel icon_link with-tip no-text" data-action="cancel" data-id="{{id}}" href="#"></a>
|
44
44
|
{{#unless isReceiving }}
|
45
45
|
<a class="fa fa-trash icon_link with-tip no-text" data-action="remove" data-id="{{id}}" href="#"></a>
|
46
46
|
{{/unless}}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
{{#each taxons}}
|
2
2
|
<li data-taxon-id="{{id}}" data-taxon-taxonomy-id="{{taxonomy_id}}">
|
3
|
-
|
4
|
-
|
3
|
+
{{#if (isRootTaxon) }}
|
4
|
+
<div class="taxon">
|
5
|
+
{{else}}
|
6
|
+
<div class="taxon sortable">
|
7
|
+
<i class="fa fa-arrows"></i>
|
8
|
+
{{/if}}
|
5
9
|
{{name}}
|
6
|
-
<div class="actions right">
|
10
|
+
<div class="actions float-right">
|
7
11
|
<a href="#" class="js-taxon-add-child fa fa-plus icon_link no-text"></a>
|
8
12
|
<a href="{{admin_url}}/taxonomies/{{taxonomy_id}}/taxons/{{id}}/edit" class="fa fa-edit icon_link no-text"></a>
|
9
13
|
<a href="#" class="js-taxon-delete fa fa-trash icon_link no-text"></a>
|
data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
<fieldset class="no-border-bottom">
|
22
22
|
<legend align="center" class="stock-location">
|
23
|
-
<button class="add_variant"
|
23
|
+
<button class="add_variant" title="{{ t "add" }}" data-action="add">{{ t "add" }}</button>
|
24
24
|
</legend>
|
25
25
|
</fieldset>
|
26
26
|
</fieldset>
|
@@ -20,6 +20,6 @@
|
|
20
20
|
<input class="quantity" id="item_quantity" type="number" min="1" value="1" max="{{max_quantity}}">
|
21
21
|
</td>
|
22
22
|
<td class='actions'>
|
23
|
-
<
|
24
|
-
<
|
23
|
+
<button class="save-split icon_link fa fa-ok no-text with-tip" data-action="save" title="{{ t "save" }}" data-original-title="{{ t "save" }}"></button>
|
24
|
+
<button class="cancel-split icon_link fa fa-cancel no-text with-tip" data-action="cancel" title="{{ t "cancel" }}" data-original-title="{{ t "cancel" }}"></button>
|
25
25
|
</td>
|
@@ -53,7 +53,7 @@ Spree.Views.Order.CustomerDetails = Backbone.View.extend({
|
|
53
53
|
},
|
54
54
|
|
55
55
|
render: function() {
|
56
|
-
var user_id = this.model.get("user_id")
|
56
|
+
var user_id = this.model.get("user_id") || $("#user_id").val()
|
57
57
|
this.$("#user_id").val(user_id);
|
58
58
|
this.$('#guest_checkout_true')
|
59
59
|
.prop("checked", !user_id);
|
@@ -65,4 +65,3 @@ Spree.Views.Order.CustomerDetails = Backbone.View.extend({
|
|
65
65
|
this.$('#order_email').val(this.model.get("email"))
|
66
66
|
}
|
67
67
|
})
|
68
|
-
|
@@ -10,7 +10,7 @@
|
|
10
10
|
//= require solidus_admin/underscore
|
11
11
|
//= require solidus_admin/backbone
|
12
12
|
//= require solidus_admin/backbone-nested-models
|
13
|
-
//= require solidus_admin/
|
13
|
+
//= require solidus_admin/popover
|
14
14
|
//= require solidus_admin/bootstrap
|
15
15
|
//= require prism
|
16
16
|
//= require spree
|