solidus_backend 2.9.5 → 2.10.2

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.

Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/backend.js +1 -0
  3. data/app/assets/javascripts/spree/backend/components/admin_nav.js +24 -0
  4. data/app/assets/javascripts/spree/backend/components/tabs.js +1 -1
  5. data/app/assets/javascripts/spree/backend/models/order.js +9 -0
  6. data/app/assets/javascripts/spree/backend/orders/cart.js +6 -0
  7. data/app/assets/javascripts/spree/backend/shipments.js +0 -62
  8. data/app/assets/javascripts/spree/backend/templates/index.js +0 -1
  9. data/app/assets/javascripts/spree/backend/views/cart/empty_cart_button.js +29 -0
  10. data/app/assets/javascripts/spree/backend/views/cart/line_item_table.js +5 -0
  11. data/app/assets/javascripts/spree/backend/views/index.js +1 -0
  12. data/app/assets/javascripts/spree/backend/views/order/address.js +7 -5
  13. data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +2 -0
  14. data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +3 -3
  15. data/app/assets/stylesheets/spree/backend/components/_messages.scss +4 -0
  16. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +182 -49
  17. data/app/assets/stylesheets/spree/backend/globals/{_mixins.css → _mixins.scss} +0 -0
  18. data/app/assets/stylesheets/spree/backend/globals/_variables.scss +2 -0
  19. data/app/assets/stylesheets/spree/backend/shared/_header.scss +5 -1
  20. data/app/assets/stylesheets/spree/backend/shared/_layout.scss +0 -9
  21. data/app/controllers/spree/admin/adjustments_controller.rb +1 -1
  22. data/app/controllers/spree/admin/base_controller.rb +1 -1
  23. data/app/controllers/spree/admin/orders_controller.rb +2 -2
  24. data/app/controllers/spree/admin/payment_methods_controller.rb +4 -4
  25. data/app/controllers/spree/admin/payments_controller.rb +2 -2
  26. data/app/controllers/spree/admin/product_properties_controller.rb +1 -1
  27. data/app/controllers/spree/admin/products_controller.rb +2 -2
  28. data/app/controllers/spree/admin/resource_controller.rb +13 -4
  29. data/app/controllers/spree/admin/style_guide_controller.rb +1 -1
  30. data/app/controllers/spree/admin/taxons/attachment_controller.rb +20 -0
  31. data/app/controllers/spree/admin/users_controller.rb +6 -2
  32. data/app/helpers/spree/admin/navigation_helper.rb +3 -2
  33. data/app/helpers/spree/promotion_rules_helper.rb +1 -1
  34. data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
  35. data/app/views/spree/admin/option_types/edit.html.erb +1 -1
  36. data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +1 -0
  37. data/app/views/spree/admin/orders/edit.html.erb +3 -4
  38. data/app/views/spree/admin/payment_methods/new.html.erb +1 -1
  39. data/app/views/spree/admin/prices/_master_variant_table.html.erb +41 -41
  40. data/app/views/spree/admin/promotion_code_batches/new.html.erb +1 -1
  41. data/app/views/spree/admin/promotion_codes/new.html.erb +1 -1
  42. data/app/views/spree/admin/promotions/_actions.html.erb +1 -0
  43. data/app/views/spree/admin/promotions/index.html.erb +1 -1
  44. data/app/views/spree/admin/return_authorizations/new.html.erb +1 -1
  45. data/app/views/spree/admin/shared/_calculator_fields.html.erb +5 -0
  46. data/app/views/spree/admin/shared/_navigation.html.erb +3 -0
  47. data/app/views/spree/admin/shared/_new_resource_links.html.erb +1 -1
  48. data/app/views/spree/admin/shared/_order_submenu.html.erb +2 -2
  49. data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +1 -1
  50. data/app/views/spree/admin/shipping_methods/_form.html.erb +1 -1
  51. data/app/views/spree/admin/stock_locations/index.html.erb +1 -1
  52. data/app/views/spree/admin/store_credit_reasons/index.html.erb +1 -1
  53. data/app/views/spree/admin/store_credits/index.html.erb +1 -1
  54. data/app/views/spree/admin/tax_rates/_form.html.erb +1 -1
  55. data/app/views/spree/admin/taxonomies/new.html.erb +1 -1
  56. data/app/views/spree/admin/taxons/_form.html.erb +1 -5
  57. data/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb +16 -0
  58. data/app/views/spree/admin/users/_form.html.erb +12 -10
  59. data/app/views/spree/admin/users/_tabs.html.erb +1 -1
  60. data/app/views/spree/admin/users/edit.html.erb +1 -2
  61. data/app/views/spree/layouts/admin.html.erb +1 -2
  62. data/config/routes.rb +4 -6
  63. data/lib/spree/backend.rb +1 -0
  64. data/lib/spree/backend/config.rb +9 -0
  65. data/lib/spree/backend/engine.rb +5 -3
  66. data/{app/models → lib}/spree/backend_configuration.rb +5 -2
  67. data/solidus_backend.gemspec +2 -1
  68. data/spec/controllers/spree/admin/customer_returns_controller_spec.rb +1 -1
  69. data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +2 -2
  70. data/spec/controllers/spree/admin/resource_controller_spec.rb +12 -1
  71. data/spec/controllers/spree/admin/store_credits_controller_spec.rb +1 -1
  72. data/spec/controllers/spree/admin/users_controller_spec.rb +23 -0
  73. data/spec/features/admin/configuration/payment_methods_spec.rb +11 -2
  74. data/spec/features/admin/configuration/shipping_methods_spec.rb +13 -1
  75. data/spec/features/admin/configuration/taxonomies_spec.rb +7 -0
  76. data/spec/features/admin/orders/customer_details_spec.rb +1 -2
  77. data/spec/features/admin/orders/customer_returns_spec.rb +20 -7
  78. data/spec/features/admin/orders/new_order_spec.rb +53 -5
  79. data/spec/features/admin/orders/new_refund_spec.rb +1 -1
  80. data/spec/features/admin/orders/order_details_spec.rb +14 -4
  81. data/spec/features/admin/orders/return_authorizations_spec.rb +38 -9
  82. data/spec/features/admin/products/edit/images_spec.rb +1 -1
  83. data/spec/features/admin/products/edit/taxons_spec.rb +8 -2
  84. data/spec/features/admin/products/products_spec.rb +12 -0
  85. data/spec/features/admin/promotion_adjustments_spec.rb +9 -0
  86. data/spec/features/admin/promotions/promotion_code_batches_spec.rb +37 -0
  87. data/spec/features/admin/promotions/promotion_code_spec.rb +31 -0
  88. data/spec/features/admin/taxons_spec.rb +12 -0
  89. data/spec/features/admin/users_spec.rb +18 -8
  90. data/spec/{support → fixtures/files}/ror_ringer.jpeg +0 -0
  91. data/spec/{models → lib}/spree/backend_configuration/menu_item_spec.rb +0 -0
  92. data/spec/{models → lib}/spree/backend_configuration_spec.rb +0 -0
  93. data/spec/spec_helper.rb +1 -0
  94. data/spec/support/feature/base_feature_helper.rb +6 -1
  95. data/spec/teaspoon_env.rb +8 -23
  96. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_variables.scss +1 -1
  97. metadata +33 -14
  98. data/app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs +0 -56
  99. data/app/views/spree/admin/orders/_add_product.html.erb +0 -12
