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
@@ -51,7 +51,7 @@
51
51
  </fieldset>
52
52
  <% end %>
53
53
 
54
- <fieldset data-hook="reimbursements" class="no-border-bottom align-center">
54
+ <fieldset data-hook="reimbursements" class="no-border-bottom">
55
55
  <legend align="center"><%= plural_resource_name(Spree::Reimbursement) %></legend>
56
56
  <% if @customer_return.reimbursements.any? %>
57
57
  <%= render partial: 'reimbursements_table', locals: {reimbursements: @customer_return.reimbursements} %>
@@ -15,7 +15,7 @@
15
15
  <thead data-hook="customer_return_header">
16
16
  <tr>
17
17
  <th><%= Spree::CustomerReturn.human_attribute_name(:number) %></th>
18
- <th><%= Spree::CustomerReturn.human_attribute_name(:pre_tax_total) %></th>
18
+ <th><%= Spree::CustomerReturn.human_attribute_name(:total_excluding_vat) %></th>
19
19
  <th><%= Spree::CustomerReturn.human_attribute_name(:total) %></th>
20
20
  <th><%= Spree::CustomerReturn.human_attribute_name(:created_at) %></th>
21
21
  <th><%= Spree::CustomerReturn.human_attribute_name(:reimbursement_status) %></th>
@@ -24,16 +24,16 @@
24
24
  </thead>
25
25
  <tbody>
26
26
  <% @customer_returns.each do |customer_return| %>
27
- <tr id="<%= spree_dom_id(customer_return) %>" data-hook="customer_return_row" class="<%= cycle('odd', 'even')%>">
27
+ <tr id="<%= spree_dom_id(customer_return) %>" data-hook="customer_return_row">
28
28
  <td><%= link_to customer_return.number, edit_admin_order_customer_return_path(@order, customer_return) %></td>
29
- <td><%= customer_return.display_pre_tax_total.to_html %></td>
29
+ <td><%= customer_return.display_total_excluding_vat.to_html %></td>
30
30
  <td><%= customer_return.display_total.to_html %></td>
31
31
  <td><%= pretty_time(customer_return.created_at) %></td>
32
32
  <td>
33
33
  <% if customer_return.fully_reimbursed? %>
34
- <span class="state success"><%= Spree.t(:reimbursed) %></span>
34
+ <span class="pill pill-complete"><%= Spree.t(:reimbursed) %></span>
35
35
  <% else %>
36
- <span class="state notice"><%= Spree.t(:incomplete) %></span>
36
+ <span class="pill pill-pending"><%= Spree.t(:incomplete) %></span>
37
37
  <% end %>
38
38
  </td>
39
39
  <td class='actions align-center' data-hook="admin_orders_customer_returns_index_row_actions">
@@ -1,15 +1,25 @@
1
- <tr id="<%= spree_dom_id image %>" data-hook="images_row" class="<%= cycle('odd', 'even')%>">
1
+ <tr id="<%= spree_dom_id image %>" data-hook="images_row">
2
2
 
3
- <td class="no-border">
3
+ <td>
4
4
  <% if can?(:update_positions, Spree::Image) %>
5
5
  <span class="handle"></span>
6
6
  <% end %>
7
7
  </td>
8
8
 
9
9
  <td>
10
- <%= link_to image.attachment.url(:product) do %>
10
+ <span class="modal-image-trigger" data-toggle="modal" data-target="#modal-image-<%= image.id %>">
11
11
  <%= render 'spree/admin/shared/image', image: image, size: :mini %>
12
- <% end %>
12
+ </span>
13
+ <%= render(
14
+ "spree/admin/shared/modal",
15
+ target: "modal-image-#{image.id}",
16
+ title: image.alt,
17
+ content: %{
18
+ <div class='align-center'>
19
+ #{image_tag(image.attachment.url(:large))}
20
+ </div>
21
+ }.html_safe
22
+ ) %>
13
23
  </td>
14
24
 
15
25
  <% if @product.has_variants? %>
@@ -50,7 +50,8 @@
50
50
 
