solidus_backend 2.2.2 → 2.3.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.

Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/backend.js +1 -2
  3. data/app/assets/javascripts/spree/backend/address_states.js +1 -1
  4. data/app/assets/javascripts/spree/backend/adjustments.js.coffee +1 -1
  5. data/app/assets/javascripts/spree/backend/admin.js +37 -41
  6. data/app/assets/javascripts/spree/backend/components/editable_table.js.coffee +3 -0
  7. data/app/assets/javascripts/spree/backend/images/index.js.coffee +1 -1
  8. data/app/assets/javascripts/spree/backend/images/upload.js +13 -189
  9. data/app/assets/javascripts/spree/backend/models/image_upload.js +76 -0
  10. data/app/assets/javascripts/spree/backend/models/index.js +2 -0
  11. data/app/assets/javascripts/spree/backend/models/taxonomy.js +3 -0
  12. data/app/assets/javascripts/spree/backend/namespaces.js +3 -1
  13. data/app/assets/javascripts/spree/backend/payments/new.js +8 -36
  14. data/app/assets/javascripts/spree/backend/promotions.js.coffee +1 -1
  15. data/app/assets/javascripts/spree/backend/select_payments.js.coffee +0 -12
  16. data/app/assets/javascripts/spree/backend/shipments.js +1 -1
  17. data/app/assets/javascripts/spree/backend/spree-select2.js +1 -1
  18. data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +101 -95
  19. data/app/assets/javascripts/spree/backend/templates/products/upload_progress.hbs +5 -3
  20. data/app/assets/javascripts/spree/backend/views/images/upload_progress.js +48 -0
  21. data/app/assets/javascripts/spree/backend/views/images/upload_zone.js +39 -0
  22. data/app/assets/javascripts/spree/backend/views/index.js +6 -0
  23. data/app/assets/javascripts/spree/backend/views/order/address.js +1 -5
  24. data/app/assets/javascripts/spree/backend/views/payment/edit_credit_card.js +23 -0
  25. data/app/assets/javascripts/spree/backend/views/payment/new.js +25 -0
  26. data/app/assets/javascripts/spree/backend/views/state_select.js +4 -4
  27. data/app/assets/javascripts/spree/backend/views/tables/editable_table.js.coffee +14 -0
  28. data/app/assets/javascripts/spree/backend/views/tables/editable_table_row.js.coffee +45 -0
  29. data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +0 -1
  30. data/app/assets/stylesheets/spree/backend/components/_editable_table.scss +37 -0
  31. data/app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss +2 -2
  32. data/app/assets/stylesheets/spree/backend/sections/_products.scss +0 -8
  33. data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +15 -9
  34. data/app/assets/stylesheets/spree/backend/shared/_icons.scss +14 -14
  35. data/app/assets/stylesheets/spree/backend/shared/_tables.scss +1 -2
  36. data/app/assets/stylesheets/spree/backend/shared/_utilities.scss +13 -0
  37. data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -1
  38. data/app/controllers/spree/admin/cancellations_controller.rb +1 -1
  39. data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
  40. data/app/controllers/spree/admin/orders_controller.rb +3 -10
  41. data/app/controllers/spree/admin/payment_methods_controller.rb +19 -6
  42. data/app/controllers/spree/admin/payments_controller.rb +2 -2
  43. data/app/controllers/spree/admin/products_controller.rb +3 -9
  44. data/app/controllers/spree/admin/promotion_rules_controller.rb +5 -1
  45. data/app/controllers/spree/admin/promotions_controller.rb +1 -1
  46. data/app/controllers/spree/admin/properties_controller.rb +1 -1
  47. data/app/controllers/spree/admin/reports_controller.rb +24 -21
  48. data/app/controllers/spree/admin/resource_controller.rb +25 -14
  49. data/app/controllers/spree/admin/style_guide_controller.rb +4 -0
  50. data/app/controllers/spree/admin/users_controller.rb +1 -1
  51. data/app/controllers/spree/admin/variants_controller.rb +5 -0
  52. data/app/helpers/spree/admin/navigation_helper.rb +6 -2
  53. data/app/helpers/spree/promotion_rules_helper.rb +2 -2
  54. data/app/models/spree/backend_configuration.rb +1 -0
  55. data/app/views/spree/admin/adjustments/_form.html.erb +1 -1
  56. data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +2 -2
  57. data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
  58. data/app/views/spree/admin/images/_form.html.erb +1 -1
  59. data/app/views/spree/admin/images/_image_row.html.erb +22 -4
  60. data/app/views/spree/admin/images/create.js.erb +8 -5
  61. data/app/views/spree/admin/images/index.html.erb +4 -8
  62. data/app/views/spree/admin/orders/_risk_analysis.html.erb +6 -7
  63. data/app/views/spree/admin/orders/_shipment.html.erb +1 -1
  64. data/app/views/spree/admin/orders/confirm/_customer_details.html.erb +1 -1
  65. data/app/views/spree/admin/orders/confirm/_payments.html.erb +1 -1
  66. data/app/views/spree/admin/orders/index.html.erb +3 -3
  67. data/app/views/spree/admin/payment_methods/_form.html.erb +5 -5
  68. data/app/views/spree/admin/payments/_form.html.erb +2 -2
  69. data/app/views/spree/admin/payments/_list.html.erb +1 -1
  70. data/app/views/spree/admin/payments/show.html.erb +1 -1
  71. data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +2 -7
  72. data/app/views/spree/admin/prices/_form.html.erb +2 -2
  73. data/app/views/spree/admin/prices/edit.html.erb +2 -0
  74. data/app/views/spree/admin/prices/index.html.erb +5 -4
  75. data/app/views/spree/admin/prices/new.html.erb +4 -0
  76. data/app/views/spree/admin/product_properties/index.html.erb +1 -1
  77. data/app/views/spree/admin/products/_form.html.erb +4 -3
  78. data/app/views/spree/admin/products/index.html.erb +3 -3
  79. data/app/views/spree/admin/products/new.html.erb +2 -2
  80. data/app/views/spree/admin/products/new.js.erb +0 -3
  81. data/app/views/spree/admin/promotion_actions/create.js.erb +2 -6
  82. data/app/views/spree/admin/promotion_rules/create.js.erb +0 -8
  83. data/app/views/spree/admin/promotions/_actions.html.erb +2 -2
  84. data/app/views/spree/admin/promotions/_form.html.erb +1 -1
  85. data/app/views/spree/admin/promotions/_promotion_action.html.erb +3 -4
  86. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +3 -3
  87. data/app/views/spree/admin/promotions/_rules.html.erb +1 -1
  88. data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +6 -2
  89. data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +1 -1
  90. data/app/views/spree/admin/promotions/calculators/distributed_amount/_fields.html.erb +54 -0
  91. data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +33 -14
  92. data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +33 -14
  93. data/app/views/spree/admin/promotions/index.html.erb +1 -1
  94. data/app/views/spree/admin/promotions/rules/_first_repeat_purchase_since.html.erb +1 -1
  95. data/app/views/spree/admin/promotions/rules/_item_total.html.erb +1 -1
  96. data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +1 -1
  97. data/app/views/spree/admin/promotions/rules/_nth_order.html.erb +1 -1
  98. data/app/views/spree/admin/promotions/rules/_product.html.erb +1 -1
  99. data/app/views/spree/admin/promotions/rules/_taxon.html.erb +1 -1
  100. data/app/views/spree/admin/promotions/rules/_user_role.html.erb +2 -2
  101. data/app/views/spree/admin/refunds/edit.html.erb +1 -1
  102. data/app/views/spree/admin/refunds/new.html.erb +1 -1
  103. data/app/views/spree/admin/reimbursements/edit.html.erb +2 -2
  104. data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
  105. data/app/views/spree/admin/return_authorizations/_form.html.erb +4 -4
  106. data/app/views/spree/admin/shared/_address_form.html.erb +2 -2
  107. data/app/views/spree/admin/shared/_calculator_fields.html.erb +1 -1
  108. data/app/views/spree/admin/shared/_product_tabs.html.erb +4 -4
  109. data/app/views/spree/admin/shared/_report_order_criteria.html.erb +1 -1
  110. data/app/views/spree/admin/shared/_variant_search.html.erb +1 -1
  111. data/app/views/spree/admin/shipping_methods/_form.html.erb +1 -1
  112. data/app/views/spree/admin/states/index.html.erb +1 -1
  113. data/app/views/spree/admin/stock_items/_stock_management.html.erb +1 -1
  114. data/app/views/spree/admin/stock_locations/_form.html.erb +1 -1
  115. data/app/views/spree/admin/stock_transfers/edit.html.erb +1 -1
  116. data/app/views/spree/admin/stock_transfers/index.html.erb +1 -1
  117. data/app/views/spree/admin/stock_transfers/new.html.erb +1 -1
  118. data/app/views/spree/admin/store_credits/_form.html.erb +1 -1
  119. data/app/views/spree/admin/store_credits/_update_reason_field.html.erb +1 -1
  120. data/app/views/spree/admin/stores/_form.html.erb +1 -1
  121. data/app/views/spree/admin/style_guide/topics/forms/_building_forms.html.erb +4 -8
  122. data/app/views/spree/admin/style_guide/topics/forms/_buttons.html.erb +6 -0
  123. data/app/views/spree/admin/style_guide/topics/forms/_helper_text.html.erb +13 -0
  124. data/app/views/spree/admin/style_guide/topics/forms/_inputs.html.erb +96 -0
  125. data/app/views/spree/admin/style_guide/topics/forms/_labels.html.erb +6 -0
  126. data/app/views/spree/admin/style_guide/topics/forms/_validation.html.erb +8 -1
  127. data/app/views/spree/admin/style_guide/topics/layout/_full_width_table_layout.html.erb +10 -0
  128. data/app/views/spree/admin/style_guide/topics/layout/_helpful_layout.html.erb +0 -0
  129. data/app/views/spree/admin/style_guide/topics/layout/_sidebar_layout.html.erb +4 -0
  130. data/app/views/spree/admin/style_guide/topics/messaging/_flashes.html.erb +10 -4
  131. data/app/views/spree/admin/style_guide/topics/messaging/_tooltips.html.erb +45 -0
  132. data/app/views/spree/admin/style_guide/topics/tables/_forms_in_tables.html.erb +4 -0
  133. data/app/views/spree/admin/style_guide/topics/typography/_lists.html.erb +1 -1
  134. data/app/views/spree/admin/tax_rates/_form.html.erb +17 -3
  135. data/app/views/spree/admin/tax_rates/index.html.erb +12 -3
  136. data/app/views/spree/admin/taxonomies/edit.erb +1 -8
  137. data/app/views/spree/admin/taxons/_form.html.erb +6 -4
  138. data/app/views/spree/admin/taxons/edit.html.erb +0 -15
  139. data/app/views/spree/admin/taxons/index.html.erb +1 -1
  140. data/app/views/spree/admin/variants/_form.html.erb +8 -9
  141. data/app/views/spree/admin/variants/new.js.erb +0 -1
  142. data/config/routes.rb +1 -1
  143. data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +1 -1
  144. data/spec/controllers/spree/admin/orders_controller_spec.rb +16 -4
  145. data/spec/controllers/spree/admin/payment_methods_controller_spec.rb +2 -2
  146. data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
  147. data/spec/controllers/spree/admin/products_controller_spec.rb +33 -0
  148. data/spec/controllers/spree/admin/variants_controller_spec.rb +39 -13
  149. data/spec/features/admin/configuration/payment_methods_spec.rb +11 -11
  150. data/spec/features/admin/configuration/shipping_methods_spec.rb +1 -1
  151. data/spec/features/admin/configuration/states_spec.rb +4 -4
  152. data/spec/features/admin/configuration/store_spec.rb +3 -3
  153. data/spec/features/admin/configuration/tax_rates_spec.rb +1 -1
  154. data/spec/features/admin/orders/adjustments_spec.rb +1 -1
  155. data/spec/features/admin/orders/customer_details_spec.rb +10 -11
  156. data/spec/features/admin/orders/listing_spec.rb +1 -1
  157. data/spec/features/admin/orders/new_order_spec.rb +4 -11
  158. data/spec/features/admin/orders/order_details_spec.rb +20 -30
  159. data/spec/features/admin/orders/return_payment_state_spec.rb +60 -0
  160. data/spec/features/admin/orders/shipments_spec.rb +7 -0
  161. data/spec/features/admin/products/edit/images_spec.rb +48 -9
  162. data/spec/features/admin/products/edit/variants_spec.rb +1 -1
  163. data/spec/features/admin/products/option_types_spec.rb +2 -2
  164. data/spec/features/admin/products/products_spec.rb +49 -3
  165. data/spec/features/admin/products/stock_management_spec.rb +1 -3
  166. data/spec/features/admin/products/variant_spec.rb +20 -0
  167. data/spec/features/admin/promotion_adjustments_spec.rb +35 -34
  168. data/spec/features/admin/promotions/option_value_rule_spec.rb +2 -2
  169. data/spec/features/admin/promotions/product_rule_spec.rb +1 -1
  170. data/spec/features/admin/promotions/tiered_calculator_spec.rb +2 -2
  171. data/spec/features/admin/promotions/user_rule_spec.rb +2 -2
  172. data/spec/features/admin/stock_transfer_spec.rb +11 -8
  173. data/spec/helpers/admin/navigation_helper_spec.rb +23 -0
  174. metadata +26 -18
  175. data/app/assets/javascripts/spree/backend/images/new.js.coffee +0 -7
  176. data/app/assets/stylesheets/spree/backend/sections/_payments.scss +0 -14
  177. data/app/helpers/spree/admin/images_helper.rb +0 -17
  178. data/app/views/spree/admin/orders/_add_line_item.html.erb +0 -15
  179. data/app/views/spree/admin/prices/new.js.erb +0 -2
  180. data/app/views/spree/admin/products/_properties_form.erb +0 -10
  181. data/app/views/spree/admin/promotions/_tab.html.erb +0 -1
  182. data/app/views/spree/admin/shared/_report_criteria.html.erb +0 -17
  183. data/app/views/spree/admin/states/_new.html.erb +0 -7
  184. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +0 -38
  185. data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +0 -27
  186. data/app/views/spree/admin/taxons/_taxon_table.html.erb +0 -23
