spree_backend 4.1.15 → 4.2.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/backend-add.svg +5 -0
  3. data/app/assets/images/backend-adjust.svg +5 -0
  4. data/app/assets/images/backend-approve.svg +3 -0
  5. data/app/assets/images/backend-arrow-down.svg +1 -0
  6. data/app/assets/images/backend-arrow-left.svg +1 -0
  7. data/app/assets/images/backend-arrow-right.svg +1 -0
  8. data/app/assets/images/backend-arrow-up.svg +1 -0
  9. data/app/assets/images/backend-calendar.svg +9 -0
  10. data/app/assets/images/backend-cancel.svg +7 -0
  11. data/app/assets/images/backend-capture.svg +3 -0
  12. data/app/assets/images/backend-cart.svg +1 -0
  13. data/app/assets/images/backend-chevron-down.svg +1 -0
  14. data/app/assets/images/backend-chevron-left.svg +1 -0
  15. data/app/assets/images/backend-chevron-right.svg +1 -0
  16. data/app/assets/images/backend-chevron-up.svg +1 -0
  17. data/app/assets/images/backend-clone.svg +7 -0
  18. data/app/assets/images/backend-close.svg +7 -0
  19. data/app/assets/images/backend-delete.svg +6 -0
  20. data/app/assets/images/backend-double-chevron-left.svg +15 -0
  21. data/app/assets/images/backend-double-chevron-right.svg +17 -0
  22. data/app/assets/images/backend-edit.svg +14 -0
  23. data/app/assets/images/backend-enter.svg +6 -0
  24. data/app/assets/images/backend-envelope.svg +3 -0
  25. data/app/assets/images/backend-exit.svg +13 -0
  26. data/app/assets/images/backend-extensions.svg +4 -0
  27. data/app/assets/images/backend-eye-open.svg +8 -0
  28. data/app/assets/images/backend-file.svg +6 -0
  29. data/app/assets/images/backend-filter.svg +3 -0
  30. data/app/assets/images/backend-folder.svg +4 -0
  31. data/app/assets/images/backend-images.svg +7 -0
  32. data/app/assets/images/backend-info.svg +7 -0
  33. data/app/assets/images/backend-items.svg +5 -0
  34. data/app/assets/images/backend-leaf.svg +7 -0
  35. data/app/assets/images/backend-list.svg +5 -0
  36. data/app/assets/images/backend-location.svg +4 -0
  37. data/app/assets/images/backend-menu.svg +5 -0
  38. data/app/assets/images/backend-money.svg +1 -0
  39. data/app/assets/images/backend-move.svg +5 -0
  40. data/app/assets/images/backend-ok.svg +3 -0
  41. data/app/assets/images/backend-pagination-double-arrow-right.svg +8 -0
  42. data/app/assets/images/backend-payments.svg +8 -0
  43. data/app/assets/images/backend-pencil.svg +1 -0
  44. data/app/assets/images/backend-products.svg +5 -0
  45. data/app/assets/images/backend-promotion.svg +8 -0
  46. data/app/assets/images/backend-recycle.svg +5 -0
  47. data/app/assets/images/backend-remove.svg +6 -0
  48. data/app/assets/images/backend-report.svg +6 -0
  49. data/app/assets/images/backend-resume.svg +5 -0
  50. data/app/assets/images/backend-returns.svg +3 -0
  51. data/app/assets/images/backend-save.svg +3 -0
  52. data/app/assets/images/backend-search.svg +1 -0
  53. data/app/assets/images/backend-settings.svg +6 -0
  54. data/app/assets/images/backend-shipping.svg +3 -0
  55. data/app/assets/images/backend-slack.svg +3 -0
  56. data/app/assets/images/backend-sort.svg +5 -0
  57. data/app/assets/images/backend-split.svg +3 -0
  58. data/app/assets/images/backend-store.svg +14 -0
  59. data/app/assets/images/backend-tick.svg +3 -0
  60. data/app/assets/images/backend-update.svg +3 -0
  61. data/app/assets/images/backend-user.svg +3 -0
  62. data/app/assets/images/backend-users.svg +6 -0
  63. data/app/assets/images/backend-view.svg +8 -0
  64. data/app/assets/images/backend-void.svg +7 -0
  65. data/app/assets/javascripts/spree/backend/admin.js +156 -147
  66. data/app/assets/javascripts/spree/backend/checkouts/edit.js +1 -0
  67. data/app/assets/javascripts/spree/backend/flatpickr_locals.js +37 -0
  68. data/app/assets/javascripts/spree/backend/multi_currency.js +38 -0
  69. data/app/assets/javascripts/spree/backend/payments/edit.js +4 -3
  70. data/app/assets/javascripts/spree/backend/payments/new.js +18 -18
  71. data/app/assets/javascripts/spree/backend/promotions.js +1 -1
  72. data/app/assets/javascripts/spree/backend/spree-select2.js +18 -4
  73. data/app/assets/javascripts/spree/backend/stock_management.js +2 -1
  74. data/app/assets/javascripts/spree/backend/taxon_tree_menu.js +4 -4
  75. data/app/assets/javascripts/spree/backend/taxonomy.js +8 -1
  76. data/app/assets/javascripts/spree/backend/taxons.js +25 -16
  77. data/app/assets/javascripts/spree/backend/user_picker.js +1 -1
  78. data/app/assets/javascripts/spree/backend/variant_autocomplete.js +1 -1
  79. data/app/assets/javascripts/spree/backend/variant_management.js +2 -1
  80. data/app/assets/javascripts/spree/backend.js +5 -2
  81. data/app/assets/stylesheets/spree/backend/components/_buttons.scss +27 -11
  82. data/app/assets/stylesheets/spree/backend/components/_filters.scss +35 -5
  83. data/app/assets/stylesheets/spree/backend/components/_icons.scss +39 -4
  84. data/app/assets/stylesheets/spree/backend/components/_main.scss +32 -6
  85. data/app/assets/stylesheets/spree/backend/components/_navbar.scss +16 -8
  86. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +119 -55
  87. data/app/assets/stylesheets/spree/backend/components/_tables.scss +62 -19
  88. data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +26 -63
  89. data/app/assets/stylesheets/spree/backend/global/_variables.scss +5 -1
  90. data/app/assets/stylesheets/spree/backend/plugins/_flatpickr.scss +95 -0
  91. data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +0 -117
  92. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +73 -24
  93. data/app/assets/stylesheets/spree/backend/shared/_base.scss +40 -0
  94. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +38 -0
  95. data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +5 -0
  96. data/app/assets/stylesheets/spree/backend/views/_order_payments.scss +12 -0
  97. data/app/assets/stylesheets/spree/backend/views/_product_properties.scss +11 -0
  98. data/app/assets/stylesheets/spree/backend/views/prototypes.scss +42 -0
  99. data/app/assets/stylesheets/spree/backend.css +1 -1
  100. data/app/controllers/spree/admin/general_settings_controller.rb +27 -0
  101. data/app/controllers/spree/admin/prices_controller.rb +39 -0
  102. data/app/controllers/spree/admin/stock_transfers_controller.rb +8 -1
  103. data/app/controllers/spree/admin/stores_controller.rb +61 -1
  104. data/app/controllers/spree/admin/taxons_controller.rb +5 -1
  105. data/app/helpers/spree/admin/base_helper.rb +25 -8
  106. data/app/helpers/spree/admin/navigation_helper.rb +50 -19
  107. data/app/helpers/spree/admin/orders_helper.rb +3 -3
  108. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_first_page.html.erb +1 -1
  109. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_gap.html.erb +1 -1
  110. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_last_page.html.erb +1 -1
  111. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_next_page.html.erb +1 -1
  112. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_page.html.erb +0 -0
  113. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_paginator.html.erb +1 -1
  114. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_prev_page.html.erb +1 -1
  115. data/app/views/spree/admin/adjustments/_adjustment.html.erb +2 -2
  116. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +16 -16
  117. data/app/views/spree/admin/adjustments/edit.html.erb +2 -2
  118. data/app/views/spree/admin/adjustments/index.html.erb +3 -3
  119. data/app/views/spree/admin/adjustments/new.html.erb +1 -1
  120. data/app/views/spree/admin/countries/_form.html.erb +9 -4
  121. data/app/views/spree/admin/countries/index.html.erb +27 -24
  122. data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +37 -35
  123. data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +2 -0
  124. data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +45 -43
  125. data/app/views/spree/admin/customer_returns/index.html.erb +3 -1
  126. data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
  127. data/app/views/spree/admin/general_settings/_form.html.erb +27 -0
  128. data/app/views/spree/admin/general_settings/edit.html.erb +4 -3
  129. data/app/views/spree/admin/images/edit.html.erb +2 -2
  130. data/app/views/spree/admin/images/index.html.erb +7 -7
  131. data/app/views/spree/admin/images/new.html.erb +2 -2
  132. data/app/views/spree/admin/log_entries/index.html.erb +4 -3
  133. data/app/views/spree/admin/option_types/_option_value_fields.html.erb +1 -1
  134. data/app/views/spree/admin/option_types/edit.html.erb +22 -20
  135. data/app/views/spree/admin/option_types/index.html.erb +27 -25
  136. data/app/views/spree/admin/orders/_adjustments.html.erb +26 -26
  137. data/app/views/spree/admin/orders/_line_items.html.erb +7 -7
  138. data/app/views/spree/admin/orders/_order_actions.html.erb +1 -1
  139. data/app/views/spree/admin/orders/_risk_analysis.html.erb +44 -42
  140. data/app/views/spree/admin/orders/_shipment.html.erb +6 -6
  141. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +5 -5
  142. data/app/views/spree/admin/orders/_store_form.html.erb +3 -3
  143. data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
  144. data/app/views/spree/admin/orders/index.html.erb +135 -127
  145. data/app/views/spree/admin/payment_methods/index.html.erb +6 -4
  146. data/app/views/spree/admin/payments/_capture_events.html.erb +18 -16
  147. data/app/views/spree/admin/payments/_form.html.erb +1 -1
  148. data/app/views/spree/admin/payments/_list.html.erb +39 -37
  149. data/app/views/spree/admin/payments/index.html.erb +2 -3
  150. data/app/views/spree/admin/payments/new.html.erb +1 -1
  151. data/app/views/spree/admin/payments/show.html.erb +1 -1
  152. data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +30 -30
  153. data/app/views/spree/admin/payments/source_views/_gateway.html.erb +20 -18
  154. data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +28 -26
  155. data/app/views/spree/admin/prices/_variant_prices.html.erb +43 -0
  156. data/app/views/spree/admin/prices/index.html.erb +21 -0
  157. data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +16 -4
  158. data/app/views/spree/admin/product_properties/index.html.erb +24 -19
  159. data/app/views/spree/admin/products/_add_stock_form.html.erb +1 -1
  160. data/app/views/spree/admin/products/_autocomplete.js.erb +27 -21
  161. data/app/views/spree/admin/products/_form.html.erb +40 -9
  162. data/app/views/spree/admin/products/edit.html.erb +1 -1
  163. data/app/views/spree/admin/products/index.html.erb +24 -19
  164. data/app/views/spree/admin/products/new.html.erb +11 -2
  165. data/app/views/spree/admin/products/stock.html.erb +3 -3
  166. data/app/views/spree/admin/promotion_categories/index.html.erb +4 -1
  167. data/app/views/spree/admin/promotions/_actions.html.erb +2 -2
  168. data/app/views/spree/admin/promotions/_form.html.erb +44 -17
  169. data/app/views/spree/admin/promotions/_promotion_action.html.erb +1 -1
  170. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
  171. data/app/views/spree/admin/promotions/_rules.html.erb +4 -4
  172. data/app/views/spree/admin/promotions/edit.html.erb +2 -2
  173. data/app/views/spree/admin/promotions/index.html.erb +5 -3
  174. data/app/views/spree/admin/promotions/new.html.erb +7 -6
  175. data/app/views/spree/admin/promotions/rules/_country.html.erb +1 -1
  176. data/app/views/spree/admin/promotions/rules/_item_total.html.erb +5 -5
  177. data/app/views/spree/admin/promotions/rules/_option_value.html.erb +6 -13
  178. data/app/views/spree/admin/promotions/rules/_product.html.erb +1 -1
  179. data/app/views/spree/admin/promotions/rules/_taxon.html.erb +1 -1
  180. data/app/views/spree/admin/properties/index.html.erb +5 -3
  181. data/app/views/spree/admin/prototypes/_prototypes.html.erb +30 -28
  182. data/app/views/spree/admin/prototypes/index.html.erb +21 -19
  183. data/app/views/spree/admin/prototypes/show.html.erb +21 -8
  184. data/app/views/spree/admin/refunds/edit.html.erb +2 -2
  185. data/app/views/spree/admin/refunds/new.html.erb +2 -2
  186. data/app/views/spree/admin/reimbursement_types/_form.html.erb +4 -4
  187. data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -2
  188. data/app/views/spree/admin/reimbursements/edit.html.erb +66 -63
  189. data/app/views/spree/admin/reimbursements/index.html.erb +21 -20
  190. data/app/views/spree/admin/reimbursements/show.html.erb +66 -60
  191. data/app/views/spree/admin/reports/index.html.erb +18 -17
  192. data/app/views/spree/admin/reports/sales_total.html.erb +20 -19
  193. data/app/views/spree/admin/return_authorizations/_form.html.erb +3 -2
  194. data/app/views/spree/admin/return_authorizations/edit.html.erb +3 -3
  195. data/app/views/spree/admin/return_authorizations/index.html.erb +3 -1
  196. data/app/views/spree/admin/return_authorizations/new.html.erb +2 -2
  197. data/app/views/spree/admin/return_index/customer_returns.html.erb +4 -4
  198. data/app/views/spree/admin/return_index/return_authorizations.html.erb +4 -4
  199. data/app/views/spree/admin/roles/index.html.erb +21 -19
  200. data/app/views/spree/admin/shared/_account_nav.html.erb +51 -65
  201. data/app/views/spree/admin/shared/_address_form.html.erb +31 -73
  202. data/app/views/spree/admin/shared/_cal_close.html.erb +10 -0
  203. data/app/views/spree/admin/shared/_content_header.html.erb +40 -21
  204. data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
  205. data/app/views/spree/admin/shared/_header.html.erb +14 -11
  206. data/app/views/spree/admin/shared/_index_table_options.html.erb +5 -7
  207. data/app/views/spree/admin/shared/_main_menu.html.erb +25 -14
  208. data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
  209. data/app/views/spree/admin/shared/_order_summary.html.erb +2 -0
  210. data/app/views/spree/admin/shared/_order_tabs.html.erb +9 -9
  211. data/app/views/spree/admin/shared/_product_tabs.html.erb +13 -5
  212. data/app/views/spree/admin/shared/_refunds.html.erb +31 -29
  213. data/app/views/spree/admin/shared/_report_order_criteria.html.erb +27 -6
  214. data/app/views/spree/admin/shared/_sidebar.html.erb +19 -1
  215. data/app/views/spree/admin/shared/_table_filter.html.erb +3 -3
  216. data/app/views/spree/admin/shared/_translations.html.erb +33 -1
  217. data/app/views/spree/admin/shared/_version.html.erb +1 -1
  218. data/app/views/spree/admin/shared/named_types/_index.html.erb +3 -1
  219. data/app/views/spree/admin/shipping_categories/index.html.erb +3 -1
  220. data/app/views/spree/admin/shipping_methods/index.html.erb +3 -1
  221. data/app/views/spree/admin/state_changes/index.html.erb +5 -2
  222. data/app/views/spree/admin/states/_state_list.html.erb +25 -24
  223. data/app/views/spree/admin/states/index.html.erb +1 -1
  224. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
  225. data/app/views/spree/admin/stock_locations/index.html.erb +3 -1
  226. data/app/views/spree/admin/stock_movements/index.html.erb +28 -26
  227. data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +20 -18
  228. data/app/views/spree/admin/stock_transfers/index.html.erb +6 -4
  229. data/app/views/spree/admin/stock_transfers/new.html.erb +3 -3
  230. data/app/views/spree/admin/stock_transfers/show.html.erb +3 -3
  231. data/app/views/spree/admin/store_credit_categories/index.html.erb +3 -1
  232. data/app/views/spree/admin/store_credits/index.html.erb +3 -1
  233. data/app/views/spree/admin/stores/_form.html.erb +128 -68
  234. data/app/views/spree/admin/stores/edit.html.erb +1 -1
  235. data/app/views/spree/admin/stores/index.html.erb +4 -2
  236. data/app/views/spree/admin/tax_categories/index.html.erb +29 -27
  237. data/app/views/spree/admin/tax_rates/index.html.erb +3 -1
  238. data/app/views/spree/admin/taxonomies/_list.html.erb +24 -22
  239. data/app/views/spree/admin/taxonomies/edit.html.erb +2 -2
  240. data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
  241. data/app/views/spree/admin/taxons/_form.html.erb +3 -3
  242. data/app/views/spree/admin/taxons/_taxon_table.html.erb +24 -22
  243. data/app/views/spree/admin/taxons/edit.html.erb +6 -2
  244. data/app/views/spree/admin/taxons/index.html.erb +1 -1
  245. data/app/views/spree/admin/users/_lifetime_stats.html.erb +24 -23
  246. data/app/views/spree/admin/users/_sidebar.html.erb +5 -5
  247. data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
  248. data/app/views/spree/admin/users/edit.html.erb +2 -2
  249. data/app/views/spree/admin/users/index.html.erb +25 -23
  250. data/app/views/spree/admin/users/items.html.erb +3 -2
  251. data/app/views/spree/admin/users/orders.html.erb +30 -29
  252. data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +3 -3
  253. data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +2 -2
  254. data/app/views/spree/admin/variants/_form.html.erb +14 -2
  255. data/app/views/spree/admin/variants/_split.js.erb +2 -2
  256. data/app/views/spree/admin/variants/index.html.erb +7 -5
  257. data/app/views/spree/admin/zones/index.html.erb +4 -4
  258. data/app/views/spree/layouts/admin.html.erb +33 -27
  259. data/config/initializers/ransack.rb +31 -0
  260. data/config/routes.rb +1 -0
  261. data/lib/spree/backend.rb +2 -0
  262. data/lib/spree_backend.rb +0 -1
  263. data/spec/fixtures/thinking-cat.jpg +0 -0
  264. data/spree_backend.gemspec +6 -4
  265. data/vendor/assets/javascripts/js.cookie.js +154 -156
  266. data/vendor/assets/javascripts/purify.js +1217 -0
  267. data/vendor/assets/javascripts/sortable.js +3709 -0
  268. data/vendor/assets/stylesheets/animate.css +7 -3156
  269. data/vendor/assets/stylesheets/jquery.jstree/themes/spree/style.scss +23 -9
  270. metadata +138 -25
