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.

Files changed (270) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/backend/admin.js +0 -12
  3. data/app/assets/javascripts/spree/backend/number_field_updater.coffee +5 -5
  4. data/app/assets/javascripts/spree/backend/shipments.js +16 -14
  5. data/app/assets/javascripts/spree/backend/stock_transfers/count_update_forms.coffee +3 -3
  6. data/app/assets/javascripts/spree/backend/stock_transfers/transfer_item_deleting.coffee +1 -1
  7. data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +1 -1
  8. data/app/assets/javascripts/spree/backend/templates/orders/details_adjustment_row.hbs +2 -2
  9. data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +3 -3
  10. data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs +5 -5
  11. data/app/assets/javascripts/spree/backend/templates/stock_transfers/transfer_item.hbs +5 -5
  12. data/app/assets/javascripts/spree/backend/templates/taxons/_tree.hbs +7 -3
  13. data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +1 -1
  14. data/app/assets/javascripts/spree/backend/templates/variants/split.hbs +2 -2
  15. data/app/assets/javascripts/spree/backend/views/order/customer_details.js +1 -2
  16. data/app/assets/javascripts/spree/backend.js +1 -1
  17. data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +27 -906
  18. data/app/assets/stylesheets/spree/backend/components/_actions.scss +13 -15
  19. data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +1 -1
  20. data/app/assets/stylesheets/spree/backend/components/_editable_table.scss +0 -1
  21. data/app/assets/stylesheets/spree/backend/components/_messages.scss +8 -8
  22. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +1 -1
  23. data/app/assets/stylesheets/spree/backend/components/_number_field_update.scss +1 -1
  24. data/app/assets/stylesheets/spree/backend/components/_number_with_currency.scss +1 -1
  25. data/app/assets/stylesheets/spree/backend/components/_pills.scss +92 -0
  26. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +7 -32
  27. data/app/assets/stylesheets/spree/backend/components/_states.scss +5 -27
  28. data/app/assets/stylesheets/spree/backend/components/_stock_table.scss +0 -12
  29. data/app/assets/stylesheets/spree/backend/globals/_variables.scss +58 -139
  30. data/app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss +11 -15
  31. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +7 -5
  32. data/app/assets/stylesheets/spree/backend/sections/_orders.scss +6 -6
  33. data/app/assets/stylesheets/spree/backend/sections/_products.scss +5 -1
  34. data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +4 -2
  35. data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +4 -35
  36. data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +14 -15
  37. data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +9 -16
  38. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +23 -20
  39. data/app/assets/stylesheets/spree/backend/shared/_header.scss +1 -5
  40. data/app/assets/stylesheets/spree/backend/shared/_layout.scss +3 -23
  41. data/app/assets/stylesheets/spree/backend/shared/_tables.scss +40 -92
  42. data/app/assets/stylesheets/spree/backend/shared/_typography.scss +6 -6
  43. data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -1
  44. data/app/controllers/spree/admin/adjustments_controller.rb +1 -1
  45. data/app/controllers/spree/admin/customer_returns_controller.rb +0 -1
  46. data/app/controllers/spree/admin/promotion_actions_controller.rb +1 -1
  47. data/app/controllers/spree/admin/shipping_methods_controller.rb +1 -1
  48. data/app/controllers/spree/admin/style_guide_controller.rb +3 -2
  49. data/app/controllers/spree/admin/tax_rates_controller.rb +1 -1
  50. data/app/controllers/spree/admin/users_controller.rb +9 -4
  51. data/app/helpers/spree/admin/base_helper.rb +32 -35
  52. data/app/helpers/spree/admin/stock_transfers_helper.rb +0 -4
  53. data/app/models/spree/backend_configuration.rb +1 -1
  54. data/app/views/spree/admin/adjustment_reasons/index.html.erb +6 -4
  55. data/app/views/spree/admin/adjustments/_adjustment.html.erb +5 -5
  56. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +7 -7
  57. data/app/views/spree/admin/cancellations/index.html.erb +9 -5
  58. data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +6 -3
  59. data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +12 -7
  60. data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +13 -8
  61. data/app/views/spree/admin/customer_returns/edit.html.erb +1 -1
  62. data/app/views/spree/admin/customer_returns/index.html.erb +5 -5
  63. data/app/views/spree/admin/images/_image_row.html.erb +14 -4
  64. data/app/views/spree/admin/images/index.html.erb +2 -1
  65. data/app/views/spree/admin/option_types/_option_value_fields.html.erb +6 -6
  66. data/app/views/spree/admin/option_types/edit.html.erb +2 -1
  67. data/app/views/spree/admin/option_types/index.html.erb +5 -5
  68. data/app/views/spree/admin/orders/_adjustments.html.erb +3 -3
  69. data/app/views/spree/admin/orders/_carton.html.erb +1 -1
  70. data/app/views/spree/admin/orders/_carton_manifest.html.erb +3 -3
  71. data/app/views/spree/admin/orders/_risk_analysis.html.erb +18 -16
  72. data/app/views/spree/admin/orders/_shipment.html.erb +26 -30
  73. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +6 -6
  74. data/app/views/spree/admin/orders/confirm/_line_items.html.erb +3 -3
  75. data/app/views/spree/admin/orders/confirm/_payments.html.erb +6 -6
  76. data/app/views/spree/admin/orders/confirm/_shipment.html.erb +1 -1
  77. data/app/views/spree/admin/orders/confirm/_shipment_manifest.html.erb +3 -3
  78. data/app/views/spree/admin/orders/index.html.erb +25 -9
  79. data/app/views/spree/admin/payment_methods/_form.html.erb +4 -1
  80. data/app/views/spree/admin/payment_methods/index.html.erb +11 -7
  81. data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
  82. data/app/views/spree/admin/payments/_list.html.erb +9 -5
  83. data/app/views/spree/admin/payments/show.html.erb +2 -2
  84. data/app/views/spree/admin/prices/_master_variant_table.html.erb +2 -2
  85. data/app/views/spree/admin/prices/_table.html.erb +2 -2
  86. data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +1 -1
  87. data/app/views/spree/admin/product_properties/index.html.erb +4 -2
  88. data/app/views/spree/admin/products/index.html.erb +10 -9
  89. data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +1 -1
  90. data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +1 -1
  91. data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +3 -6
  92. data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +3 -8
  93. data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +3 -8
  94. data/app/views/spree/admin/promotions/index.html.erb +24 -17
  95. data/app/views/spree/admin/promotions/rules/_user_role.html.erb +2 -2
  96. data/app/views/spree/admin/properties/index.html.erb +3 -3
  97. data/app/views/spree/admin/refund_reasons/index.html.erb +7 -5
  98. data/app/views/spree/admin/refunds/new.html.erb +1 -1
  99. data/app/views/spree/admin/reimbursement_types/index.html.erb +2 -2
  100. data/app/views/spree/admin/reimbursements/edit.html.erb +6 -6
  101. data/app/views/spree/admin/reimbursements/index.html.erb +9 -2
  102. data/app/views/spree/admin/reimbursements/show.html.erb +6 -6
  103. data/app/views/spree/admin/reports/index.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 +9 -5
  106. data/app/views/spree/admin/return_authorizations/edit.html.erb +9 -2
  107. data/app/views/spree/admin/return_authorizations/index.html.erb +11 -4
  108. data/app/views/spree/admin/search/products.json.jbuilder +10 -0
  109. data/app/views/spree/admin/search/users.json.jbuilder +37 -0
  110. data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -1
  111. data/app/views/spree/admin/shared/_modal.html.erb +18 -0
  112. data/app/views/spree/admin/shared/_number_field_update_actions.html.erb +2 -2
  113. data/app/views/spree/admin/shared/_number_field_update_cell.html.erb +1 -1
  114. data/app/views/spree/admin/shared/_order_summary.html.erb +21 -5
  115. data/app/views/spree/admin/shared/_refunds.html.erb +6 -6
  116. data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +4 -4
  117. data/app/views/spree/admin/shared/named_types/_index.html.erb +7 -5
  118. data/app/views/spree/admin/shared/preference_fields/_boolean.html.erb +13 -0
  119. data/app/views/spree/admin/shared/preference_fields/_decimal.html.erb +12 -0
  120. data/app/views/spree/admin/shared/preference_fields/_integer.html.erb +12 -0
  121. data/app/views/spree/admin/shared/preference_fields/_password.html.erb +12 -0
  122. data/app/views/spree/admin/shared/preference_fields/_string.html.erb +12 -0
  123. data/app/views/spree/admin/shared/preference_fields/_text.html.erb +12 -0
  124. data/app/views/spree/admin/shipping_categories/index.html.erb +2 -2
  125. data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
  126. data/app/views/spree/admin/stock_items/_stock_management.html.erb +3 -3
  127. data/app/views/spree/admin/stock_locations/index.html.erb +9 -11
  128. data/app/views/spree/admin/stock_movements/index.html.erb +4 -4
  129. data/app/views/spree/admin/stock_transfers/_transfer_item_actions.html.erb +1 -1
  130. data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +2 -2
  131. data/app/views/spree/admin/stock_transfers/index.html.erb +10 -6
  132. data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +1 -1
  133. data/app/views/spree/admin/store_credits/index.html.erb +53 -50
  134. data/app/views/spree/admin/store_credits/show.html.erb +5 -5
  135. data/app/views/spree/admin/stores/_form.html.erb +9 -0
  136. data/app/views/spree/admin/style_guide/topics/components/_modals.html.erb +50 -0
  137. data/app/views/spree/admin/style_guide/topics/components/_pills.html.erb +101 -0
  138. data/app/views/spree/admin/style_guide/topics/tables/_building_tables.html.erb +4 -4
  139. data/app/views/spree/admin/tax_categories/index.html.erb +5 -5
  140. data/app/views/spree/admin/tax_rates/index.html.erb +9 -9
  141. data/app/views/spree/admin/taxonomies/_list.html.erb +4 -4
  142. data/app/views/spree/admin/taxons/search.json.jbuilder +5 -0
  143. data/app/views/spree/admin/users/index.html.erb +64 -23
  144. data/app/views/spree/admin/users/items.html.erb +9 -13
  145. data/app/views/spree/admin/users/orders.html.erb +28 -12
  146. data/app/views/spree/admin/variants/_table.html.erb +6 -5
  147. data/app/views/spree/admin/variants/index.html.erb +12 -16
  148. data/app/views/spree/admin/variants/new.html.erb +1 -3
  149. data/app/views/spree/admin/zones/edit.html.erb +0 -3
  150. data/app/views/spree/admin/zones/index.html.erb +2 -6
  151. data/app/views/spree/admin/zones/new.html.erb +0 -3
  152. data/app/views/spree/layouts/admin.html.erb +9 -30
  153. data/config/routes.rb +0 -4
  154. data/lib/spree/backend.rb +2 -1
  155. data/solidus_backend.gemspec +3 -1
  156. data/spec/controllers/spree/admin/orders_controller_spec.rb +0 -5
  157. data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
  158. data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
  159. data/spec/features/admin/configuration/payment_methods_spec.rb +1 -1
  160. data/spec/features/admin/configuration/zones_spec.rb +1 -1
  161. data/spec/features/admin/orders/adjustments_spec.rb +1 -1
  162. data/spec/features/admin/orders/cancelling_and_resuming_spec.rb +4 -4
  163. data/spec/features/admin/orders/cancelling_inventory_spec.rb +1 -1
  164. data/spec/features/admin/orders/customer_details_spec.rb +8 -1
  165. data/spec/features/admin/orders/listing_spec.rb +1 -1
  166. data/spec/features/admin/orders/new_order_spec.rb +3 -3
  167. data/spec/features/admin/orders/order_details_spec.rb +17 -16
  168. data/spec/features/admin/orders/payments_spec.rb +4 -4
  169. data/spec/features/admin/orders/risk_analysis_spec.rb +2 -2
  170. data/spec/features/admin/orders/shipments_spec.rb +1 -1
  171. data/spec/features/admin/products/edit/images_spec.rb +1 -1
  172. data/spec/features/admin/store_credits_spec.rb +3 -3
  173. data/spec/features/admin/stores_spec.rb +35 -0
  174. data/spec/features/admin/users_spec.rb +60 -13
  175. data/spec/spec_helper.rb +9 -4
  176. data/vendor/assets/javascripts/solidus_admin/bootstrap.js +657 -361
  177. data/vendor/assets/javascripts/solidus_admin/popover.js +4 -0
  178. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_alert.scss +4 -11
  179. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_badge.scss +4 -33
  180. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_breadcrumb.scss +1 -1
  181. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_button-group.scss +11 -15
  182. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_buttons.scss +13 -42
  183. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_card.scss +27 -80
  184. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_carousel.scss +24 -17
  185. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_close.scss +0 -2
  186. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom-forms.scss +27 -36
  187. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_dropdown.scss +15 -48
  188. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_forms.scss +70 -68
  189. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_functions.scss +90 -0
  190. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_grid.scss +3 -2
  191. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_images.scss +1 -1
  192. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_input-group.scss +6 -8
  193. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_jumbotron.scss +0 -4
  194. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_list-group.scss +9 -36
  195. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_media.scss +0 -4
  196. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_mixins.scss +2 -18
  197. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_modal.scss +3 -3
  198. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss +15 -16
  199. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_navbar.scss +70 -54
  200. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +3 -4
  201. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_popover.scss +96 -72
  202. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_print.scss +1 -9
  203. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_progress.scss +4 -4
  204. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_reboot.scss +187 -95
  205. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tables.scss +34 -19
  206. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tooltip.scss +52 -35
  207. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_type.scss +8 -28
  208. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_utilities.scss +1 -0
  209. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_variables.scss +286 -410
  210. data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-grid.scss +2 -8
  211. data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-reboot.scss +1 -2
  212. data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap.scss +2 -15
  213. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_alert.scss +4 -5
  214. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_badge.scss +6 -5
  215. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_border-radius.scss +3 -3
  216. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_box-shadow.scss +5 -0
  217. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_breakpoints.scss +23 -13
  218. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_buttons.scss +11 -14
  219. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_clearfix.scss +1 -1
  220. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_forms.scss +57 -55
  221. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_gradients.scss +1 -1
  222. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid-framework.scss +9 -18
  223. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid.scss +12 -65
  224. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss +6 -6
  225. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_list-group.scss +2 -4
  226. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_nav-divider.scss +3 -3
  227. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_pagination.scss +1 -0
  228. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_reset-text.scss +4 -3
  229. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_resize.scss +1 -1
  230. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss +5 -2
  231. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_text-truncate.scss +1 -1
  232. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transition.scss +9 -0
  233. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_visibility.scss +2 -2
  234. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_background.scss +4 -17
  235. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_borders.scss +20 -5
  236. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_display.scss +36 -1
  237. data/vendor/assets/stylesheets/solidus_admin/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +0 -0
  238. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_flex.scss +0 -4
  239. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_position.scss +5 -3
  240. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss +10 -12
  241. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_text.scss +5 -17
  242. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_visibility.scss +4 -48
  243. metadata +73 -34
  244. data/app/assets/stylesheets/spree/backend/shared/_skeleton.scss +0 -242
  245. data/app/controllers/spree/admin/countries_controller.rb +0 -9
  246. data/app/controllers/spree/admin/states_controller.rb +0 -29
  247. data/app/helpers/spree/admin/reimbursements_helper.rb +0 -14
  248. data/app/views/spree/admin/countries/_form.html.erb +0 -22
  249. data/app/views/spree/admin/countries/edit.html.erb +0 -19
  250. data/app/views/spree/admin/countries/index.html.erb +0 -49
  251. data/app/views/spree/admin/countries/new.html.erb +0 -18
  252. data/app/views/spree/admin/search/products.rabl +0 -9
  253. data/app/views/spree/admin/search/users.rabl +0 -30
  254. data/app/views/spree/admin/shared/_areas_tabs.html.erb +0 -19
  255. data/app/views/spree/admin/states/_form.html.erb +0 -14
  256. data/app/views/spree/admin/states/_state_list.html.erb +0 -33
  257. data/app/views/spree/admin/states/edit.html.erb +0 -19
  258. data/app/views/spree/admin/states/index.html.erb +0 -39
  259. data/app/views/spree/admin/states/new.html.erb +0 -17
  260. data/app/views/spree/admin/style_guide/topics/typography/_tags.html.erb +0 -25
  261. data/app/views/spree/admin/taxons/search.rabl +0 -5
  262. data/app/views/spree/admin/variants/new.js.erb +0 -1
  263. data/spec/features/admin/configuration/countries_spec.rb +0 -22
  264. data/spec/features/admin/configuration/states_spec.rb +0 -64
  265. data/spec/helpers/admin/reimbursements_helper_spec.rb +0 -34
  266. data/vendor/assets/javascripts/solidus_admin/tether.js +0 -1726
  267. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom.scss +0 -4
  268. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_normalize.scss +0 -461
  269. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_cards.scss +0 -47
  270. 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: 9267767b77867cdd475ff526fbfd6f23c575b14e