@@ -110,4 +110,27 @@ describe Spree::Admin::NavigationHelper, type: :helper do
110
110
  expect(link).to include("data-confirm=\"Please confirm.\"")
111
111
  end
112
112
  end
113
+
114
+ describe "#solidus_icon" do
115
+ context "if given an icon_name" do
116
+ subject(:solidus_icon) { helper.solidus_icon('example-icon-name') }
117
+
118
+ it { is_expected.to eq "<i class=\"example-icon-name\"></i>" }
119
+ end
120
+
121
+ context "if not given nil icon_name" do
122
+ subject(:solidus_icon) { helper.solidus_icon(nil) }
123
+
124
+ it { is_expected.to eq "" }
125
+ end
126
+ end
127
+
128
+ describe "#icon" do
129
+ subject(:icon) { helper.icon('icon-name') }
130
+
131
+ it "is a deprecated way to use #solidus_icon" do
132
+ expect(Spree::Deprecation).to receive(:warn).with("icon is deprecated and will be removed from Solidus 3.0 (use solidus_icon instead)", instance_of(Array))
133
+ expect(subject).to eq helper.solidus_icon('icon-name')
134
+ end
135
+ end
113
136
  end
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.2.2
4
+ version: 2.3.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2017-07-12 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.2.2
19
+ version: 2.3.0.beta1
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.2.2
26
+ version: 2.3.0.beta1
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.2.2
33
+ version: 2.3.0.beta1
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.2.2
40
+ version: 2.3.0.beta1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sass-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -164,6 +164,7 @@ files:
164
164
  - app/assets/javascripts/spree/backend/collections/index.js