@@ -6,7 +6,7 @@
6
6
  <% content_for :sidebar do %>
7
7
  <ul class="nav flex-column nav-pills" data-hook="admin_product_tabs">
8
8
  <%= content_tag :li do %>
9
- <%= link_to_with_icon 'edit',
9
+ <%= link_to_with_icon 'edit.svg',
10
10
  Spree.t(:details),
11
11
  edit_admin_product_url(@product),
12
12
  class: "nav-link #{'active' if current == :details}" %>
@@ -14,7 +14,7 @@
14
14
  <% end if can?(:admin, Spree::Product) %>
15
15
 
16
16
  <%= content_tag :li do %>
17
- <%= link_to_with_icon 'picture',
17
+ <%= link_to_with_icon 'images.svg',
18
18
  Spree.t(:images),
19
19
  spree.admin_product_images_url(@product),
20
20
  class: "nav-link #{'active' if current == :images}" %>
@@ -22,7 +22,7 @@
22
22
  <% end if can?(:admin, Spree::Image) && !@product.deleted? %>
23
23
 
24
24
  <%= content_tag :li do %>
25
- <%= link_to_with_icon 'th-large',
25
+ <%= link_to_with_icon 'adjust.svg',
26
26
  Spree.t(:variants),
27
27
  spree.admin_product_variants_url(@product),