51
51
  <thead>
52
52
  <tr data-hook="images_header">
53
- <th colspan="2"><%= Spree.t(:thumbnail) %></th>
53
+ <th></th>
54
+ <th><%= Spree.t(:thumbnail) %></th>
54
55
  <% if @product.has_variants? %>
55
56
  <th><%= Spree::Variant.model_name.human %></th>
56
57
  <% end %>
@@ -1,11 +1,11 @@
1
- <tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value" class="<%= cycle('odd', 'even')%>">
2
- <% if f.object.persisted? %>
3
- <td class="no-border">
1
+ <tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value">
2
+ <td>
3
+ <% if f.object.persisted? %>
4
4
  <span class="handle"></span>
5
5
  <%= f.hidden_field :id %>
6
- </td>
7
- <% end %>
8
- <td colspan="<%= f.object.persisted? ? '' : '2' %>" class="name"><%= f.text_field :name %></td>
6
+ <% end %>
7
+ </td>
8
+ <td class="name"><%= f.text_field :name %></td>
9
9
  <td class="presentation"><%= f.text_field :presentation %></td>
10
10
  <td class="actions"><%= link_to_remove_fields Spree.t('actions.remove'), f, no_text: true %></td>
11
11
  </tr>
@@ -25,7 +25,8 @@
25
25
  <table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
26
26
  <thead data-hook="option_header">
27
27
  <tr>
28
- <th colspan="2"><%= Spree::OptionValue.human_attribute_name(:name) %></th>
28
+ <th></th>
29
+ <th><%= Spree::OptionValue.human_attribute_name(:name) %></th>
29
30
  <th><%= Spree::OptionValue.human_attribute_name(:presentation) %></th>
30
31
  <th class="actions"></th>
31
32
  </tr>
@@ -22,7 +22,7 @@
22
22
  </colgroup>
23
23
  <thead>
24
24
  <tr data-hook="option_header">
25
- <th class="no-border"></th>
25
+ <th></th>
26
26
  <th><%= Spree::OptionType.human_attribute_name(:name) %></th>
27
27
  <th><%= Spree::OptionType.human_attribute_name(:presentation) %></th>
28
28
  <th class="actions"></th>
@@ -30,10 +30,10 @@
30
30
  </thead>
31
31
  <tbody>
32
32
  <% @option_types.each do |option_type| %>
33
- <tr class="spree_option_type <%= cycle('odd', 'even')%>" id="<%= spree_dom_id option_type %>" data-hook="option_row">
34
- <td class="no-border"><span class="handle"></span></td>
35
- <td class="align-center"><%= option_type.name %></td>
36
- <td class="align-center presentation"><%= option_type.presentation %></td>
33
+ <tr class="spree_option_type" id="<%= spree_dom_id option_type %>" data-hook="option_row">
34
+ <td><span class="handle"></span></td>
35
+ <td><%= option_type.name %></td>
36
+ <td class="presentation"><%= option_type.presentation %></td>
37
37
  <td class="actions">
38
38
  <% if can?(:update, option_type) %>
39
39
  <%= link_to_edit(option_type, class: 'admin_edit_option_type', no_text: true) %>
@@ -7,11 +7,11 @@
7
7
  <th><%= Spree::Adjustment.human_attribute_name(:amount)%></th>
8
8
  </tr>
9
9
  </thead>
10
- <tbody data-hook="order_details_adjustments" class="with-border">
10
+ <tbody data-hook="order_details_adjustments">
11
11
  <% adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
12
12
  <tr class="total">
13
- <td><strong><%= label %>:</strong></td>
14
- <td class="total align-center"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: adjustments.first.order.try(:currency)) %></span></td>
13
+ <td><%= label %>:</td>
14
+ <td class="total"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: adjustments.first.order.try(:currency)) %></span></td>
15
15
  </tr>
16
16
  <% end %>
17
17
  </tbody>
@@ -52,7 +52,7 @@
52
52
  <% if carton.tracking.present? %>
53
53
  <strong><%= Spree::Carton.human_attribute_name(:tracking) %>:</strong> <%= carton.tracking %>