165
165
  - app/assets/javascripts/spree/backend/collections/line_items.js
166
166
  - app/assets/javascripts/spree/backend/collections/states.js
167
+ - app/assets/javascripts/spree/backend/components/editable_table.js.coffee
167
168
  - app/assets/javascripts/spree/backend/components/number_with_currency.js
168
169
  - app/assets/javascripts/spree/backend/components/tabs.coffee
169
170
  - app/assets/javascripts/spree/backend/components/tooltips.js
@@ -172,12 +173,13 @@ files:
172
173
  - app/assets/javascripts/spree/backend/gateway.js.coffee
173
174
  - app/assets/javascripts/spree/backend/handlebars_extensions.js
174
175
  - app/assets/javascripts/spree/backend/images/index.js.coffee
175
- - app/assets/javascripts/spree/backend/images/new.js.coffee
176
176
  - app/assets/javascripts/spree/backend/images/upload.js
177
177
  - app/assets/javascripts/spree/backend/models/address.js
178
+ - app/assets/javascripts/spree/backend/models/image_upload.js
178
179
  - app/assets/javascripts/spree/backend/models/index.js
179
180
  - app/assets/javascripts/spree/backend/models/line_item.js
180
181
  - app/assets/javascripts/spree/backend/models/order.js
182
+ - app/assets/javascripts/spree/backend/models/taxonomy.js
181
183
  - app/assets/javascripts/spree/backend/namespaces.js