28
28
  class: "nav-link #{'active' if current == :variants}" %>
@@ -30,7 +30,7 @@
30
30
  <% end if can?(:admin, Spree::Variant) && !@product.deleted? %>
31
31
 
32
32
  <%= content_tag :li do %>
33
- <%= link_to_with_icon 'list-alt',
33
+ <%= link_to_with_icon 'list.svg',
34
34
  Spree.t(:properties),
35
35
  spree.admin_product_product_properties_url(@product),
36
36
  class: "nav-link #{'active' if current == :properties}" %>
@@ -38,11 +38,19 @@
38
38
  <% end if can?(:admin, Spree::ProductProperty) && !@product.deleted? %>
39
39
 
40
40
  <%= content_tag :li do %>
41
- <%= link_to_with_icon 'home',
41
+ <%= link_to_with_icon 'items.svg',
42
42
  Spree.t(:stock),
43
43
  stock_admin_product_url(@product),
44
44
  class: "nav-link #{'active' if current == :stock}" %>
45
45
 
46
46
  <% end if can?(:admin, Spree::StockItem) && !@product.deleted? %>
47
+
48
+ <%= content_tag :li do %>
49
+ <%= link_to_with_icon 'money.svg',
50
+ Spree.t(:prices),
51
+ admin_product_prices_path(@product),
52
+ class: "nav-link #{'active' if current == :prices}" %>
53
+
54
+ <% end if can?(:admin, Spree::Price) && !@product.deleted? %>
47
55
  </ul>