54
54
  <% else %>
55
- <%= Spree.t(:no_tracking_present) %>
55
+ <i><%= Spree.t(:no_tracking_present) %></i>
56
56
  <% end %>
57
57
  </td>
58
58
  </tr>
@@ -10,12 +10,12 @@
10
10
  <%= item.variant.sku %>
11
11
  <% end %>
12
12
  </td>
13
- <td class="item-price align-center"><%= item.line_item.single_money.to_html %></td>
14
- <td class="item-qty-show align-center">
13
+ <td class="item-price"><%= item.line_item.single_money.to_html %></td>
14
+ <td class="item-qty-show">
15
15
  <% item.states.each do |state,count| %>
16
16
  <%= count %> x <%= Spree.t(state, scope: 'inventory_states') %>
17
17
  <% end %>
18
18
  </td>
19
- <td class="item-total align-center"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
19
+ <td class="item-total"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
20
20
  </tr>
21
21
  <% end %>
@@ -10,33 +10,35 @@
10
10
  <td><strong>
11
11
  <%= Spree.t(:failed_payment_attempts) %>:
12
12
  </strong></td>
13
- <td class="align-center">
14
- <span class="<%= @order.payments.failed.count > 0 ? 'state void' : 'state complete' %>">
15
- <%= link_to Spree.t(:payments_failed_count,
16
- count: @order.payments.failed.count),
17
- spree.admin_order_payments_path(@order) %>
18
- </span>
13
+ <td>
14
+ <span class="pill pill-<%= @order.payments.failed.count > 0 ? 'warning' : 'complete' %>">
15
+ <%= Spree.t(
16
+ :payments_failed_count,
17
+ count: @order.payments.failed.count
18
+ ) %>
19
+ </span>
19
20
  </td>
20
21
  </tr>
21
22
 
22
23
  <tr>
23
24
  <td><strong><%= Spree.t(:avs_response) %>:</strong></td>
24
- <td class="align-center">
25
- <% if latest_payment.is_avs_risky? %>
26
- <span class="state void"><%= Spree.t(:error) %>:</span>
27
- <%= avs_response_code[latest_payment.avs_response] %>
28
- <% else %>
29
- <span class="state complete"><%= Spree.t(:success) %></span>
30
- <% end %>
25
+ <td>
26
+ <span class="pill pill-<%= latest_payment.is_avs_risky? ? 'warning' : 'complete' %>">
27
+ <% if latest_payment.is_avs_risky? %>
28
+ <%= avs_response_code[latest_payment.avs_response] %>
29
+ <% else %>
30
+ <%= Spree.t(:success) %>
31
+ <% end %>
32
+ </span>
31
33
  </td>
32
34
  </tr>
33
35
 
34
36
  <tr>
35
37
  <td><strong><%= Spree.t(:cvv_response) %>:</strong></td>
36
- <td class="align-center">
37
- <span class="<%= latest_payment.is_cvv_risky? ? 'state void' : 'state complete' %>">
38
+ <td>
39
+ <span class="pill pill-<%= latest_payment.is_cvv_risky? ? 'warning' : 'complete' %>">
38
40
  <% if latest_payment.is_cvv_risky? %>
39
- <%= "#{Spree.t(:error)}: #{cvv_response_code[latest_payment.cvv_response_code]}" %>
41
+ <%= cvv_response_code[latest_payment.cvv_response_code] %>
40
42
  <% else %>
41
43
  <%= Spree.t(:success) %>
42
44
  <% end %>
@@ -25,12 +25,12 @@
25
25
 
26
26
  <table class="stock-contents shipment index" data-hook="stock-contents">
27
27
  <colgroup>
28
- <col style="width: 10%;" />
28
+ <col style="width: 17.5%;" />
29
29
  <col style="width: 30%;" />
30
+ <col style="width: 12.5%;" />
30
31
  <col style="width: 15%;" />
31
32
  <col style="width: 15%;" />
32
- <col style="width: 15%;" />
33
- <col style="width: 15%;" />
33
+ <col style="width: 10%;" />
34
34
  </colgroup>