182
184
  - app/assets/javascripts/spree/backend/navigation.coffee
183
185
  - app/assets/javascripts/spree/backend/number_field_updater.coffee
@@ -239,6 +241,8 @@ files:
239
241
  - app/assets/javascripts/spree/backend/views/cart/add_line_item_button.js
240
242
  - app/assets/javascripts/spree/backend/views/cart/line_item_row.js
241
243
  - app/assets/javascripts/spree/backend/views/cart/line_item_table.js
244
+ - app/assets/javascripts/spree/backend/views/images/upload_progress.js
245
+ - app/assets/javascripts/spree/backend/views/images/upload_zone.js
242
246
  - app/assets/javascripts/spree/backend/views/index.js
243
247
  - app/assets/javascripts/spree/backend/views/number_with_currency.js
244
248
  - app/assets/javascripts/spree/backend/views/order/address.js
@@ -247,7 +251,11 @@ files:
247
251
  - app/assets/javascripts/spree/backend/views/order/details_adjustments.js
248
252
  - app/assets/javascripts/spree/backend/views/order/details_total.js
249
253
  - app/assets/javascripts/spree/backend/views/order/summary.js
254
+ - app/assets/javascripts/spree/backend/views/payment/edit_credit_card.js
255
+ - app/assets/javascripts/spree/backend/views/payment/new.js
250
256
  - app/assets/javascripts/spree/backend/views/state_select.js
