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
@@ -3,29 +3,31 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_role), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_role_link' %>
6
+ <%= button_link_to Spree.t(:new_role), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_role_link' %>
7
7
  <% end if can? :create, Spree::Role %>
8
8
 
9
9
  <% if @roles.any? %>
10
- <table class="table">
11
- <thead>
12
- <tr data-hook="admin_roles_index_headers">
13
- <th><%= Spree.t(:role_id) %></th>
14
- <th class="actions"></th>
15
- </tr>
16
- </thead>
17
- <tbody>
18
- <% @roles.each do |role|%>
19
- <tr id="<%= spree_dom_id role %>" data-hook="admin_roles_index_rows">
20
- <td><%= role.name %></td>
21
- <td class="actions text-right">
22
- <%= link_to_edit(role, no_text: true) if can? :edit, role %>
23
- <%= link_to_delete(role, no_text: true) if can? :destroy, role %>
24
- </td>
10
+ <div class="table-responsive">
11
+ <table class="table">
12
+ <thead>
13
+ <tr data-hook="admin_roles_index_headers">
14
+ <th><%= Spree.t(:role_id) %></th>
15
+ <th class="actions"></th>
25
16
  </tr>
26
- <% end %>
27
- </tbody>
28
- </table>
17
+ </thead>
18
+ <tbody>
19
+ <% @roles.each do |role|%>
20
+ <tr id="<%= spree_dom_id role %>" data-hook="admin_roles_index_rows">
21
+ <td><%= role.name %></td>
22
+ <td class="actions text-right">
23
+ <%= link_to_edit(role, no_text: true) if can? :edit, role %>
24
+ <%= link_to_delete(role, no_text: true) if can? :destroy, role %>
25
+ </td>
26
+ </tr>
27
+ <% end %>
28
+ </tbody>
29
+ </table>
30
+ </div>
29
31
  <% else %>
30
32
  <div class="alert alert-warning">
31
33
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Role)) %>,
@@ -1,73 +1,59 @@
1
1
  <% if try_spree_current_user %>
2
- <ul class="nav navbar-nav align-items-end h-100 justify-content-center">
3
- <li class="dropdown user user-menu h-100">
4
- <div class="dropdown d-flex align-items-center h-100">
5
- <button class="dropdown-toggle btn btn-link text-white h-100" data-toggle="dropdown">
6
- <i class="glyphicon glyphicon-user"></i>
7
- <span>
8
- <%= try_spree_current_user.email %> <i class="caret"></i>
9
- </span>
10
- </button>
2
+ <div class="btn-group">
11
3
 
12
- <ul class="dropdown-menu position-absolute mt-0 rounded-0 border-top-0">
13
- <% if spree.respond_to? :root_path %>
14
- <li class="dropdown-item p-0">
15
- <%= link_to spree.root_path, target: :blank, class: 'd-block text-dark py-2 px-4' do %>
16
- <i class="glyphicon glyphicon-new-window"></i>
17
- &nbsp;
18
- <%= Spree.t(:back_to_store) %>
19
- <% end %>
20
- </li>
21
- <% end %>
4
+ <button id="accountNav" type="button" class="btn text-light" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
5
+ <%= svg_icon name: "user.svg", width: '24', height: '24' %>
6
+ </button>
22
7
 
23
- <% if can?(:manage, try_spree_current_user) %>
24
- <li class="dropdown-item p-0">
25
- <%= link_to spree.edit_admin_user_path(try_spree_current_user), class: 'd-block text-dark py-2 px-4' do %>
26
- <i class="glyphicon glyphicon-user"></i>
27
- &nbsp;
28
- <%= Spree.t(:account) %>
29
- <% end %>
30
- </li>
31
- <% end %>
8
+ <div class="dropdown-menu dropdown-menu-right mt-2 p-0 mr-2">
9
+ <div class="dropdown-item px-0 text-center bg-light">
10
+ <span class="d-block text-dark py-2 px-4"><%= try_spree_current_user.email %></span>
11
+ </div>
12
+ <div class="dropdown-divider m-0"></div>
32
13
 