35
35
 
36
36
  <thead>
@@ -48,23 +48,17 @@
48
48
 
49
49
  <% unless shipment.shipped? %>
50
50
  <tr class="edit-method hidden total">
51
- <td colspan="5">
52
- <div class="row">
53
- <div class="col-12">
54
- <div class="field">
55
- <%= label_tag 'selected_shipping_rate_id', Spree::ShippingMethod.model_name.human %>
56
- <%= select_tag :selected_shipping_rate_id,
57
- options_for_select(shipment.shipping_rates.map {|sr| ["#{sr.name} #{sr.display_price}", sr.id] }, shipment.selected_shipping_rate_id),
58
- {class: 'custom-select fullwidth', data: {'shipment-number' => shipment.number } } %>
59
- </div>
60
- </div>
61
- </div>
51
+ <th><%= Spree::ShippingMethod.model_name.human %></th>
52
+ <td colspan="4">
53
+ <%= select_tag :selected_shipping_rate_id,
54
+ options_for_select(shipment.shipping_rates.map {|sr| ["#{sr.name} #{sr.display_price}", sr.id] }, shipment.selected_shipping_rate_id),
55
+ {class: 'custom-select fullwidth', data: {'shipment-number' => shipment.number } } %>
62
56
  </td>
63
57
  <td class="actions">
64
58
  <% if can? :update, shipment %>
65
- <%= link_to '', '#', class: 'save-method fa fa-check no-text with-tip',
59
+ <%= button_tag '', class: 'save-method fa fa-check no-text with-tip',
66
60
  data: {'shipment-number' => shipment.number, action: 'save'}, title: Spree.t('actions.save') %>
67
- <%= link_to '', '#', class: 'cancel-method fa fa-cancel no-text with-tip',
61
+ <%= button_tag '', class: 'cancel-method fa fa-cancel no-text with-tip',
68
62
  data: {action: 'cancel'}, title: Spree.t('actions.cancel') %>
69
63
  <% end %>
70
64
  </td>
@@ -73,32 +67,33 @@
73
67
 
74
68
  <tr class="show-method total">
75
69
  <% if rate = shipment.selected_shipping_rate %>
76
- <td colspan="4">
77
- <strong><%= rate.name %></strong>
70
+ <th><%= Spree::ShippingMethod.model_name.human %></th>
71
+ <td colspan="3">
72
+ <%= rate.name %>
78
73
  </td>
79
- <td class="total" align="center">
80
- <span><%= shipment.display_cost %></span>
74
+ <td class="total">
75
+ <%= shipment.display_cost %>
81
76
  </td>
82
77
  <% else %>
83
- <td colspan='5'><%= Spree.t(:no_shipping_method_selected) %></td>
78
+ <td colspan="5"><%= Spree.t(:no_shipping_method_selected) %></td>
84
79
  <% end %>
85
80
 
86
81
  <td class="actions">
87
82
  <% if can?(:update, shipment) && !shipment.shipped? %>
88
- <%= link_to '', '#', class: 'edit-method fa fa-edit no-text with-tip', data: {action: 'edit'}, title: Spree.t('actions.edit') %>
83
+ <%= button_tag '', class: 'edit-method fa fa-edit no-text with-tip', data: {action: 'edit'}, title: Spree.t('actions.edit'), type: :button %>
89
84
  <% end %>
90
85
  </td>
91
86
  </tr>
92
87
 
93
88
  <tr class="edit-tracking hidden total">
94
- <td colspan="5">
95
- <label><%= Spree::Shipment.human_attribute_name(:tracking) %>:</label>
89
+ <th><%= Spree::Shipment.human_attribute_name(:tracking) %></th>
90
+ <td colspan="4">
96
91
  <%= text_field_tag :tracking, shipment.tracking, id: nil %>
97
92
  </td>
98
93
  <td class="actions">
99
94
  <% if can? :update, shipment %>