257
+ - app/assets/javascripts/spree/backend/views/tables/editable_table.js.coffee
258
+ - app/assets/javascripts/spree/backend/views/tables/editable_table_row.js.coffee
251
259
  - app/assets/javascripts/spree/backend/views/zones/form.js
252
260
  - app/assets/javascripts/spree/backend/zone.js
253
261
  - app/assets/stylesheets/spree/backend.css
@@ -255,6 +263,7 @@ files:
255
263
  - app/assets/stylesheets/spree/backend/components/_actions.scss
256
264
  - app/assets/stylesheets/spree/backend/components/_breadcrumb.scss
257
265
  - app/assets/stylesheets/spree/backend/components/_date-picker.scss
266
+ - app/assets/stylesheets/spree/backend/components/_editable_table.scss
258
267
  - app/assets/stylesheets/spree/backend/components/_hint.scss
259
268
  - app/assets/stylesheets/spree/backend/components/_image_placeholder.scss
260
269
  - app/assets/stylesheets/spree/backend/components/_list_group.scss
@@ -282,7 +291,6 @@ files:
282
291
  - app/assets/stylesheets/spree/backend/sections/_image_settings.scss
283
292
  - app/assets/stylesheets/spree/backend/sections/_log_entries.scss
284
293
  - app/assets/stylesheets/spree/backend/sections/_orders.scss
285
- - app/assets/stylesheets/spree/backend/sections/_payments.scss
286
294
  - app/assets/stylesheets/spree/backend/sections/_products.scss
287
295
  - app/assets/stylesheets/spree/backend/sections/_promotions.scss
288
296
  - app/assets/stylesheets/spree/backend/sections/_return_authorizations.scss
@@ -365,7 +373,6 @@ files:
365
373
  - app/helpers/spree/admin/base_helper.rb
366
374
  - app/helpers/spree/admin/customer_returns_helper.rb
367
375
  - app/helpers/spree/admin/general_settings_helper.rb
368
- - app/helpers/spree/admin/images_helper.rb
369
376
  - app/helpers/spree/admin/inventory_settings_helper.rb
370
377
  - app/helpers/spree/admin/navigation_helper.rb
371
378
  - app/helpers/spree/admin/orders_helper.rb
@@ -423,7 +430,6 @@ files:
423
430
  - app/views/spree/admin/option_types/index.html.erb
424
431
  - app/views/spree/admin/option_types/new.html.erb
425
432
  - app/views/spree/admin/option_types/new.js.erb
426
- - app/views/spree/admin/orders/_add_line_item.html.erb
427
433
  - app/views/spree/admin/orders/_add_product.html.erb
428
434
  - app/views/spree/admin/orders/_adjustments.html.erb
429
435
  - app/views/spree/admin/orders/_carton.html.erb
@@ -471,11 +477,9 @@ files:
471
477
  - app/views/spree/admin/prices/edit.html.erb
472
478
  - app/views/spree/admin/prices/index.html.erb
473
479
  - app/views/spree/admin/prices/new.html.erb
474
- - app/views/spree/admin/prices/new.js.erb
475
480
  - app/views/spree/admin/product_properties/_product_property_fields.html.erb
476
481
  - app/views/spree/admin/product_properties/index.html.erb
477
482
  - app/views/spree/admin/products/_form.html.erb
478
- - app/views/spree/admin/products/_properties_form.erb
479
483
  - app/views/spree/admin/products/edit.html.erb
480
484
  - app/views/spree/admin/products/index.html.erb
481
485
  - app/views/spree/admin/products/new.html.erb
@@ -500,13 +504,13 @@ files:
500
504
  - app/views/spree/admin/promotions/_promotion_action.html.erb
501
505
  - app/views/spree/admin/promotions/_promotion_rule.html.erb
502
506
  - app/views/spree/admin/promotions/_rules.html.erb
503
- - app/views/spree/admin/promotions/_tab.html.erb
504
507
  - app/views/spree/admin/promotions/actions/_create_adjustment.html.erb