33
- <% if defined?(spree_logout_path) %>
34
- <li class="dropdown-item p-0">
35
- <%= link_to spree_logout_path, class: 'd-block text-dark py-2 px-4' do %>
36
- <i class="glyphicon glyphicon-log-out"></i>
37
- &nbsp;
38
- <%= Spree.t(:logout) %>
39
- <% end %>
40
- </li>
14
+ <% if spree.respond_to? :root_path %>
15
+ <%= link_to spree.root_path, target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
16
+ <%= svg_icon name: "store.svg", width: '18', height: '18' %>
17
+ &nbsp;
18
+ <%= Spree.t(:back_to_store) %>
41
19
  <% end %>
20
+ <% end %>
42
21
 
43
- <div class="dropdown-divider"></div>
44
-
45
- <li class="dropdown-item p-0">
46
- <%= link_to 'http://guides.spreecommerce.org', target: :blank, class: 'd-block text-dark py-2 px-4' do %>
47
- <i class="glyphicon glyphicon-info-sign"></i>
48
- &nbsp;
49
- <%= Spree.t(:help_center) %>
50
- <% end %>
51
- </li>
52
-
53
- <li class="dropdown-item p-0">
54
- <%= link_to 'http://slack.spreecommerce.org', target: :blank, class: 'd-block text-dark py-2 px-4' do %>
55
- <i class="glyphicon glyphicon-comment"></i>
56
- &nbsp;
57
- <%= Spree.t(:join_slack) %>
58
- <% end %>
59
- </li>
60
-
61
- <li class="dropdown-item p-0">
62
- <%= link_to 'https://github.com/spree-contrib', target: :blank, class: 'd-block text-dark py-2 px-4' do %>
63
- <i class="glyphicon glyphicon-download"></i>
64
- &nbsp;
65
- <%= Spree.t(:extensions_directory) %>
66
- <% end %>
67
- </li>
68
- </ul>
69
- </div>
22
+ <% if can?(:manage, try_spree_current_user) %>
23
+ <%= link_to spree.edit_admin_user_path(try_spree_current_user), class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
24
+ <%= svg_icon name: "user.svg", width: '18', height: '18' %>
25
+ &nbsp;
26
+ <%= Spree.t(:account) %>
27
+ <% end %>
28
+ <% end %>
70
29
 
71
- </li>
72
- </ul>
30
+ <% if defined?(spree_logout_path) %>
31
+ <%= link_to spree_logout_path, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
32
+ <%= svg_icon name: "exit.svg", width: '18', height: '18' %>
33
+ &nbsp;
34
+ <%= Spree.t(:logout) %>
35
+ <% end %>
36
+ <% end %>
37
+
38
+ <div class="dropdown-divider m-0"></div>
39
+
40
+ <%= link_to 'http://guides.spreecommerce.org', target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
41
+ <%= svg_icon name: "info.svg", width: '18', height: '18' %>
42
+ &nbsp;
43
+ <%= Spree.t(:help_center) %>
44
+ <% end %>
45
+
46
+ <%= link_to 'http://slack.spreecommerce.org', target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
47
+ <%= svg_icon name: "slack.svg", width: '18', height: '18' %>
48
+ &nbsp;
49
+ <%= Spree.t(:join_slack) %>
50
+ <% end %>
51
+
52
+ <%= link_to 'https://github.com/spree-contrib', target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
53
+ <%= svg_icon name: "extensions.svg", width: '18', height: '18' %>
54
+ &nbsp;
55
+ <%= Spree.t(:extensions_directory) %>
56
+ <% end %>
57
+ </div>
58
+ </div>
73
59
  <% end %>