100
- <%= link_to '', '#', class: 'save-tracking fa fa-check no-text with-tip', data: {'shipment-number' => shipment.number, action: 'save'}, title: Spree.t('actions.save') %>
101
- <%= link_to '', '#', class: 'cancel-tracking fa fa-cancel no-text with-tip', data: {action: 'cancel'}, title: Spree.t('actions.cancel') %>
95
+ <%= button_tag '', class: 'save-tracking fa fa-check no-text with-tip', data: { action: 'save', 'shipment-number' => shipment.number }, title: Spree.t('actions.save'), type: :button %>
96
+ <%= button_tag '', class: 'cancel-tracking fa fa-cancel no-text with-tip', data: { action: 'cancel' }, title: Spree.t('actions.cancel'), type: :button %>
102
97
  <% end %>
103
98
  </td>
104
99
  </tr>
@@ -112,16 +107,17 @@
112
107
  <% end %>
113
108
 
114
109
  <tr class="show-tracking total">
115
- <td colspan="5" class="tracking-value">
110
+ <th><%= Spree::Shipment.human_attribute_name(:tracking) %></th>
111
+ <td colspan="4" class="tracking-value">
116
112
  <% if shipment.tracking.present? %>
117
- <strong><%= Spree::Shipment.human_attribute_name(:tracking) %>:</strong> <%= shipment.tracking %>
113
+ <%= shipment.tracking %>
118
114
  <% else %>
119
- <%= Spree.t(:no_tracking_present) %>
115
+ <i><%= Spree.t(:no_tracking_present) %></i>
120
116
  <% end %>
121
117
  </td>
122
118
  <td class="actions">
123
119
  <% if can? :update, shipment %>
124
- <%= link_to '', '#', class: 'edit-tracking fa fa-edit no-text with-tip', data: {action: 'edit'}, title: Spree.t('actions.edit') %>
120
+ <%= button_tag '', class: 'edit-tracking fa fa-edit no-text with-tip', data: {action: 'edit'}, title: Spree.t('actions.edit'), type: :button %>
125
121
  <% end %>
126
122
  </td>
127
123
  </tr>
@@ -3,7 +3,7 @@
3
3
  data-item-quantity="<%= item.quantity %>"
4
4
  data-variant-id="<%= item.variant.id %>"
5
5
  >
6
- <td class="item-image">
6
+ <td class="item-image align-center">
7
7
  <%= render 'spree/admin/shared/image', image: item.variant.display_image, size: :mini %>
8
8
  </td>
9
9
  <td class="item-name">
@@ -12,18 +12,18 @@
12
12
  <strong><%= Spree::Variant.human_attribute_name(:sku) %>:</strong> <%= item.variant.sku %>
13
13
  <% end %>
14
14
  </td>
15
- <td class="item-price align-center"><%= item.line_item.single_money.to_html %></td>
16
- <td class="item-qty-show align-center">
15
+ <td class="item-price"><%= item.line_item.single_money.to_html %></td>
16
+ <td class="item-qty-show">
17
17
  <% item.states.each do |state,count| %>
18
18
  <%= count %> x <%= Spree.t(state, scope: 'inventory_states') %>
19
19
  <% end %>
20
20
  </td>
21
- <td class="item-total align-center"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
21
+ <td class="item-total"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
22
22
 
23
23
  <td class="cart-item-delete actions" data-hook="cart_item_delete">
24
24
  <% if can? :update, item %>
25
- <%= link_to '', '#', class: 'split-item icon_link fa fa-arrows-h no-text with-tip', data: {action: 'split', 'variant-id' => item.variant.id}, title: Spree.t('actions.split') %>
26
- <%= link_to '', '#', class: 'delete-item fa fa-trash no-text with-tip', data: { 'variant-id' => item.variant.id}, title: Spree.t('actions.delete') %>
25
+ <%= button_tag '', class: 'split-item icon_link fa fa-arrows-h no-text with-tip', data: { action: 'edit', 'variant-id' => item.variant.id }, title: Spree.t('actions.split'), type: :button %>
26
+ <%= button_tag '', class: 'delete-item fa fa-trash no-text with-tip', data: { action: 'remove', 'variant-id' => item.variant.id }, title: Spree.t('actions.delete'), type: :button %>
27
27
  <% end %>