48
56
  <% end %>
@@ -1,32 +1,34 @@
1
- <table class="table table-condensed table-bordered" id='refunds' data-order-id='<%= @order.number %>'>
2
- <thead>
3
- <tr data-hook="refunds_header">
4
- <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
5
- <th><%= Spree.t(:payment_identifier) %></th>
6
- <th><%= Spree.t(:amount) %></th>
7
- <th><%= Spree.t(:payment_method) %></th>
8
- <th><%= Spree.t(:transaction_id) %></th>
9
- <th><%= Spree.t(:reason) %></th>
10
- <% if show_actions %>
11
- <th></th>
12
- <% end %>
13
- </tr>
14
- </thead>
15
- <tbody>
16
- <% refunds.each do |refund| %>
17
- <tr id="<%= dom_id(refund) %>" data-hook="refunds_row" class="<%= cycle('odd', 'even', name: 'refund_table_cycle')%>">
18
- <td><%= pretty_time(refund.created_at) %></td>
19
- <td><%= refund.payment.number %></td>
20
- <td class="amount"><%= refund.display_amount %></td>
21
- <td><%= payment_method_name(refund.payment) %></td>
22
- <td><%= refund.transaction_id %></td>
23
- <td><%= truncate(refund.reason.name, length: 100) %></td>
1
+ <div class="table-responsive">
2
+ <table class="table table-condensed table-bordered" id='refunds' data-order-id='<%= @order.number %>'>
3
+ <thead>
4
+ <tr data-hook="refunds_header">
5
+ <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
6
+ <th><%= Spree.t(:payment_identifier) %></th>
7
+ <th><%= Spree.t(:amount) %></th>
8
+ <th><%= Spree.t(:payment_method) %></th>
9
+ <th><%= Spree.t(:transaction_id) %></th>
10
+ <th><%= Spree.t(:reason) %></th>
24
11
  <% if show_actions %>
25
- <td class="actions actions-1">
26
- <%= link_to_with_icon('edit', Spree.t(:edit), edit_admin_order_payment_refund_path(refund.payment.order, refund.payment, refund), no_text: true, class: "btn btn-outline-secondary btn-sm") if can?(:edit, refund) %>
27
- </td>
12
+ <th></th>
28
13
  <% end %>
29
14
  </tr>
30
- <% end %>
31
- </tbody>
32
- </table>
15
+ </thead>
16
+ <tbody>
17
+ <% refunds.each do |refund| %>
18
+ <tr id="<%= dom_id(refund) %>" data-hook="refunds_row" class="<%= cycle('odd', 'even', name: 'refund_table_cycle')%>">
19
+ <td><%= pretty_time(refund.created_at) %></td>
20
+ <td><%= refund.payment.number %></td>
21
+ <td class="amount"><%= refund.display_amount %></td>
22
+ <td><%= payment_method_name(refund.payment) %></td>
23
+ <td><%= refund.transaction_id %></td>
24
+ <td><%= truncate(refund.reason.name, length: 100) %></td>
25
+ <% if show_actions %>
26
+ <td class="actions actions-1">
27
+ <%= link_to_with_icon('edit.svg', Spree.t(:edit), edit_admin_order_payment_refund_path(refund.payment.order, refund.payment, refund), no_text: true, class: "btn btn-outline-secondary btn-sm") if can?(:edit, refund) %>
28
+ </td>
29
+ <% end %>
30
+ </tr>
31
+ <% end %>
32
+ </tbody>
33
+ </table>
34
+ </div>
@@ -2,16 +2,37 @@
2
2
  <div class="form-group date-range-filter">