@@ -1,79 +1,37 @@
1
1
  <% s_or_b = type.chars.first %>
2
-
3
2
  <div id="<%= type %>" data-hook="address_fields">
4
- <%= field_container f.object, :firstname, class: ["form-group", "#{type}-row"] do %>
5
- <%= f.label :firstname, Spree.t(:first_name) %>
6
- <%= f.text_field :firstname, class: 'form-control' %>
7
- <%= error_message_on f.object, :firstname %>
8
- <% end %>
9
-
10
- <%= field_container f.object, :lastname, class: ["form-group", "#{type}-row"] do %>
11
- <%= f.label :lastname, Spree.t(:last_name) %>
12
- <%= f.text_field :lastname, class: 'form-control' %>
13
- <%= error_message_on f.object, :lastname %>
14
- <% end %>
15
-
16
- <% if Spree::Config[:company] %>
17
- <%= field_container f.object, :company, class: ["form-group", "#{type}-row"] do %>
18
- <%= f.label :company, Spree.t(:company) %>
19
- <%= f.text_field :company, class: 'form-control' %>
20
- <%= error_message_on f.object, :company %>
21
- <% end %>
22
- <% end %>
23
-
24
- <%= field_container f.object, :address1, class: ["form-group", "#{type}-row"] do %>
25
- <%= f.label :address1, Spree.t(:street_address) %>
26
- <%= f.text_field :address1, class: 'form-control' %>
27
- <%= error_message_on f.object, :address1 %>
28
- <% end %>
29
-
30
- <%= field_container f.object, :address2, class: ["form-group", "#{type}-row"] do %>
31
- <%= f.label :address2, Spree.t(:street_address_2) %>
32
- <%= f.text_field :address2, class: 'form-control' %>
33
- <%= error_message_on f.object, :address2 %>
34
- <% end %>
35
-
36
- <%= field_container f.object, :city, class: ["form-group", "#{type}-row"] do %>
37
- <%= f.label :city, Spree.t(:city) %>
38
- <%= f.text_field :city, class: 'form-control' %>
39
- <%= error_message_on f.object, :city %>
40
- <% end %>
41
-
42
- <%= field_container f.object, :zipcode, class: ["form-group", "#{type}-row"] do %>
43
- <%= f.label :zipcode, Spree.t(:zip) %>
44
- <%= f.text_field :zipcode, class: 'form-control' %>
45
- <%= error_message_on f.object, :zipcode %>
46
- <% end %>
47
-
48
- <div class="form-group <%= "#{type}-row" %>">
49
- <%= f.label :country_id, Spree.t(:country) %>
50
- <span id="<%= s_or_b %>country">
51
- <%= f.collection_select :country_id, available_countries, :id, :name, {}, { class: 'select2' } %>
52
- </span>
53
- </div>
54
-
55
- <%= field_container f.object, :state, class: ["form-group", "#{type}-row"] do %>
56
- <%= f.label :state_id, Spree.t(:state) %>
57
- <span id="<%= s_or_b %>state">
58
- <% if f.object.country.try(:states) %>
59
-
60
- <%= f.text_field :state_name,
61
- style: "display: #{f.object.country.try(:states) && f.object.country.states.empty? ? 'block' : 'none' };",
62
- disabled: !(f.object.country.try(:states) && f.object.country.states.empty?), class: 'form-control state_name' %>
63
- <%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, { include_blank: true }, { class: 'select2', style: "display: #{ f.object.country.states.empty? ? 'none' : 'block' };", disabled: f.object.country.states.empty? } %>
64
- <% else %>
65
- <div>
66
- <em>No country set.</em>
67
- </div>
3
+ <% Spree::Address::ADDRESS_FIELDS.each do |field| %>
4
+ <% if field == "country" %>
5
+ <%= field_container (s_or_b + '_' + field), nil, class: ["form-group", "#{type}-row"] do %>
6
+ <%= f.label :country_id, Spree.t(:country) %>
7
+ <span id="<%= s_or_b %>country">
8
+ <%= f.collection_select :country_id, available_countries, :id, :name, {}, { class: 'select2' } %>
9
+ </span>
68
10
  <% end %>