28
28
  </td>
29
29
  </tr>
@@ -17,13 +17,13 @@
17
17
  <td class="line-item-name">
18
18
  <%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
19
19
  </td>
20
- <td class="line-item-price align-center">
20
+ <td class="line-item-price">
21
21
  <%= item.single_money.to_html %>
22
22
  </td>
23
- <td class="line-item-qty-show align-center">
23
+ <td class="line-item-qty-show">
24
24
  <%= item.quantity %>
25
25
  </td>
26
- <td class="line-item-total align-center">
26
+ <td class="line-item-total">
27
27
  <%= line_item_shipment_price(item, item.quantity) %>
28
28
  </td>
29
29
  </tr>
@@ -20,18 +20,18 @@
20
20
  <td>
21
21
  <%= pretty_time(payment.created_at) %>
22
22
  </td>
23
- <td class="align-center amount">
23
+ <td class="amount">
24
24
  <%= payment.display_amount.to_html %>
25
25
  </td>
26
- <td class="align-center">
26
+ <td>
27
27
  <%= payment_method_name(payment) %>
28
28
  </td>
29
- <td class="align-center">
29
+ <td>
30
30
  <%= payment.transaction_id %>
31
31
  </td>
32
- <td class="align-center">
33
- <span class="state <%= payment.state %>">
34
- <%= Spree.t(payment.state, scope: :payment_states, default: payment.state.capitalize) %>
32
+ <td>
33
+ <span class="pill pill-<%= payment.state %>">
34
+ <%= Spree.t(payment.state, scope: :payment_states) %>
35
35
  </span>
36
36
  </td>
37
37
  </tr>
@@ -26,7 +26,7 @@
26
26
  <td colspan="4">
27
27
  <strong><%= rate.name %></strong>
28
28
  </td>
29
- <td class="total" align="center">
29
+ <td class="total">
30
30
  <span><%= shipment.display_cost %></span>
31
31
  </td>
32
32
  <% else %>
@@ -9,12 +9,12 @@
9
9
  <strong><%= Spree::Variant.human_attribute_name(:sku) %>:</strong> <%= item.variant.sku %>
10
10
  <% end %>
11
11
  </td>
12
- <td class="item-price align-center"><%= item.line_item.single_money.to_html %></td>
13
- <td class="item-qty-show align-center">
12
+ <td class="item-price"><%= item.line_item.single_money.to_html %></td>
13
+ <td class="item-qty-show">
14
14
  <% item.states.each do |state,count| %>
15
15
  <%= count %> x <%= Spree.t(state, scope: 'inventory_states') %>
16
16
  <% end %>
17
17
  </td>
18
- <td class="item-total align-center"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
18
+ <td class="item-total"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
19
19
  </tr>
20
20
  <% end %>
@@ -141,20 +141,36 @@
141
141
  <th><%= sort_link @search, :shipment_state %></th>
142
142
  <% end %>
143
143
  <th><%= sort_link @search, :email %></th>
144
- <th><%= sort_link @search, :total %></th>
144
+ <th class="align-right"><%= sort_link @search, :total %></th>
145
145
  <th data-hook="admin_orders_index_header_actions" class="actions"></th>
146
146
  </tr>
147
147
  </thead>
148
148
  <tbody>
149
149
  <% @orders.each do |order| %>