3
3
  <%= label_tag nil, Spree.t(:date_range) %>
4
4
  <div class="date-range-filter row">
5
- <div class="col-md-6">
6
- <%= s.text_field :completed_at_gt, class: 'datepicker datepicker-from form-control', value: datepicker_field_value(params[:q][:completed_at_gt]) %>
5
+ <div class="col-12 col-md-6 mb-3 mb-md-0">
6
+ <div class="input-group datePickerFrom"
7
+ data-wrap="true"
8
+ data-max-date="<%= params[:q][:completed_at_lt] %>" >
9
+ <%= s.text_field :completed_at_gt,
10
+ class: 'form-control shadow-none',
11
+ placeholder: Spree.t(:starting_from),
12
+ value: datepicker_field_value(params[:q][:completed_at_gt]),
13
+ 'data-input':'' %>
14
+
15
+ <%= render partial: 'spree/admin/shared/cal_close' %>
16
+ </div>
17
+ </div>
18
+
19
+ <div class="col-12 col-md-6 mt-3 mt-md-0">
20
+ <div class="input-group datePickerTo"
21
+ data-wrap="true"
22
+ data-min-date="<%= params[:q][:completed_at_gt] %>" >
23
+
24
+ <%= s.text_field :completed_at_lt,
25
+ class: 'form-control shadow-none',
26
+ placeholder: Spree.t(:ending_at),
27
+ value: datepicker_field_value(params[:q][:completed_at_lt]),
28
+ 'data-input':'' %>
29
+ <%= render partial: 'spree/admin/shared/cal_close' %>
30
+ </div>
7
31
  </div>
8
- <div class="col-md-6">
9
- <%= s.text_field :completed_at_lt, class: 'datepicker datepicker-to form-control', value: datepicker_field_value(params[:q][:completed_at_lt]) %>
10
- </div>
11
32
  </div>
12
33
  </div>
13
34
 
14
35
  <div class="form-actions">
15
- <%= button Spree.t(:search), 'search' %>
36
+ <%= button Spree.t(:search), 'search.svg' %>
16
37
  </div>
17
38
  <% end %>
@@ -1,5 +1,23 @@
1
+ <div class="d-lg-none page-actions__close border-bottom text-right">
2
+ <button
3
+ id="contextual-menu-close"
4
+ class="btn btn-link"
5
+ type="button"
6
+ aria-expanded="false"
7
+ aria-label="Toggle page actions">
8
+ <%= svg_icon name: "cancel.svg", width: '20', height: '20' %>
9
+ </button>
10
+ </div>
11
+ <% if content_for?(:page_actions) %>
12
+ <div class="page-actions d-lg-none col-12 px-0 <% if content_for?(:sidebar) %>pb-3<% end %> text-center" data-hook="toolbar">
13
+ <div class="d-flex justify-content-center flex-wrap">
14
+ <%= yield :page_actions %>
15
+ </div>
16
+ </div>
17
+ <% end %>
18
+
1
19
  <% if content_for?(:sidebar) %>
2
- <aside id="sidebar" class="main-right-sidebar" data-hook>
20
+ <aside id="sidebar" class="main-right-sidebar px-2" data-hook>
3
21
  <%= yield :sidebar %>
4
22
  </aside>
5
23
  <% end %>
@@ -1,10 +1,10 @@
1
1
  <% if content_for?(:table_filter) %>
2
- <div class="filter-wrap row">
2
+ <div class="filter-wrap row mb-4">
3
3
  <div class="col-12">
4
4
  <div class="input-group index-filter-button">
5
5
  <span class="input-group-btn">
6
- <button class="btn js-show-index-filters" type="button">
7
- <span class="icon icon-chevron-right"></span>
6
+ <button class="btn js-show-index-filters m-0" type="button">
7
+ <%= svg_icon name: "chevron-right.svg", width: '12', height: '12' %>
8
8
  <%= Spree.t(:filter) %>
9
9
  </button>
10
10
  </span>
@@ -10,10 +10,42 @@
10
10
  confirm_delete: Spree.t(:confirm_delete),
11
11
  currency_separator: I18n.t('number.currency.format.separator'),
12
12
  cut: Spree.t(:cut),
13
+
13
14
  date_picker: Spree.t(:js_format, scope: 'date_picker', default: 'yy/mm/dd'),
15
+ firstDay: Spree.t(:first_day, scope: 'date_picker', default: (0).to_i),
16
+ rangeSep: Spree.t(:rangeSeparator, scope: 'date_picker', default: ' to '),
17
+ weekAbbr: Spree.t(:weekAbbreviation, scope: 'date_picker', default: 'Wk'),
18
+ scrollTitle: Spree.t(:scrollTitle, scope: 'date_picker', default: 'Scroll to increment'),
19
+ toggleTitle: Spree.t(:toggleTitle, scope: 'date_picker', default: 'Click to toggle'),
20
+ am: Spree.t(:am, scope: 'date_picker', default: 'AM'),
21
+ pm: Spree.t(:pm, scope: 'date_picker', default: 'PM'),
22
+ yearAriaLabel: Spree.t(:yearAriaLabel, scope: 'date_picker', default: 'Year'),
23
+ hourAriaLabel: Spree.t(:hourAriaLabel, scope: 'date_picker', default: 'Hour'),
24
+ minuteAriaLabel: Spree.t(:minuteAriaLabel, scope: 'date_picker', default: 'Minute'),
25
+
26
+ sun: Spree.t(:sun, scope: 'date_picker', default: 'Sun'),
27
+ mon: Spree.t(:mon, scope: 'date_picker', default: 'Mon'),
28
+ tue: Spree.t(:tue, scope: 'date_picker', default: 'Tue'),
29
+ wed: Spree.t(:wed, scope: 'date_picker', default: 'Wed'),
30
+ thu: Spree.t(:thu, scope: 'date_picker', default: 'Thu'),
31
+ fri: Spree.t(:fri, scope: 'date_picker', default: 'Fri'),
32
+ sat: Spree.t(:sat, scope: 'date_picker', default: 'Sat'),
33
+
34
+ lh_jan: Spree.t(:lh_jan, scope: 'date_picker', default: 'January'),
35
+ lh_feb: Spree.t(:lh_feb, scope: 'date_picker', default: 'February'),
36
+ lh_mar: Spree.t(:lh_mar, scope: 'date_picker', default: 'March'),
37
+ lh_apr: Spree.t(:lh_apr, scope: 'date_picker', default: 'April'),
38
+ lh_may: Spree.t(:lh_may, scope: 'date_picker', default: 'May'),
39
+ lh_jun: Spree.t(:lh_jun, scope: 'date_picker', default: 'June'),
40
+ lh_jul: Spree.t(:lh_jul, scope: 'date_picker', default: 'July'),
41
+ lh_aug: Spree.t(:lh_aug, scope: 'date_picker', default: 'August'),
42
+ lh_sep: Spree.t(:lh_sep, scope: 'date_picker', default: 'September'),
43
+ lh_oct: Spree.t(:lh_oct, scope: 'date_picker', default: 'October'),
44
+ lh_nov: Spree.t(:lh_nov, scope: 'date_picker', default: 'November'),
45
+ lh_dec: Spree.t(:lh_dec, scope: 'date_picker', default: 'December'),
46
+
14
47
  destroy: Spree.t(:destroy, scope: :actions),