69
- </span>
70
- <%= error_message_on f.object, :state_id %>
71
- <% end %>
72
-
73
- <%= field_container f.object, :phone, class: ["form-group", "#{type}-row"] do %>
74
- <%= f.label :phone, Spree.t(:phone) %>
75
- <%= f.phone_field :phone, class: 'form-control' %>
76
- <%= error_message_on f.object, :phone %>
11
+ <% elsif field == "state" %>
12
+ <%= field_container (s_or_b + '_' + field), :state, class: ["form-group", "#{type}-row"] do %>
13
+ <%= f.label :state_id, Spree.t(:state) %>
14
+ <span id="<%= s_or_b %>state">
15
+ <% if f.object.country.try(:states) %>
16
+ <%= f.text_field :state_name,
17
+ style: "display: #{f.object.country.try(:states) && f.object.country.states.empty? ? 'block' : 'none' };",
18
+ disabled: !(f.object.country.try(:states) && f.object.country.states.empty?), class: 'form-control state_name' %>
19
+ <%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, { include_blank: true }, { class: 'select2', style: "display: #{ f.object.country.states.empty? ? 'none' : 'block' };", disabled: f.object.country.states.empty? } %>
20
+ <% else %>
21
+ <div>
22
+ <em><%= Spree.t(:no_country) %></em>
23
+ </div>
24
+ <% end %>
25
+ </span>
26
+ <%= error_message_on f.object, :state_id %>
27
+ <% end %>
28
+ <% else %>
29
+ <%= field_container (s_or_b + '_' + field), nil, class: ["form-group", "#{type}-row"] do %>
30
+ <%= f.label field, Spree.t(field) %>
31
+ <%= f.text_field field, class: 'form-control' %>
32
+ <%= error_message_on f.object, field %>
33
+ <% end %>
34
+ <% end %>
77
35
  <% end %>
78
36
  </div>
79
37
 
@@ -0,0 +1,10 @@
1
+ <div class="input-group-append append_over data-clear" data-clear>
2
+ <span class="input-group-text force-round">
3
+ <%= svg_icon name: "close.svg", width: '16', height: '16' %>
4
+ </span>
5
+ </div>
6
+ <div class="input-group-append append_under data-toggle" data-toggle>
7
+ <span class="input-group-text">
8
+ <%= svg_icon name: "calendar.svg", width: '16', height: '16' %>
9
+ </span>
10
+ </div>
@@ -1,26 +1,45 @@
1
- <% if content_for?(:page_title) || content_for?(:page_actions) %>
2
- <div class="content-header <%= "with-page-tabs" if content_for?(:page_tabs) %> page-header">
3
- <div class="row align-items-center <%= if content_for?(:page_tabs) then "pb-0" else "border-bottom" end %> mb-4">
4
- <% if content_for?(:page_title) %>
5
- <h1 class="h4 pl-0 mb-0 col-<%= content_for?(:page_actions) ? '5' : '12' %>">
6
- <%= yield :page_title %>
7
- <% if content_for?(:page_title_small) %>
8
- <small><%= yield :page_title_small %></small>
9
- <% end %>
10
- </h1>
11
- <% end %>
1
+ <div id="contentHeader" class="row mb-3">
2
+ <% if content_for?(:page_title) || content_for?(:page_actions) %>
3
+ <div class="content-header col <%= "with-page-tabs" if content_for?(:page_tabs) %> page-header">
4
+ <div class="row align-items-center <%= if content_for?(:page_tabs) then "pb-0" else "border-bottom" end %>">
12
5
 