150
- <tr data-hook="admin_orders_index_rows" class="state-<%= order.state.downcase %> <%= cycle('odd', 'even') %>">
151
- <td class="align-center"><%= l (@show_only_completed ? order.completed_at : order.created_at).to_date %></td>
152
- <td class="align-center"><%= link_to order.number, edit_admin_order_path(order) %></td>
153
- <td class="align-center"><span class="state <%= order.state.downcase %>"><%= Spree.t("order_state.#{order.state.downcase}") %></span></td>
154
- <td class="align-center"><span class="state <%= order.payment_state %>"><%= link_to Spree.t("payment_states.#{order.payment_state}"), admin_order_payments_path(order) if order.payment_state %></span></td>
155
- <% if Spree::Order.checkout_step_names.include?(:delivery) %>
156
- <td class="align-center"><span class="state <%= order.shipment_state %>"><%= Spree.t("shipment_states.#{order.shipment_state}") if order.shipment_state %></span></td>
150
+ <tr data-hook="admin_orders_index_rows">
151
+ <td><%= l (@show_only_completed ? order.completed_at : order.created_at).to_date %></td>
152
+ <td><%= link_to order.number, edit_admin_order_path(order) %></td>
153
+ <td>
154
+ <span class="pill pill-<%= order.state %>">
155
+ <%= Spree.t(order.state, scope: :order_state) %>
156
+ </span>
157
+ </td>
158
+ <td>
159
+ <% if order.payment_state %>
160
+ <span class="pill pill-<%= order.payment_state %>">
161
+ <%= Spree.t(order.payment_state, scope: :payment_states) %>
162
+ </span>
157
163
  <% end %>
164
+ </td>
165
+ <% if Spree::Order.checkout_step_names.include?(:delivery) %>
166
+ <td>
167
+ <% if order.shipment_state %>
168
+ <span class="pill pill-<%= order.shipment_state %>">
169
+ <%= Spree.t(order.shipment_state, scope: :shipment_states) %>
170
+ </span>
171
+ <% end %>
172
+ </td>
173
+ <% end %>
158
174
  <td>
159
175
  <% if order.user %>
160
176
  <%= link_to order.email, edit_admin_user_path(order.user) %>
@@ -162,7 +178,7 @@
162
178
  <%= mail_to order.email %>
163
179
  <% end %>
164
180
  </td>
165
- <td class="align-center"><%= order.display_total.to_html %></td>
181
+ <td class="align-right"><%= order.display_total.to_html %></td>
166
182
  <td class='actions align-center' data-hook="admin_orders_index_row_actions">
167
183
  <%= link_to_edit_url edit_admin_order_path(order), title: "admin_edit_#{dom_id(order)}", no_text: true %>
168
184
  </td>
@@ -19,7 +19,10 @@
19
19
  <% if @object.preference_source.present? %>
20
20
  <%= Spree.t :preference_source_using, name: @object.preference_source %>
21
21
  <% elsif !@object.new_record? %>
22
- <%= preference_fields(@object, f) %>
22
+ <% @object.preferences.keys.each do |key| %>
23
+ <%= render "spree/admin/shared/preference_fields/#{@object.preference_type(key)}",
24
+ form: f, attribute: "preferred_#{key}", label: Spree.t(key) %>
25
+ <% end %>
23
26
  <% end %>
24
27
  </div>
25
28
 
@@ -26,24 +26,28 @@
26
26
  </colgroup>
27
27
  <thead>
28
28
  <tr data-hook="admin_payment_methods_index_headers">
29
- <th class="no-border"></th>
29
+ <th></th>
30
30
  <th><%= Spree::PaymentMethod.human_attribute_name(:name) %></th>
31
31
  <th><%= Spree::PaymentMethod.human_attribute_name(:type) %></th>
32
32
  <th><%= Spree::PaymentMethod.human_attribute_name(:available_to_users) %></th>
33
33
  <th><%= Spree::PaymentMethod.human_attribute_name(:available_to_admin) %></th>
34
- <th><%= Spree::PaymentMethod.human_attribute_name(:active) %></th>
34
+ <th><%= Spree::PaymentMethod.human_attribute_name(:state) %></th>
35
35
  <th data-hook="admin_payment_methods_index_header_actions" class="actions"></th>
36
36
  </tr>
37
37
  </thead>
38
38
  <tbody>
39
39
  <% @payment_methods.each do |method|%>