15
48
  edit: Spree.t(:edit, scope: :actions),
16
- first_day: Spree.t(:first_day, scope: 'date_picker', default: 0).to_i,
17
49
  find_a_taxon: Spree.t(:find_a_taxon),
18
50
  item_stock_placeholder: Spree.t(:choose_location),
19
51
  loading: Spree.t(:loading),
@@ -1,6 +1,6 @@
1
1
  <% if can?(:admin, current_store) && Spree::Config[:admin_show_version] %>
2
2
  <small
3
- class="spree-version <%= 'd-md-block' if cookies['sidebar-minimized'] == 'false' %> d-none font-weight-bold ml-3 my-3 text-muted"
3
+ class="spree-version font-weight-bold ml-3 my-3 text-muted"
4
4
  aria-label="Spree Commerce version">
5
5
  <%= Spree.version %>
6
6
  </small>
@@ -3,10 +3,11 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to new_button_text, new_object_url, { icon: 'add', id: 'admin_new_named_type', class: "btn-success" } %>
6
+ <%= button_link_to new_button_text, new_object_url, { icon: 'add.svg', id: 'admin_new_named_type', class: "btn-success" } %>
7
7
  <% end if can? :create, resource %>
8
8
 
9
9
  <% if @collection.any? %>
10
+ <div class="table-responsive">
10
11
  <table class="table" id='listing_named_types' data-hook>
11
12
  <thead>
12
13
  <tr data-hook="named_types_header">
@@ -34,6 +35,7 @@
34
35
  <% end %>
35
36
  </tbody>
36
37
  </table>
38
+ </div>
37
39
  <% else %>
38
40
  <div class="alert alert-info no-objects-found">
39
41
  <%= Spree.t(:no_resource_found, resource: resource_name) %>,
@@ -3,10 +3,11 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_shipping_category), new_object_url, class: "btn-success", icon: 'add' %>
6
+ <%= button_link_to Spree.t(:new_shipping_category), new_object_url, class: "btn-success", icon: 'add.svg' %>
7
7
  <% end if can? :create, Spree::ShippingCategory %>
8
8
 
9
9
  <% if @shipping_categories.any? %>
10
+ <div class="table-responsive">
10
11
  <table class="table">
11
12
  <thead>
12
13
  <tr data-hook="categories_header">
@@ -26,6 +27,7 @@
26
27
  <% end %>
27
28
  </tbody>
28
29
  </table>
30
+ </div>
29
31
  <% else %>
30
32
  <div class="alert alert-info no-objects-found">
31
33
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ShippingCategory)) %>,
@@ -3,10 +3,11 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_shipping_method), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_shipping_method_link' %>
6
+ <%= button_link_to Spree.t(:new_shipping_method), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_shipping_method_link' %>
7
7
  <% end if can? :create, Spree::ShippingMethod %>
8
8
 
9
9
  <% if @shipping_methods.any? %>
10
+ <div class="table-responsive">
10
11
  <table class="table" id='listing_shipping_methods'>
11
12
  <thead>
12
13
  <tr data-hook="admin_shipping_methods_index_headers">
@@ -32,6 +33,7 @@
32
33
  <% end %>
33
34
  </tbody>
34
35
  </table>
36
+ </div>
35
37
  <% else %>
36
38
  <div class="alert alert-info no-objects-found">
37
39
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ShippingMethod)) %>,
@@ -5,6 +5,7 @@
5
5
  <% end %>
6
6
 
7
7
  <% if @state_changes.any? %>
8
+ <div class="table-responsive">
8
9
  <table class="table" id="listing_order_state_changes" data-hook>
9
10
  <thead>
10
11
  <tr data-hook="admin_orders_state_changes_headers">
@@ -18,10 +19,11 @@
18
19
 
19
20
  <tbody>
20
21
  <% @state_changes.each do |state_change| %>
22
+ <% scope = state_change.name == 'order' ? "#{ state_change.name }_state" : "#{ state_change.name }_states" -%>
21
23
  <tr>
22
24
  <td><%= Spree.t("state_machine_states.#{state_change.name}") %></td>
23
- <td><%= state_change.previous_state ? Spree.t(state_change.previous_state, scope: "#{ state_change.name }_state") : Spree.t(:previous_state_missing) %></td>
24
- <td><%= Spree.t(state_change.next_state, scope: "#{ state_change.name }_state") %></td>
25
+ <td><%= state_change.previous_state ? Spree.t(state_change.previous_state, scope: scope) : Spree.t(:previous_state_missing) %></td>
26
+ <td><%= Spree.t(state_change.next_state, scope: scope) %></td>
25
27
  <td>
26
28
  <% if state_change.user %>
27
29
  <% user_login = state_change.user.try(:login) || state_change.user.try(:email) %>