13
- <% if content_for?(:page_actions) %>
14
- <div class="page-actions col-7 pr-0" data-hook="toolbar">
15
- <%= yield :page_actions %>
16
- </div>
17
- <% end %>
6
+ <% if content_for?(:page_title) %>
7
+ <h1 class="contextual-title px-0 mb-0 col">
8
+ <%= yield :page_title %>
9
+ <% if content_for?(:page_title_small) %>
10
+ <small><%= yield :page_title_small %></small>
11
+ <% end %>
12
+ </h1>
13
+ <% end %>
14
+
15
+ <% if content_for?(:page_actions) %>
16
+ <div class="page-actions pl-0 pr-0 d-none d-lg-flex" data-hook="toolbar">
17
+ <%= yield :page_actions %>
18
+ </div>
19
+ <% end %>
20
+
21
+ <% if content_for?(:page_actions) || content_for?(:sidebar) %>
22
+ <div class="d-flex d-lg-none justify-content-end m-0 p-0">
23
+ <button type="button"
24
+ id="contextual-menu-toggle"
25
+ class="btn btn-outline-secondary shadow-none">
26
+ <span class="d-none d-sm-inline">
27
+ <%= Spree.t('more') %>
28
+ </span>
29
+ <%= svg_icon name: "chevron-down.svg", width: '16', height: '16' %>
30
+ </button>
31
+ </div>
32
+ <% end %>
33
+ </div>
18
34
 
19
35
  <% if content_for?(:page_tabs) %>
20
- <ul class="nav nav-tabs w-100 mt-4">
21
- <%= yield :page_tabs %>
22
- </ul>
36
+ <div class="row">
37
+ <ul class="nav nav-tabs w-100 mt-4 px-0">
38
+ <%= yield :page_tabs %>
39
+ </ul>
40
+ </div>
23
41
  <% end %>
42
+
24
43
  </div>
25
- </div>
26
- <% end %>
44
+ <% end %>
45
+ </div>
@@ -1,5 +1,5 @@
1
1
  <div class="form-actions" data-hook="buttons">
2
- <%= button Spree.t('actions.update'), 'refresh', 'submit', {class: 'btn-success', data: { disable_with: "#{ Spree.t(:saving) }..." }} %>
2
+ <%= button Spree.t('actions.update'), 'save.svg', 'submit', {class: 'btn-success', data: { disable_with: "#{ Spree.t(:saving) }..." }} %>
3
3
  <span class="or"><%= Spree.t(:or) %></span>
4
- <%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'delete' %>
4
+ <%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'cancel.svg' %>
5
5
  </div>
@@ -1,22 +1,25 @@
1
1
  <header class="header logged-in">
2
2
 
3
- <nav class="navbar fixed-top navbar-dark align-items-stretch" role="navigation">
4
- <div class="navbar-header col-3 col-md-2">
5
- <%= link_to(
6
- image_tag(Spree::Config[:admin_interface_logo], id: 'logo'),
7
- spree.admin_path,
8
- class: "logo navbar-brand"
9
- ) %>
3
+ <nav class="navbar fixed-top navbar-dark align-items-middle">
4
+ <div class="col-3 col-sm-4 p-0 d-lg-none">
10
5
  <button
11
- id="sidebar-toggle"
12
- class="navbar-toggler h-100 position-absolute m-0 p-0"
6
+ id="sidebar-open"
7
+ class="navbar-toggler h-100 text-light"
13
8
  type="button"
14
9
  aria-expanded="false"
15
10
  aria-label="Toggle navigation">
16
- <span class="navbar-toggler-icon"></span>
11
+ <%= svg_icon name: "menu.svg", width: '20', height: '20' %>
17
12
  </button>
18
13
  </div>