40
- <tr id="<%= spree_dom_id method %>" data-hook="admin_payment_methods_index_rows" class="<%= cycle('odd', 'even')%>">
41
- <td class="no-border"><span class="handle"></span></td>
42
- <td class="align-center"><%= method.name %></td>
43
- <td class="align-center"><%= method.model_name.human %></td>
40
+ <tr id="<%= spree_dom_id method %>" data-hook="admin_payment_methods_index_rows">
41
+ <td><span class="handle"></span></td>
42
+ <td><%= method.name %></td>
43
+ <td><%= method.model_name.human %></td>
44
44
  <td class="align-center"><%= method.available_to_users ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
45
45
  <td class="align-center"><%= method.available_to_admin ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
46
- <td class="align-center"><%= method.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
46
+ <td class="align-center">
47
+ <span class="pill pill-<%= method.active ? 'active' : 'inactive' %>">
48
+ <%= Spree.t(method.active? ? :active : :inactive) %>
49
+ </span>
50
+ </td>
47
51
  <td data-hook="admin_payment_methods_index_row_actions" class="actions">
48
52
  <% if can?(:update, method.becomes(Spree::PaymentMethod)) %>
49
53
  <%= link_to_edit method.becomes(Spree::PaymentMethod), no_text: true %>
@@ -9,7 +9,7 @@
9
9
  </thead>
10
10
  <tbody>
11
11
  <% @payment.capture_events.each do |capture_event| %>
12
- <tr id="<%= dom_id(capture_event) %>" data-hook="capture_events_row" class="<%= cycle('odd', 'even')%>">
12
+ <tr id="<%= dom_id(capture_event) %>" data-hook="capture_events_row">
13
13
  <td><%= pretty_time(capture_event.created_at) %></td>
14
14
  <td><%= capture_event.display_amount %></td>
15
15
  </tr>
@@ -12,16 +12,20 @@
12
12
  </thead>
13
13
  <tbody>
14
14
  <% payments.each do |payment| %>
15
- <tr id="<%= dom_id(payment) %>" data-hook="payments_row" class="payment <%= cycle('odd', 'even', name: 'payment_table_cycle')%>" data-payment-id="<%= payment.id %>">
15
+ <tr id="<%= dom_id(payment) %>" data-hook="payments_row" class="payment" data-payment-id="<%= payment.id %>">
16
16
  <td><%= link_to payment.number, spree.admin_order_payment_path(@order, payment) %></td>
17
17
  <td><%= pretty_time(payment.created_at) %></td>
18
- <td class="align-center amount">
18
+ <td class="amount">
19
19
  <%= text_field_tag :amount, payment.amount, class: 'js-edit-amount align-right editing-show' %>
20
20
  <span class="js-display-amount editing-hide"><%= payment.display_amount.to_html %></span>
21
21
  </td>
22
- <td class="align-center"><%= payment_method_name(payment) %></td>
23
- <td class="align-center"><%= payment.transaction_id %></td>
24
- <td class="align-center"> <span class="state <%= payment.state %>"><%= Spree.t(payment.state, scope: :payment_states, default: payment.state.capitalize) %></span></td>
22
+ <td><%= payment_method_name(payment) %></td>
23
+ <td><%= payment.transaction_id %></td>
24
+ <td>
25
+ <span class="pill pill-<%= payment.state %>">
26
+ <%= Spree.t(payment.state, scope: :payment_states) %>
27
+ </span>
28
+ </td>
25
29
  <td class="actions">
26
30
  <div class="editing-show">
27
31
  <%= link_to_with_icon 'save', Spree.t('actions.save'), nil, no_text: true, class: "js-save", data: {action: 'save'} %>
@@ -3,8 +3,8 @@
3
3
  <% admin_breadcrumb(link_to plural_resource_name(Spree::Payment), spree.admin_order_payments_path(@order)) %>
4
4
  <% admin_breadcrumb do %>
5
5
  <%= payment_method_name(@payment) %>
6
- <span class="state <%= @payment.state %>">
7
- <%= Spree.t(@payment.state, scope: :payment_states, default: @payment.state.capitalize) %>
6
+ <span class="pill pill-<%= @payment.state %>">
7
+ <%= Spree.t(@payment.state, scope: :payment_states ) %>
8
8
  </span>
9
9
  <% end %>
10
10