@@ -38,6 +40,7 @@
38
40
  <% end %>
39
41
  </tbody>
40
42
  </table>
43
+ </div>
41
44
  <% else %>
42
45
  <div class="alert alert-info no-objects-found">
43
46
  <%= Spree.t(:no_state_changes) %>
@@ -1,26 +1,27 @@
1
1
  <div id="new_state" data-hook></div>
2
-
3
- <table class="table" id='listing_states' data-hook>
4
- <thead>
5
- <tr data-hook="states_header">
6
- <th><%= Spree.t(:name) %></th>
7
- <th class="text-center"><%= Spree.t(:abbreviation) %></th>
8
- <th class="actions"></th>
9
- </tr>
10
- </thead>
11
- <tbody>
12
- <% @states.each do |state| %>
13
- <tr id="<%= spree_dom_id state %>" data-hook="states_row">
14
- <td><%= state.name %></td>
15
- <td class="text-center"><%= state.abbr %></td>
16
- <td class="actions actions-2 text-right">
17
- <%= link_to_edit(state, no_text: true) if can? :edit, state %>
18
- <%= link_to_delete(state, no_text: true) if can? :delete, state %>
19
- </td>
2
+ <div class="table-responsive">
3
+ <table class="table" id='listing_states' data-hook>
4
+ <thead>
5
+ <tr data-hook="states_header">
6
+ <th><%= Spree.t(:name) %></th>
7
+ <th class="text-center"><%= Spree.t(:abbreviation) %></th>
8
+ <th class="actions"></th>
20
9
  </tr>
21
- <% end %>
22
- <% if @states.empty? %>
23
- <tr><td colspan="3"><%= Spree.t(:none) %></td></tr>
24
- <% end %>
25
- </tbody>
26
- </table>
10
+ </thead>
11
+ <tbody>
12
+ <% @states.each do |state| %>
13
+ <tr id="<%= spree_dom_id state %>" data-hook="states_row">
14
+ <td><%= state.name %></td>
15
+ <td class="text-center"><%= state.abbr %></td>
16
+ <td class="actions actions-2 text-right">
17
+ <%= link_to_edit(state, no_text: true) if can? :edit, state %>
18
+ <%= link_to_delete(state, no_text: true) if can? :delete, state %>
19
+ </td>
20
+ </tr>
21
+ <% end %>
22
+ <% if @states.empty? %>
23
+ <tr><td colspan="3"><%= Spree.t(:none) %></td></tr>
24
+ <% end %>
25
+ </tbody>
26
+ </table>
27
+ </div>
@@ -3,7 +3,7 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { class: "btn-success", icon: 'add', id: 'new_state_link' } %>
6
+ <%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { class: "btn-success", icon: 'add.svg', id: 'new_state_link' } %>
7
7
  <% end if can? :create, Spree::State %>
8
8
 
9
9
  <div data-hook="country" class="form-group">
@@ -31,9 +31,9 @@
31
31
  </div>
32
32
 
33
33
  <div class="form-actions" data-hook="buttons">
34
- <%= button Spree.t(:transfer_stock), 'plus' %>
34
+ <%= button Spree.t(:transfer_stock), 'add' %>
35
35
  <span class="or"><%= Spree.t(:or) %></span>
36
- <%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'delete' %>
36
+ <%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'cancel.svg' %>
37
37
  </div>
38
38
  </fieldset>
39
39
  <% end %>
@@ -3,10 +3,11 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_stock_location), new_object_url, { class: "btn-success", icon: 'add', id: 'admin_new_stock_location' } %>
6
+ <%= button_link_to Spree.t(:new_stock_location), new_object_url, { class: "btn-success", icon: 'add.svg', id: 'admin_new_stock_location' } %>
7
7
  <% end if can? :create, Spree::StockLocation %>
8
8
 
9
9
  <% if @stock_locations.any? %>
10
+ <div class="table-responsive">
10
11
  <table class="table" id='listing_stock_locations' data-hook>
11
12
  <thead>
12
13
  <tr data-hook="stock_locations_header">
@@ -33,6 +34,7 @@
33
34
  <% end %>
34
35
  </tbody>
35
36
  </table>
37
+ </div>
36
38
  <% else %>
37
39
  <div class="alert alert-info no-objects-found">
38
40
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StockLocation)) %>,
@@ -4,35 +4,37 @@
4
4
  <% end %>
5
5
 
6
6
  <% content_for :page_actions do %>
7
- <%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location), icon: 'add', class: 'btn-success', id: 'admin_new_stock_movement_link' %>
7
+ <%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location), icon: 'add.svg', class: 'btn-success', id: 'admin_new_stock_movement_link' %>
8
8
  <% end %>
9
9
 
10
10
  <% if @stock_movements.any? %>
11
- <table class="table" id='listing_stock_movements'>
12
- <colgroup>
13
- <col style="width: 35%">
14
- <col style="width: 20%">
15
- <col style="width: 45%">
16
- </colgroup>
17
- <thead>
18
- <tr data-hook="admin_stock_movements_index_headers">
19
- <th><%= Spree.t(:stock_item) %>
20
- <th><%= Spree.t(:quantity) %></th>
21
- <th><%= Spree.t(:action) %></th>
22
- </tr>
23
- </thead>
24
- <tbody>
25
- <% @stock_movements.each do |stock_movement|%>
26
- <tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows">
27
- <td>
28
- <%= display_variant(stock_movement) %>
29
- </td>
30
- <td><%= stock_movement.quantity %></td>
31
- <td><%= pretty_originator(stock_movement) %></td>
11
+ <div class="table-responsive">
12
+ <table class="table" id='listing_stock_movements'>
13
+ <colgroup>
14
+ <col style="width: 35%">
15
+ <col style="width: 20%">
16
+ <col style="width: 45%">
17
+ </colgroup>
18
+ <thead>
19
+ <tr data-hook="admin_stock_movements_index_headers">
20
+ <th><%= Spree.t(:stock_item) %>
21
+ <th><%= Spree.t(:quantity) %></th>
22
+ <th><%= Spree.t(:action) %></th>
32
23
  </tr>