19
- <div class="col-9 col-md-10 pr-0">
14
+ <div class="col text-center text-lg-left">
15
+ <%= link_to(
16
+ image_tag(Spree::Config[:admin_interface_logo], id: 'logo', alt: current_store.name),
17
+ spree.admin_path,
18
+ class: "logo navbar-brand"
19
+ ) %>
20
+ </div>
21
+
22
+ <div class="col-3 col-sm-4 text-right p-0">
20
23
  <%= render partial: 'spree/admin/shared/account_nav' %>
21
24
  </div>
22
25
  </nav>
@@ -4,15 +4,13 @@
4
4
  <% args[:action] = per_page_action %>
5
5
  <% end %>
6
6
 
7
- <div class="row index-pagination-row">
8
- <div class="col-6">
9
- <%= paginate collection, theme: 'twitter-bootstrap-4' %>
7
+ <div class="row index-pagination-row mt-4">
8
+ <div class="col-12 col-sm-9 text-center text-sm-left">
9
+ <%= paginate collection, theme: 'admin-twitter-bootstrap-4' %>
10
10
  </div>
11
- <div class="col-6 justify-content-end">
12
- <div class="pagination-wrap">
13
- <%= form_tag(per_page_dropdown_params(args), { method: :get, class: 'js-per-page-form form-inline justify-content-end' }) do %>
11
+ <div class="col-12 col-sm-3 text-center text-sm-left">
12
+ <%= form_tag(per_page_dropdown_params(args), { method: :get, class: 'js-per-page-form form-inline justify-content-center justify-content-sm-end' }) do %>
14
13
  <%= per_page_dropdown %>
15
14
  <% end %>
16
- </div>
17
15
  </div>
18
16
  </div>
@@ -1,43 +1,54 @@
1
1
  <nav>
2
+ <div class="text-right d-lg-none p-2 border-bottom">
3
+ <button
4
+ id="sidebar-close"
5
+ class="btn btn-link"
6
+ type="button"
7
+ aria-expanded="false"
8
+ aria-label="Toggle navigation">
9
+ <%= svg_icon name: "cancel.svg", width: '20', height: '20' %>
10
+ </button>
11
+ </div>
12
+
2
13
  <% if can? :admin, Spree::Order %>
3
- <ul class="nav nav-sidebar border-bottom">
4
- <%= tab *Spree::BackendConfiguration::ORDER_TABS, icon: 'shopping-cart' %>
14
+ <ul class="nav nav-sidebar border-bottom" id="sidebarOrder">
15
+ <%= tab *Spree::BackendConfiguration::ORDER_TABS, icon: 'list.svg' %>
5
16
  </ul>
6
17
  <% end %>
7
18
 
8
19
  <% if can?(:admin, Spree::ReturnAuthorization) || can?(:admin, Spree::CustomerReturn) %>
9
- <ul class="nav nav-sidebar border-bottom">
10
- <%= main_menu_tree Spree.t(:returns), icon: "transfer", sub_menu: "returns", url: "#sidebar-returns" %>
20
+ <ul class="nav nav-sidebar border-bottom" id="sidebarReturn">
21
+ <%= main_menu_tree Spree.t(:returns), icon: "returns.svg", sub_menu: "returns", url: "#sidebar-returns" %>
11
22
  </ul>
12
23
  <% end %>
13
24
 
14
25
  <% if can? :admin, Spree::Product %>
15
- <ul class="nav nav-sidebar border-bottom">
16
- <%= main_menu_tree Spree.t(:products), icon: "th-large", sub_menu: "product", url: "#sidebar-product" %>
26
+ <ul class="nav nav-sidebar border-bottom" id="sidebarProduct">
27
+ <%= main_menu_tree Spree.t(:products), icon: "products.svg", sub_menu: "product", url: "#sidebar-product" %>
17
28
  </ul>
18
29
  <% end %>
19
30
 
20
31
  <% if can? :admin, Spree::Admin::ReportsController %>