4
- data.tar.gz: 42a48647faa434e8d57298e099bf2c9f5c6e024e
3
+ metadata.gz: 148c53ce6a46afe15947d57805fb318d8ed920d1
4
+ data.tar.gz: 1c23abb395e91434d1fd502ec0a699bacbd170d2
5
5
  SHA512:
6
- metadata.gz: 7df370816a66ef3bb793455edd72e0b1d460e26f22387f97c74f79483cd162245744c3afb1c8611cc28adc1ef724f151786dccd2095198a94cffd24ef44cfd96
7
- data.tar.gz: 5811a1f4042c3388c147c77477fce7615aa0fde39f372ea2a80f850590cf6b4b9634f8fea4ba4939403bb9ffe35a7a0780f4aae9c725fb7a4c6fb93fd7a3f110
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('trash', id, show)
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('void', id, show)
28
- toggleButtonVisibility('check', id, show)
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 = (buttonIcon, id, show) ->
32
+ toggleButtonVisibility = (buttonAction, id, show) ->
33
33
  cssDisplay = if show then 'inline-block' else 'none'
34
- $(".fa-#{buttonIcon}[data-id='#{id}']").css('display', cssDisplay)
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
- window.Spree.advanceOrder();
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 a.edit-method": "toggleMethodEdit",
290
- "click a.cancel-method": "toggleMethodEdit",
291
- "click a.save-method": "saveMethod",
293
+ "click button.edit-method": "toggleMethodEdit",
294
+ "click button.cancel-method": "toggleMethodEdit",
295
+ "click button.save-method": "saveMethod",
292
296
 