@@ -73,6 +73,7 @@ RSpec.configure do |config|
73
73
  # examples within a transaction, comment the following line or assign false
74
74
  # instead of true.
75
75
  config.use_transactional_fixtures = true
76
+ config.fixture_path = "spec/fixtures"
76
77
 
77
78
  config.before :suite do
78
79
  DatabaseCleaner.clean_with :truncation
@@ -4,7 +4,12 @@ module BaseFeatureHelper
4
4
  def click_nav(nav_text, subnav_text = nil)
5
5
  primary_nav = find(".admin-nav-menu>ul>li>a", text: /#{nav_text}/i)
6
6
  if subnav_text
7
- primary_nav.find('+ul>li>a', text: /#{subnav_text}/i).click
7
+ unless Capybara.current_driver == :rack_test
8
+ # we need to make the navigation visible with Selenium driver,
9
+ # and RackTest implementation of `hover`raises NotImplementedError
10
+ primary_nav.hover
11
+ end
12
+ primary_nav.sibling("ul").find("li > a", text: /#{subnav_text}/i).click
8
13
  else
9
14
  primary_nav.click
10
15
  end
@@ -2,27 +2,8 @@
2
2
 
3
3
  ENV['RAILS_ENV'] = 'test'
4
4
 
5
- # Teaspoon doesn't allow you to pass client driver options to the Selenium WebDriver. This monkey patch
6
- # is a temporary fix until this PR is merged: https://github.com/jejacks0n/teaspoon/pull/519.
7
5
  require 'teaspoon/driver/selenium'
8
6
 
9
- Teaspoon::Driver::Selenium.class_eval do
10
- def run_specs(runner, url)
11
- driver = ::Selenium::WebDriver.for(driver_options[:client_driver], @options.except(:client_driver) || {})
12
- driver.navigate.to(url)
13
-
14
- ::Selenium::WebDriver::Wait.new(driver_options).until do
15
- done = driver.execute_script("return window.Teaspoon && window.Teaspoon.finished")
16
- driver.execute_script("return window.Teaspoon && window.Teaspoon.getMessages() || []").each do |line|
17
- runner.process("#{line}\n")
18
- end
19
- done
20
- end
21
- ensure
22
- driver.quit if driver
23
- end
24
- end
25
-
26
7
  # Similar to setup described in
27
8
  # https://github.com/jejacks0n/teaspoon/wiki/Micro-Applications
28
9
 
@@ -38,10 +19,14 @@ if defined?(DummyApp)
38
19
  config.fixture_paths = ["spec/javascripts/fixtures"]
39
20
 
40
21
  config.driver = :selenium
41
- capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
42
- chromeOptions: { args: %w(headless disable-gpu window-size=1920,1440) }
43
- )
44
- config.driver_options = { client_driver: :chrome, desired_capabilities: capabilities }
22
+ config.driver_options = {
23
+ client_driver: :chrome,
24
+ selenium_options: {
25
+ options: Selenium::WebDriver::Chrome::Options.new(
26
+ args: %w(headless disable-gpu window-size=1920,1440),
27
+ ),
28
+ },
29
+ }
45
30
 
46
31
  config.suite do |suite|
47
32
  suite.use_framework :mocha, "2.3.3"
@@ -834,7 +834,7 @@ $figure-caption-color: $gray-600 !default;
834
834
  // Breadcrumbs
835
835
 
836
836
  $breadcrumb-padding-y: .75rem !default;
837
- $breadcrumb-padding-x: 1rem !default;
837
+ $breadcrumb-padding-x: 3rem !default;
838
838
  $breadcrumb-item-padding: .5rem !default;
839
839
 
840
840
  $breadcrumb-margin-bottom: 1rem !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.5
4
+ version: 2.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.9.5
19
+ version: 2.10.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.9.5
26
+ version: 2.10.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.9.5
33
+ version: 2.10.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.9.5
40
+ version: 2.10.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coffee-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: responders
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: sassc-rails
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -172,6 +186,7 @@ files:
172
186
  - app/assets/javascripts/spree/backend/collections/line_items.js
173
187
  - app/assets/javascripts/spree/backend/collections/shipments.js
174
188
  - app/assets/javascripts/spree/backend/collections/states.js
189
+ - app/assets/javascripts/spree/backend/components/admin_nav.js
175
190
  - app/assets/javascripts/spree/backend/components/editable_table.js
176
191
  - app/assets/javascripts/spree/backend/components/number_with_currency.js
177
192
  - app/assets/javascripts/spree/backend/components/sortable_table.js
@@ -234,7 +249,6 @@ files:
234
249
  - app/assets/javascripts/spree/backend/templates/taxons/_tree.hbs
235
250
  - app/assets/javascripts/spree/backend/templates/taxons/tree.hbs
236
251
  - app/assets/javascripts/spree/backend/templates/variants/autocomplete.hbs
237
- - app/assets/javascripts/spree/backend/templates/variants/autocomplete_stock.hbs
238
252
  - app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs
239
253
  - app/assets/javascripts/spree/backend/templates/variants/split.hbs
240
254
  - app/assets/javascripts/spree/backend/translation.js
@@ -243,6 +257,7 @@ files:
243
257
  - app/assets/javascripts/spree/backend/variant_autocomplete.js
244
258
  - app/assets/javascripts/spree/backend/views/calculators/tiered.js
245
259
  - app/assets/javascripts/spree/backend/views/cart/add_line_item_button.js
260
+ - app/assets/javascripts/spree/backend/views/cart/empty_cart_button.js
246
261
  - app/assets/javascripts/spree/backend/views/cart/line_item_row.js
247
262
  - app/assets/javascripts/spree/backend/views/cart/line_item_table.js
248
263
  - app/assets/javascripts/spree/backend/views/images/upload_progress.js
@@ -290,7 +305,7 @@ files:
290
305
  - app/assets/stylesheets/spree/backend/globals/_deprecated_variables.scss
291
306
  - app/assets/stylesheets/spree/backend/globals/_deprecation.scss
292
307
  - app/assets/stylesheets/spree/backend/globals/_functions.scss
293
- - app/assets/stylesheets/spree/backend/globals/_mixins.css
308
+ - app/assets/stylesheets/spree/backend/globals/_mixins.scss
294
309
  - app/assets/stylesheets/spree/backend/globals/_variables.scss
295
310
  - app/assets/stylesheets/spree/backend/globals/_variables_override.scss
296
311
  - app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
@@ -372,6 +387,7 @@ files:
372
387
  - app/controllers/spree/admin/tax_categories_controller.rb
373
388
  - app/controllers/spree/admin/tax_rates_controller.rb
374
389
  - app/controllers/spree/admin/taxonomies_controller.rb
390
+ - app/controllers/spree/admin/taxons/attachment_controller.rb
375
391
  - app/controllers/spree/admin/taxons_controller.rb
376
392
  - app/controllers/spree/admin/users_controller.rb
377
393
  - app/controllers/spree/admin/variant_property_rule_values_controller.rb
@@ -391,7 +407,6 @@ files:
391
407
  - app/helpers/spree/admin/stock_movements_helper.rb
392
408
  - app/helpers/spree/admin/store_credit_events_helper.rb
393
409
  - app/helpers/spree/promotion_rules_helper.rb
394
- - app/models/spree/backend_configuration.rb
395
410
  - app/views/kaminari/solidus_admin/_first_page.html.erb
396
411
  - app/views/kaminari/solidus_admin/_gap.html.erb
397
412
  - app/views/kaminari/solidus_admin/_last_page.html.erb
@@ -431,7 +446,6 @@ files:
431
446
  - app/views/spree/admin/option_types/index.html.erb
432
447
  - app/views/spree/admin/option_types/new.html.erb
433
448
  - app/views/spree/admin/option_types/new.js.erb
434
- - app/views/spree/admin/orders/_add_product.html.erb
435
449
  - app/views/spree/admin/orders/_adjustments.html.erb
436
450
  - app/views/spree/admin/orders/_carton.html.erb
437
451
  - app/views/spree/admin/orders/_carton_manifest.html.erb
@@ -676,6 +690,7 @@ files:
676
690
  - app/views/spree/admin/taxonomies/index.html.erb
677
691
  - app/views/spree/admin/taxonomies/new.html.erb
678
692
  - app/views/spree/admin/taxons/_form.html.erb
693
+ - app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb
679
694
  - app/views/spree/admin/taxons/edit.html.erb
680
695
  - app/views/spree/admin/taxons/index.html.erb
681
696
  - app/views/spree/admin/taxons/search.json.jbuilder
@@ -712,7 +727,9 @@ files:
712
727
  - lib/spree/backend.rb
713
728
  - lib/spree/backend/action_callbacks.rb
714
729
  - lib/spree/backend/callbacks.rb
730
+ - lib/spree/backend/config.rb
715
731
  - lib/spree/backend/engine.rb
732
+ - lib/spree/backend_configuration.rb
716
733
  - lib/spree_backend.rb
717
734
  - script/rails
718
735
  - solidus_backend.gemspec
@@ -788,6 +805,8 @@ files:
788
805
  - spec/features/admin/promotions/option_value_rule_spec.rb
789
806
  - spec/features/admin/promotions/product_rule_spec.rb
790
807
  - spec/features/admin/promotions/promotion_categories_spec.rb
808
+ - spec/features/admin/promotions/promotion_code_batches_spec.rb
809
+ - spec/features/admin/promotions/promotion_code_spec.rb
791
810
  - spec/features/admin/promotions/promotion_spec.rb
792
811
  - spec/features/admin/promotions/tiered_calculator_spec.rb
793
812
  - spec/features/admin/promotions/user_rule_spec.rb
@@ -797,6 +816,7 @@ files:
797
816
  - spec/features/admin/style_guide_spec.rb
798
817
  - spec/features/admin/taxons_spec.rb
799
818
  - spec/features/admin/users_spec.rb
819
+ - spec/fixtures/files/ror_ringer.jpeg
800
820
  - spec/helpers/admin/base_helper_spec.rb
801
821
  - spec/helpers/admin/navigation_helper_spec.rb
802
822
  - spec/helpers/admin/stock_movements_helper_spec.rb
@@ -811,13 +831,12 @@ files:
811
831
  - spec/javascripts/support/with_translations.js
812
832
  - spec/javascripts/translation_spec.js
813
833
  - spec/javascripts/views/number_with_currency_spec.js
814
- - spec/models/spree/backend_configuration/menu_item_spec.rb
815
- - spec/models/spree/backend_configuration_spec.rb
834
+ - spec/lib/spree/backend_configuration/menu_item_spec.rb
835
+ - spec/lib/spree/backend_configuration_spec.rb
816
836
  - spec/spec_helper.rb
817
837
  - spec/support/appear_before_matcher.rb
818
838
  - spec/support/feature/base_feature_helper.rb
819
839
  - spec/support/feature/order_feature_helper.rb
820
- - spec/support/ror_ringer.jpeg
821
840
  - spec/teaspoon_env.rb
822
841
  - spec/test_views/spree/admin/widgets/edit.html.erb
823
842
  - spec/test_views/spree/admin/widgets/new.html.erb
@@ -987,7 +1006,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
987
1006
  requirements:
988
1007
  - - ">="
989
1008
  - !ruby/object:Gem::Version
990
- version: 2.2.2
1009
+ version: 2.4.0
991
1010
  required_rubygems_version: !ruby/object:Gem::Requirement
992
1011
  requirements:
993
1012
  - - ">="
@@ -1,56 +0,0 @@
1
- <fieldset class="no-border-bottom">
2
- <legend align="center">{{ t "select_stock" }}</legend>
3
- <table class="stock-levels" data-hook="stock-levels">
4
- <colgroup>
5
- <col style="width: 30%;" />
6
- <col style="width: 40%;" />
7
- <col style="width: 20%;" />
8
- <col style="width: 10%;" />
9
- </colgroup>
10
- <thead>
11
- <th>{{ t "location" }}</th>
12
- <th>{{ t "count_on_hand" }}</th>
13
- <th>{{ t "quantity" }}</th>
14
- <th class="actions"></th>
15
- </thead>
16
- <tbody>
17
- {{#each variant.stock_items}}
18
- <tr class="vertical-middle">
19
- <td>{{this.stock_location_name}}</td>
20
- {{#unless ../variant.track_inventory}}
21
- <td>
22
- It doesn't track inventory
23
- </td>
24
- <td>
25
- <form>
26
- <input class="quantity" id="stock_item_quantity" data-stock-location-id="{{this.stock_location_id}}" type="number" min="1" value="1">
27
- </form>
28
- </td>
29
- <td class="actions">
30
- <button class="add_variant no-text fa fa-plus icon_link with-tip" data-stock-location-id="{{this.stock_location_id}}" title="{{ t "add" }}" data-action="add"></button>
31
- </td>
32
- {{else}}
33
- {{#if this.available}}
34
- <td>
35
- {{this.count_on_hand}}
36
- {{#if this.backorderable}} ({{ t "backorders_allowed" }}) {{/if}}
37
- </td>
38
- <td>
39
- <form>
40
- <input class="quantity" id="stock_item_quantity" data-stock-location-id="{{this.stock_location_id}}" type="number" min="1" value="1">
41
- </form>
42
- </td>
43
- <td class="actions">
44
- <button class="add_variant no-text fa fa-plus icon_link with-tip" data-stock-location-id="{{this.stock_location_id}}" title="{{ t "add" }}" data-action="add"></button>
45
- </td>
46
- {{else}}
47
- <td>{{ t "out_of_stock" }}</td>
48
- <td>0</td>
49
- <td></td>
50
- {{/if}}
51
- {{/unless}}
52
- </tr>
53
- {{/each}}
54
- </tbody>
55
- </table>
56
- </fieldset>
@@ -1,12 +0,0 @@
1
- <div id="add-line-item" class="js-shipment-add-variant" data-hook>
2
- <fieldset class="no-border-bottom">
3
- <legend align="center"><%= t('spree.add_product') %></legend>
4
-
5
- <div data-hook="add_product_name" class="field">
6
- <%= label_tag :add_variant_id, t('spree.name_or_sku') %>
7
- <%= text_field_tag :add_variant_id, "", class: "variant_autocomplete fullwidth" %>
8
- </div>
9
- </fieldset>
10
-
11
- <div id="stock_details"></div>
12
- </div>