21
- <ul class="nav nav-sidebar border-bottom">
22
- <%= tab *Spree::BackendConfiguration::REPORT_TABS, icon: 'file' %>
32
+ <ul class="nav nav-sidebar border-bottom" id="sidebarReport">
33
+ <%= tab *Spree::BackendConfiguration::REPORT_TABS, icon: 'report.svg' %>
23
34
  </ul>
24
35
  <% end %>
25
36
 
26
37
  <% if can? :admin, Spree::Promotion %>
27
- <ul class="nav nav-sidebar border-bottom">
28
- <%= main_menu_tree Spree.t(:promotions), icon: "gift", sub_menu: "promotion", url: "#sidebar-promotions" %>
38
+ <ul class="nav nav-sidebar border-bottom" id="sidebarPromotion">
39
+ <%= main_menu_tree Spree.t(:promotions), icon: "promotion.svg", sub_menu: "promotion", url: "#sidebar-promotions" %>
29
40
  </ul>
30
41
  <% end %>
31
42
 
32
43
  <% if Spree.user_class && can?(:admin, Spree.user_class) %>
33
- <ul class="nav nav-sidebar border-bottom">
34
- <%= tab *Spree::BackendConfiguration::USER_TABS, url: spree.admin_users_path, icon: 'user' %>
44
+ <ul class="nav nav-sidebar border-bottom" id="sidebarUser">
45
+ <%= tab *Spree::BackendConfiguration::USER_TABS, url: spree.admin_users_path, icon: 'users.svg' %>
35
46
  </ul>
36
47
  <% end %>
37
48
 
38
49
  <% if can? :admin, current_store %>
39
- <ul class="nav nav-sidebar border-bottom">
40
- <%= main_menu_tree Spree.t(:configurations), icon: "wrench", sub_menu: "configuration", url: "#sidebar-configuration" %>
50
+ <ul class="nav nav-sidebar border-bottom" id="sidebarConfiguration">
51
+ <%= main_menu_tree Spree.t(:configurations), icon: "settings.svg", sub_menu: "configuration", url: "#sidebar-configuration" %>
41
52
  </ul>
42
53
  <% end %>
43
54
  </nav>
@@ -1,5 +1,5 @@
1
1
  <div class="form-actions" data-hook="buttons">
2
- <%= button Spree.t('actions.create'), 'ok', 'submit', {class: 'btn-success', data: { disable_with: "#{ Spree.t(:saving) }..." }} %>
2
+ <%= button Spree.t('actions.create'), 'save.svg', 'submit', {class: 'btn-success', data: { disable_with: "#{ Spree.t(:saving) }..." }} %>
3
3
  <span class="or"><%= Spree.t(:or) %></span>
4
- <%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'remove' %>
4
+ <%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'cancel.svg' %>
5
5
  </div>
@@ -2,6 +2,7 @@
2
2
  <div class="card-header">
3
3
  <h3 class="card-title mb-0 h5"><%= Spree.t(:summary) %></h3>
4
4
  </div>
5
+ <div class="table-responsive">
5
6
  <table class="table table-condensed table-bordered" id="order_tab_summary" data-hook>
6
7
  <tbody class="additional-info">
7
8
  <tr>
@@ -123,4 +124,5 @@
123
124
  <% end %>
124
125
  </tbody>
125
126
  </table>
127
+ </div>
126
128
  </div>
@@ -7,7 +7,7 @@
7
7
  <ul class="nav flex-column nav-pills" data-hook="admin_order_tabs">
8
8
  <% if ((can? :update, @order) && (@order.shipments.size.zero? || @order.shipments.shipped.size.zero?)) %>
9
9
  <li data-hook='admin_order_tabs_cart_details'>
10
- <%= link_to_with_icon 'edit',
10
+ <%= link_to_with_icon 'cart.svg',
11
11
  Spree.t(:cart),
12
12
  cart_admin_order_url(@order),
13
13
  class: "#{'active' if current == :cart} nav-link" %>
@@ -16,7 +16,7 @@
16
16
 