505
508
  - app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb
506
509
  - app/views/spree/admin/promotions/actions/_create_quantity_adjustments.html.erb
507
510
  - app/views/spree/admin/promotions/actions/_free_shipping.html.erb
508
511
  - app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb
509
512
  - app/views/spree/admin/promotions/calculators/_default_fields.html.erb
513
+ - app/views/spree/admin/promotions/calculators/distributed_amount/_fields.html.erb
510
514
  - app/views/spree/admin/promotions/calculators/flat_rate/_fields.html.erb
511
515
  - app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb
512
516
  - app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb
@@ -583,7 +587,6 @@ files:
583
587
  - app/views/spree/admin/shared/_promotion_sub_menu.html.erb
584
588
  - app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb
585
589
  - app/views/spree/admin/shared/_refunds.html.erb
586
- - app/views/spree/admin/shared/_report_criteria.html.erb
587
590
  - app/views/spree/admin/shared/_report_order_criteria.html.erb
588
591
  - app/views/spree/admin/shared/_settings_checkout_tabs.html.erb
589
592
  - app/views/spree/admin/shared/_settings_sub_menu.html.erb
@@ -608,7 +611,6 @@ files:
608
611
  - app/views/spree/admin/shipping_methods/index.html.erb
609
612
  - app/views/spree/admin/shipping_methods/new.html.erb
610
613
  - app/views/spree/admin/states/_form.html.erb
611
- - app/views/spree/admin/states/_new.html.erb
612
614
  - app/views/spree/admin/states/_state_list.html.erb
613
615
  - app/views/spree/admin/states/edit.html.erb
614
616
  - app/views/spree/admin/states/index.html.erb
@@ -617,13 +619,11 @@ files:
617
619
  - app/views/spree/admin/stock_items/destroy.js.erb
618
620
  - app/views/spree/admin/stock_items/index.html.erb
619
621
  - app/views/spree/admin/stock_locations/_form.html.erb
620
- - app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb
621
622
  - app/views/spree/admin/stock_locations/edit.html.erb
622
623
  - app/views/spree/admin/stock_locations/index.html.erb
623
624
  - app/views/spree/admin/stock_locations/new.html.erb
624
625
  - app/views/spree/admin/stock_movements/index.html.erb
625
626
  - app/views/spree/admin/stock_transfers/_location.html.erb
626
- - app/views/spree/admin/stock_transfers/_stock_movements.html.erb
627
627
  - app/views/spree/admin/stock_transfers/_transfer_item_actions.html.erb
628
628
  - app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb
629
629
  - app/views/spree/admin/stock_transfers/edit.html.erb
@@ -646,11 +646,19 @@ files:
646
646
  - app/views/spree/admin/style_guide/index.html.erb
647
647
  - app/views/spree/admin/style_guide/topics/components/_tabs.html.erb
648
648
  - app/views/spree/admin/style_guide/topics/forms/_building_forms.html.erb
649
+ - app/views/spree/admin/style_guide/topics/forms/_buttons.html.erb
650
+ - app/views/spree/admin/style_guide/topics/forms/_helper_text.html.erb
651
+ - app/views/spree/admin/style_guide/topics/forms/_inputs.html.erb
652
+ - app/views/spree/admin/style_guide/topics/forms/_labels.html.erb
649
653
  - app/views/spree/admin/style_guide/topics/forms/_validation.html.erb
654
+ - app/views/spree/admin/style_guide/topics/layout/_full_width_table_layout.html.erb
655
+ - app/views/spree/admin/style_guide/topics/layout/_helpful_layout.html.erb
656
+ - app/views/spree/admin/style_guide/topics/layout/_sidebar_layout.html.erb
650
657
  - app/views/spree/admin/style_guide/topics/messaging/_flashes.html.erb
651
658
  - app/views/spree/admin/style_guide/topics/messaging/_loading.html.erb
652
659
  - app/views/spree/admin/style_guide/topics/messaging/_tooltips.html.erb
653
660
  - app/views/spree/admin/style_guide/topics/tables/_building_tables.html.erb
661
+ - app/views/spree/admin/style_guide/topics/tables/_forms_in_tables.html.erb
654
662
  - app/views/spree/admin/style_guide/topics/tables/_pagination.html.erb
655
663
  - app/views/spree/admin/style_guide/topics/typography/_colors.html.erb
656
664
  - app/views/spree/admin/style_guide/topics/typography/_fonts.html.erb
@@ -673,7 +681,6 @@ files:
673
681
  - app/views/spree/admin/taxonomies/index.html.erb