33
- <% end %>
34
- </tbody>
35
- </table>
24
+ </thead>
25
+ <tbody>
26
+ <% @stock_movements.each do |stock_movement|%>
27
+ <tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows">
28
+ <td>
29
+ <%= display_variant(stock_movement) %>
30
+ </td>
31
+ <td><%= stock_movement.quantity %></td>
32
+ <td><%= pretty_originator(stock_movement) %></td>
33
+ </tr>
34
+ <% end %>
35
+ </tbody>
36
+ </table>
37
+ </div>
36
38
  <% else %>
37
39
  <div class="alert alert-info no-objects-found">
38
40
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StockMovement)) %>,
@@ -40,4 +42,4 @@
40
42
  </div>
41
43
  <% end %>
42
44
 
43
- <%= paginate @stock_movements, theme: 'twitter-bootstrap-4' %>
45
+ <%= paginate @stock_movements, theme: 'admin-twitter-bootstrap-4' %>
@@ -1,22 +1,24 @@
1
1
  <div id="source-movements-table" class="twelve columns alpha">
2
- <table class="table sortable">
3
- <thead data-hook="bulk_variants_header">
4
- <tr>
5
- <th><%= Spree.t('variant') %></th>
6
- <th><%= Spree.t('sku') %></th>
7
- <th><%= Spree.t('quantity') %></th>
8
- <th><%= Spree.t('count_on_hand') %></th>
9
- </tr>
10
- </thead>
11
- <tbody id="bulk_variants_tbody">
12
- <% stock_movements.each do |movement| %>
2
+ <div class="table-responsive">
3
+ <table class="table sortable">
4
+ <thead data-hook="bulk_variants_header">
13
5
  <tr>
14
- <td><%= movement.stock_item.variant.name %></td>
15
- <td><%= movement.stock_item.variant.sku %></td>
16
- <td><%= movement.quantity %></td>
17
- <td><%= movement.stock_item.count_on_hand %></td>
6
+ <th><%= Spree.t('variant') %></th>
7
+ <th><%= Spree.t('sku') %></th>
8
+ <th><%= Spree.t('quantity') %></th>
9
+ <th><%= Spree.t('count_on_hand') %></th>
18
10
  </tr>
19
- <% end %>
20
- </tbody>
21
- </table>
11
+ </thead>
12
+ <tbody id="bulk_variants_tbody">
13
+ <% stock_movements.each do |movement| %>
14
+ <tr>
15
+ <td><%= movement.stock_item.variant.name %></td>
16
+ <td><%= movement.stock_item.variant.sku %></td>
17
+ <td><%= movement.quantity %></td>
18
+ <td><%= movement.stock_item.count_on_hand %></td>
19
+ </tr>
20
+ <% end %>
21
+ </tbody>
22
+ </table>
23
+ </div>
22
24
  </div>
@@ -3,7 +3,7 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { icon: 'add', class: 'btn-success' } %>
6
+ <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { icon: 'add.svg', class: 'btn-success' } %>
7
7
  <% end if can? :create, Spree::StockTransfer %>
8
8
 
9
9
  <div data-hook="admin_orders_index_search" class="card bg-light mb-3">
@@ -41,7 +41,7 @@
41
41
 
42
42
  <div class="form-actions">
43
43
  <div data-hook="admin_stock_transfers_index_search_buttons">
44
- <%= button Spree.t(:filter_results), 'search' %>
44
+ <%= button Spree.t(:filter_results), 'search.svg' %>
45
45
  </div>
46
46
  </div>
47
47
  <% end %>
@@ -50,6 +50,7 @@
50
50
  </div>
51
51
 
52
52
  <% if @stock_transfers.any? %>
53
+ <div class="table-responsive">
53
54
  <table class="table" id='listing_stock_transfers' data-hook>
54
55
  <thead>
55
56
  <tr data-hook='stock_transfers_header'>
@@ -63,7 +64,7 @@
63
64
  <tbody>
64
65
  <% @stock_transfers.each do |stock_transfer| %>
65
66
  <tr id="<%= spree_dom_id stock_transfer %>" data-hook="stock_transfer_row">
66
- <td><%= link_to stock_transfer.created_at, admin_stock_transfer_path(stock_transfer) %></td>
67
+ <td><%= link_to stock_transfer.created_at.strftime('%F %T %Z'), admin_stock_transfer_path(stock_transfer) %></td>
67
68
  <td><%= stock_transfer.reference %></td>
68
69
  <td><%= stock_transfer.source_location.try(:name) %></td>
69
70
  <td><%= stock_transfer.destination_location.try(:name) %></td>
@@ -74,6 +75,7 @@
74
75
  <% end %>
75
76
  </tbody>
76
77
  </table>
78
+ </div>
77
79
  <% else %>
78
80
  <div class="alert alert-info no-objects-found">
79
81
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StockTransfer)) %>,
@@ -81,4 +83,4 @@
81
83
  </div>
82
84
  <% end %>
83
85
 
84
- <%= paginate @stock_transfers, theme: 'twitter-bootstrap-4' %>
86
+ <%= paginate @stock_transfers, theme: 'admin-twitter-bootstrap-4' %>
@@ -77,7 +77,7 @@
77
77
  <div class="input-group">
78
78
  <%= number_field_tag :transfer_variant_quantity, 1, class: 'form-control', min: 1 %>
79
79
  <span class="input-group-btn">
80
- <%= button Spree.t(:add), 'plus', 'submit', class: "transfer_add_variant" %>
80
+ <%= button Spree.t(:add), 'add.svg', 'submit', class: "transfer_add_variant" %>
81
81
  </span>
82
82
  </div>
83
83
  </div>
@@ -90,7 +90,7 @@
90
90
  <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/variant')) %>.
91
91
  </div>
92
92
 
93
- <div id="transfer-variants-table" style="display:none">
93
+ <div id="transfer-variants-table" style="display:none" class="table-responsive">
94
94
  <table class="table table-bordered sortable">
95
95
  <thead data-hook="transfer_variants_header">
96
96
  <th><%= Spree.t(:name) %></th>
@@ -104,6 +104,6 @@
104
104
  </div>
105
105
 
106
106
  <div class="form-actions" data-hook="buttons">
107
- <%= button Spree.t(:transfer_stock), 'plus transfer_transfer' %>
107
+ <%= button Spree.t(:transfer_stock), 'add.svg', class: 'transfer_transfer' %>
108
108
  </div>
109
109
  <% end %>