17
17
  <% if ((can?(:update, @order) && can?(:read, Spree::Store)) && (@order.shipments.size.zero? || @order.shipments.shipped.size.zero?)) %>
18
18
  <li data-hook='admin_order_tabs_store_details'>
19
- <%= link_to_with_icon 'home',
19
+ <%= link_to_with_icon 'store.svg',
20
20
  Spree.t(:store),
21
21
  store_admin_order_url(@order),
22
22
  class: "#{'active' if current == :store} nav-link" %>
@@ -25,7 +25,7 @@
25
25
 
26
26
  <% if can?(:update, @order) && @order.checkout_steps.include?("address") %>
27
27
  <li data-hook='admin_order_tabs_customer_details'>
28
- <%= link_to_with_icon 'user',
28
+ <%= link_to_with_icon 'user.svg',
29
29
  Spree.t(:customer),
30
30
  spree.admin_order_customer_url(@order),
31
31
  class: "#{'active' if current == :customer_details} nav-link" %>
@@ -34,7 +34,7 @@
34
34
 
35
35
  <% if can? :update, @order %>
36
36
  <li data-hook='admin_order_tabs_shipment_details'>
37
- <%= link_to_with_icon 'road',
37
+ <%= link_to_with_icon 'shipping.svg',
38
38
  Spree.t(:shipments),
39
39
  edit_admin_order_url(@order),
40
40
  class: "#{'active' if current == :shipments} nav-link" %>
@@ -43,7 +43,7 @@
43
43
 
44
44
  <% if can? :index, Spree::Adjustment %>
45
45
  <li data-hook='admin_order_tabs_adjustments'>
46
- <%= link_to_with_icon 'wrench',
46
+ <%= link_to_with_icon 'adjust.svg',
47
47
  Spree.t(:adjustments),
48
48
  spree.admin_order_adjustments_url(@order),
49
49
  class: "#{'active' if current == :adjustments} nav-link" %>
@@ -52,7 +52,7 @@
52
52
 
53
53
  <% if can?(:index, Spree::Payment) %>
54
54
  <li data-hook='admin_order_tabs_payments'>
55
- <%= link_to_with_icon 'credit-card',
55
+ <%= link_to_with_icon 'payments.svg',
56
56
  Spree.t(:payments),
57
57
  spree.admin_order_payments_url(@order),
58
58
  class: "#{'active' if current == :payments} nav-link" %>
@@ -62,7 +62,7 @@
62
62
  <% if can? :index, Spree::ReturnAuthorization %>
63
63
  <% if @order.completed? %>
64
64
  <li data-hook='admin_order_tabs_return_authorizations'>
65
- <%= link_to_with_icon 'transfer',
65
+ <%= link_to_with_icon 'enter.svg',
66
66
  Spree.t(:return_authorizations),
67
67
  spree.admin_order_return_authorizations_url(@order),
68
68
  class: "#{'active' if current == :return_authorizations} nav-link" %>
@@ -73,7 +73,7 @@
73
73
  <% if can? :index, Spree::CustomerReturn %>
74
74
  <% if @order.completed? %>
75
75
  <li>
76
- <%= link_to_with_icon 'transfer',
76
+ <%= link_to_with_icon 'returns.svg',
77
77
  Spree.t(:customer_returns),
78
78
  spree.admin_order_customer_returns_url(@order),
79
79
  class: "#{'active' if current == :customer_returns} nav-link" %>
@@ -83,7 +83,7 @@
83
83
 
84
84
  <% if can? :update, @order %>
85
85
  <li data-hook='admin_order_tabs_state_changes'>
86
- <%= link_to_with_icon 'refresh',
86
+ <%= link_to_with_icon 'save.svg',
87
87
  Spree::StateChange.human_attribute_name(:state_changes),
88
88
  spree.admin_order_state_changes_url(@order),
89
89
  class: "#{'active' if current == :state_changes} nav-link" %>