293
- "click a.edit-tracking": "toggleTrackingEdit",
294
- "click a.cancel-tracking": "toggleTrackingEdit",
295
- "click a.save-tracking": "saveTracking",
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
- .find('.tracking-value')
332
- .html($("<strong>")
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 .fa-edit', (ev) =>
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 .fa-void', (ev) =>
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 .fa-check', (ev) =>
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 .fa-trash', (ev) =>
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('.sortable-handle').outerHeight()
47
+ handleHeight = ui.helper.find('.taxon').outerHeight()
48
48
  ui.placeholder.height(handleHeight)
49
49
 
50
50
  restore_sort_targets: ->
@@ -1,4 +1,4 @@
1
1
  <tr>
2
- <td><strong>{{ label }}:</strong></td>
3
- <td class="total align-center"><span>{{ amount }}</span></td>
2
+ <td>{{ label }}:</td>
3
+ <td class="total"><span>{{ amount }}</span></td>
4
4
  </tr>
@@ -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 align-center">
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 align-center">
25
+ <td class="line-item-qty-show">
26
26
  {{ line_item.quantity }}
27
27
  </td>
28
28
  {{/if}}
29
- <td class="line-item-total align-center">
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">
@@ -1,5 +1,5 @@
1
- <td class="align-center">{{stockLocationName}}</td>
2
- <td class="align-center">
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 class="align-center">
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="green" href="#"></a>
21
- <a class="cancel fa fa-void icon_link with-tip no-text" data-action="red" href="#"></a>
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="align-center no-padding">
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 class="align-center">
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 class='align-center' id="number-update-{{id}}">
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="green" data-id="{{id}}" href="#"></a>
43
- <a class="fa fa-void icon_link with-tip no-text" data-action="red" data-id="{{id}}" href="#"></a>
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
- <div class="sortable-handle">
4
- {{#if (isRootTaxon) }}{{else}}<i class="fa fa-arrows"></i>{{/if}}
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>
@@ -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" title="{{ t "add" }}" data-action="add">{{ t "add" }}</button>
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
- <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>
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/tether
13
+ //= require solidus_admin/popover
14
14
  //= require solidus_admin/bootstrap
15
15
  //= require prism
16
16
  //= require spree