674
682
  - app/views/spree/admin/taxonomies/new.html.erb
675
683
  - app/views/spree/admin/taxons/_form.html.erb
676
- - app/views/spree/admin/taxons/_taxon_table.html.erb
677
684
  - app/views/spree/admin/taxons/edit.html.erb
678
685
  - app/views/spree/admin/taxons/index.html.erb
679
686
  - app/views/spree/admin/taxons/search.rabl
@@ -770,6 +777,7 @@ files:
770
777
  - spec/features/admin/orders/order_details_spec.rb
771
778
  - spec/features/admin/orders/payments_spec.rb
772
779
  - spec/features/admin/orders/return_authorizations_spec.rb
780
+ - spec/features/admin/orders/return_payment_state_spec.rb
773
781
  - spec/features/admin/orders/risk_analysis_spec.rb
774
782
  - spec/features/admin/orders/shipments_spec.rb
775
783
  - spec/features/admin/payments/store_credits_spec.rb
@@ -1,7 +0,0 @@
1
- ($ '#cancel_link').click (event) ->
2
- event.preventDefault()
3
-
4
- ($ '.no-objects-found').show()
5
-
6
- ($ '#new_image_link').show()
7
- ($ '#images').html('')
@@ -1,14 +0,0 @@
1
- /* hide and show elements based on editing */
2
- tr.payment {
3
- .edit-payment-amount {
4
- text-align: right;
5
- }
6
-
7
- &:not(.editing) .editing-show {
8
- display: none;
9
- }
10
-
11
- &.editing .editing-hide {
12
- display: none;
13
- }
14
- }
@@ -1,17 +0,0 @@
1
- module Spree
2
- module Admin
3
- module ImagesHelper
4
- def options_text_for(image)
5
- if image.viewable.is_a?(Spree::Variant)
6
- if image.viewable.is_master?
7
- Spree.t(:all)
8
- else
9
- image.viewable.sku_and_options_text
10
- end
11
- else
12
- Spree.t(:all)
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,15 +0,0 @@
1
- <div id="add-line-item" data-hook>
2
- <fieldset class="no-border-bottom">
3
- <legend align="center"><%= Spree.t(:add_product) %></legend>
4
-
5
- <div class="col-9">
6
- <div data-hook="add_product_name" class="field">
7
- <%= label_tag :add_line_item_variant_id, Spree.t(:name_or_sku) %>
8
- <%= text_field_tag :add_line_item_variant_id, "", class: "variant_autocomplete fullwidth" %>
9
- </div>
10
- </div>
11
-
12
- </fieldset>
13
-
14
- <div id="stock_details"></div>
15
- </div>
@@ -1,2 +0,0 @@
1
- $(".js-content-below-tabs").html('<%= escape_javascript(render template: 'spree/admin/prices/new', formats: [:html], handlers: [:erb]) %>');
2
- $(".js-content-below-tabs .select2").select2();
@@ -1,10 +0,0 @@
1
- <% content_for :page_title do %>
2
- <%= plural_resource_name(Spree::Property) %>
3
- <% end %>
4
-
5
- <% f.fields_for :product_properties do |properties_form| %>
6
- <div data-hook="value">
7
- <%= properties_form.label :value, properties_form.object.property.presentation %><br />
8
- <%= properties_form.text_field :value %>
9
- </div>
10
- <% end %>
@@ -1 +0,0 @@
1
- <%= tab(:promotions) %>
@@ -1,17 +0,0 @@
1
- <%= search_form_for @search, url: spree.sales_total_admin_reports_path do |s| %>
2
- <div class="date-range-filter field">
3
- <div class="date-range-fields input-group">
4
- <%= s.text_field :created_at_gt, class: 'datepicker datepicker-from form-control', value: datepicker_field_value(params[:q][:created_at_gt]), placeholder: Spree.t(:start) %>
5
-
6
- <span class="range-divider input-group-addon">
7
- <i class="fa fa-arrow-right"></i>
8
- </span>
9
-
10
- <%= s.text_field :created_at_lt, class: 'datepicker datepicker-to form-control', value: datepicker_field_value(params[:q][:created_at_lt]), placeholder: Spree.t(:end) %>
11
- </div>
12
- </div>
13
-
14
- <div class="actions filter-actions">
15
- <%= button Spree.t(:search) %>
16
- </div>
17
- <% end %>
@@ -1,7 +0,0 @@
1
- <%= form_for [:admin, @country, @state] do |f| %>
2
- <fieldset>
3
- <legend><%= Spree.t(:new_state) %></legend>
4
- <%= render partial: 'form', locals: { f: f } %>
5
- <%= render partial: 'spree/admin/shared/new_resource_links' %>
6
- </fieldset>
7
- <% end %>
@@ -1,38 +0,0 @@
1
- <%= form_tag transfer_stock_admin_stock_locations_path do %>
2
- <fieldset>
3
- <legend align="center"><%= Spree.t(:move_stock_between_locations)%></legend>
4
- <div data-hook="admin_stock_movements_form_fields" class="row">
5
- <div class="col-3">
6
- <div class="field" id="stock_movement_transfer_from_field">
7
- <%= label_tag :stock_location_from_id, Spree.t(:transfer_from_location) %>
8
- <%= select_tag :stock_location_from_id, options_from_collection_for_select(@stock_locations, :id, :name), class: 'select2 fullwidth' %>
9
- </div>
10
- </div>
11
- <div class="col-3">
12
- <div class="field" id="stock_movement_transfer_to_field">
13
- <%= label_tag :stock_location_to_id, Spree.t(:transfer_to_location) %>
14
- <%= select_tag :stock_location_to_id, options_from_collection_for_select(@stock_locations, :id, :name), class: 'select2 fullwidth' %>
15
- </div>
16
- </div>
17
-
18
- <div class="col-3">
19
- <div class="field" id="stock_movement_variant_id_field">
20
- <%= label_tag 'variant_id', Spree::Variant.model_name.human %>
21
- <%= select_tag :variant_id, options_from_collection_for_select(@variants, :id, :name_and_sku), class: 'select2 fullwidth' %>
22
- </div>
23
- </div>
24
-
25
- <div class="col-3">
26
- <div class="field" id="stock_movement_quantity_field">
27
- <%= label_tag 'quantity', Spree::StockMovement.human_attribute_name(:quantity) %>
28
- <%= number_field_tag :quantity, 1, class: 'fullwidth' %>
29
- </div>
30
- </div>
31
- </div>
32
-
33
- <div class="form-buttons filter-actions actions" data-hook="buttons">
34
- <%= button Spree.t(:transfer_stock) %>
35
- <%= link_to Spree.t('actions.cancel'), collection_url, class: 'button' %>
36
- </div>
37
- </fieldset>
38
- <% end %>
@@ -1,27 +0,0 @@
1
- <div id="source-movements-table" class="col-9">
2
- <table class="index sortable">
3
- <colgroup>
4
- <col style="width: 40%" />
5
- <col style="width: 30%" />
6
- <col style="width: 10%" />
7
- <col style="width: 20%" />
8
- </colgroup>
9
- <thead data-hook="bulk_variants_header">
10
- <tr>
11
- <th><%= Spree::Variant.model_name.human %></th>
12
- <th><%= Spree::Variant.human_attribute_name(:sku) %></th>
13
- <th><%= Spree::StockMovement.human_attribute_name(:quantity) %></th>
14
- <th><%= Spree::StockItem.human_attribute_name(:count_on_hand) %></th>
15
- </tr>
16
- </thead>
17
- <tbody id="bulk_variants_tbody">
18
- <% stock_movements.each do |movement| %>
19
- <tr>
20
- <td><%= movement.stock_item.variant.name %></td>
21
- <td class='align-center'><%= movement.stock_item.variant.sku %></td>
22
- <td class='align-center'><%= movement.quantity %></td>
23
- <td class='align-center'><%= movement.stock_item.count_on_hand %></td>
24
- <% end %>
25
- </tbody>
26
- </table>
27
- </div>
@@ -1,23 +0,0 @@
1
- <table class="index">
2
- <thead>
3
- <tr data-hook="taxons_header">
4
- <th><%= Spree.t(:name) %></th>
5
- <th><%= Spree.t(:path) %></th>
6
- <th></th>
7
- </tr>
8
- </thead>
9
- <tbody>
10
- <% taxons.each do |taxon| %>
11
- <tr id="<%= spree_dom_id(taxon) %>" data-hook="taxons_row" class="<%= cycle('odd', 'even')%>">
12
- <td><%= taxon.name %></td>
13
- <td><%= taxon_path taxon %></td>
14
- <td class="actions">
15
- <%= link_to_delete taxon, url: remove_admin_product_taxon_url(@product, taxon), name: icon('delete') + ' ' + Spree.t('actions.remove') %>
16
- </td>
17
- </tr>
18
- <% end %>
19
- <% if taxons.empty? %>
20
- <tr data-hook="taxons_none"><td colspan="3"><%= Spree.t(:none) %>.</td></tr>
21
- <% end %>
22
- </tbody>
23
- </table>