solidus_backend 1.3.2 → 1.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 (290) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +38 -0
  3. data/app/assets/javascripts/spree/backend/components/tooltips.js +2 -0
  4. data/app/assets/javascripts/spree/backend/product_picker.js +2 -2
  5. data/app/assets/javascripts/spree/backend/routes.js +0 -1
  6. data/app/assets/javascripts/spree/backend/shipments.js +147 -118
  7. data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +16 -14
  8. data/app/assets/javascripts/spree/backend/templates/orders/customer_details/autocomplete.hbs +1 -1
  9. data/app/assets/javascripts/spree/backend/templates/variants/autocomplete.hbs.erb +1 -1
  10. data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +1 -1
  11. data/app/assets/javascripts/spree/backend/templates/variants/split.hbs +25 -27
  12. data/app/assets/javascripts/spree/backend/user_picker.js +14 -8
  13. data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +3 -3
  14. data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +4 -0
  15. data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +0 -1
  16. data/app/assets/stylesheets/spree/backend/components/_hint.scss +3 -0
  17. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +0 -1
  18. data/app/assets/stylesheets/spree/backend/components/_progress.scss +5 -2
  19. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +14 -5
  20. data/app/assets/stylesheets/spree/backend/components/_states.scss +1 -2
  21. data/app/assets/stylesheets/spree/backend/globals/_mixins.css +2 -0
  22. data/app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss +22 -0
  23. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +12 -3
  24. data/app/assets/stylesheets/spree/backend/sections/_products.scss +25 -7
  25. data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +0 -1
  26. data/app/assets/stylesheets/spree/backend/sections/_transfer_items.scss +0 -1
  27. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +4 -6
  28. data/app/assets/stylesheets/spree/backend/shared/_header.scss +5 -2
  29. data/app/assets/stylesheets/spree/backend/shared/_layout.scss +36 -3
  30. data/app/assets/stylesheets/spree/backend/shared/_tables.scss +1 -3
  31. data/app/assets/stylesheets/spree/backend/shared/_typography.scss +0 -2
  32. data/app/assets/stylesheets/spree/backend/spree_admin.scss +3 -1
  33. data/app/controllers/spree/admin/cancellations_controller.rb +1 -1
  34. data/app/controllers/spree/admin/general_settings_controller.rb +0 -6
  35. data/app/controllers/spree/admin/orders/customer_details_controller.rb +7 -0
  36. data/app/controllers/spree/admin/orders_controller.rb +1 -1
  37. data/app/controllers/spree/admin/payment_methods_controller.rb +8 -3
  38. data/app/controllers/spree/admin/payments_controller.rb +12 -5
  39. data/app/controllers/spree/admin/products_controller.rb +1 -1
  40. data/app/controllers/spree/admin/refunds_controller.rb +1 -1
  41. data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
  42. data/app/controllers/spree/admin/root_controller.rb +1 -1
  43. data/app/controllers/spree/admin/stock_items_controller.rb +0 -8
  44. data/app/controllers/spree/admin/stock_transfers_controller.rb +6 -6
  45. data/app/controllers/spree/admin/users_controller.rb +7 -3
  46. data/app/helpers/spree/admin/base_helper.rb +11 -0
  47. data/app/helpers/spree/admin/navigation_helper.rb +46 -3
  48. data/app/helpers/spree/admin/orders_helper.rb +0 -1
  49. data/app/helpers/spree/admin/stock_locations_helper.rb +1 -5
  50. data/app/models/spree/backend_configuration.rb +100 -0
  51. data/app/views/spree/admin/adjustment_reasons/edit.html.erb +4 -7
  52. data/app/views/spree/admin/adjustment_reasons/index.html.erb +4 -4
  53. data/app/views/spree/admin/adjustment_reasons/new.html.erb +4 -4
  54. data/app/views/spree/admin/adjustments/edit.html.erb +4 -6
  55. data/app/views/spree/admin/adjustments/index.html.erb +3 -6
  56. data/app/views/spree/admin/adjustments/new.html.erb +5 -6
  57. data/app/views/spree/admin/cancellations/index.html.erb +4 -3
  58. data/app/views/spree/admin/countries/edit.html.erb +4 -6
  59. data/app/views/spree/admin/countries/index.html.erb +4 -4
  60. data/app/views/spree/admin/countries/new.html.erb +4 -4
  61. data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +1 -1
  62. data/app/views/spree/admin/customer_returns/edit.html.erb +4 -6
  63. data/app/views/spree/admin/customer_returns/index.html.erb +2 -5
  64. data/app/views/spree/admin/customer_returns/new.html.erb +5 -6
  65. data/app/views/spree/admin/general_settings/edit.html.erb +4 -28
  66. data/app/views/spree/admin/images/edit.html.erb +6 -2
  67. data/app/views/spree/admin/images/index.html.erb +3 -0
  68. data/app/views/spree/admin/images/new.html.erb +3 -3
  69. data/app/views/spree/admin/log_entries/index.html.erb +4 -8
  70. data/app/views/spree/admin/option_types/edit.html.erb +7 -9
  71. data/app/views/spree/admin/option_types/index.html.erb +4 -4
  72. data/app/views/spree/admin/orders/_shipment.html.erb +4 -1
  73. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +4 -1
  74. data/app/views/spree/admin/orders/cart.html.erb +4 -8
  75. data/app/views/spree/admin/orders/confirm.html.erb +3 -4
  76. data/app/views/spree/admin/orders/confirm/_payments.html.erb +1 -1
  77. data/app/views/spree/admin/orders/confirm_advance.html.erb +3 -4
  78. data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
  79. data/app/views/spree/admin/orders/customer_details/edit.html.erb +2 -4
  80. data/app/views/spree/admin/orders/customer_details/show.html.erb +3 -5
  81. data/app/views/spree/admin/orders/edit.html.erb +1 -8
  82. data/app/views/spree/admin/orders/index.html.erb +11 -5
  83. data/app/views/spree/admin/payment_methods/edit.html.erb +5 -7
  84. data/app/views/spree/admin/payment_methods/index.html.erb +6 -5
  85. data/app/views/spree/admin/payment_methods/new.html.erb +6 -7
  86. data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
  87. data/app/views/spree/admin/payments/credit.html.erb +3 -3
  88. data/app/views/spree/admin/payments/index.html.erb +4 -7
  89. data/app/views/spree/admin/payments/new.html.erb +4 -5
  90. data/app/views/spree/admin/payments/show.html.erb +4 -7
  91. data/app/views/spree/admin/prices/_form.html.erb +1 -0
  92. data/app/views/spree/admin/prices/index.html.erb +2 -2
  93. data/app/views/spree/admin/product_properties/index.html.erb +3 -1
  94. data/app/views/spree/admin/products/_form.html.erb +11 -18
  95. data/app/views/spree/admin/products/_properties_form.erb +1 -1
  96. data/app/views/spree/admin/products/edit.html.erb +3 -2
  97. data/app/views/spree/admin/products/index.html.erb +19 -28
  98. data/app/views/spree/admin/products/new.html.erb +4 -2
  99. data/app/views/spree/admin/promotion_categories/edit.html.erb +4 -3
  100. data/app/views/spree/admin/promotion_categories/index.html.erb +4 -4
  101. data/app/views/spree/admin/promotion_categories/new.html.erb +4 -3
  102. data/app/views/spree/admin/promotion_rules/create.js.erb +1 -1
  103. data/app/views/spree/admin/promotions/_actions.html.erb +3 -3
  104. data/app/views/spree/admin/promotions/_rules.html.erb +2 -2
  105. data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +1 -1
  106. data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +1 -1
  107. data/app/views/spree/admin/promotions/edit.html.erb +4 -5
  108. data/app/views/spree/admin/promotions/index.html.erb +3 -5
  109. data/app/views/spree/admin/promotions/new.html.erb +3 -3
  110. data/app/views/spree/admin/promotions/rules/_option_value.html.erb +2 -2
  111. data/app/views/spree/admin/properties/edit.html.erb +3 -6
  112. data/app/views/spree/admin/properties/index.html.erb +5 -5
  113. data/app/views/spree/admin/prototypes/_form.html.erb +3 -3
  114. data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
  115. data/app/views/spree/admin/prototypes/edit.html.erb +3 -6
  116. data/app/views/spree/admin/prototypes/index.html.erb +4 -4
  117. data/app/views/spree/admin/prototypes/show.html.erb +2 -2
  118. data/app/views/spree/admin/refund_reasons/edit.html.erb +4 -4
  119. data/app/views/spree/admin/refund_reasons/index.html.erb +5 -4
  120. data/app/views/spree/admin/refund_reasons/new.html.erb +5 -4
  121. data/app/views/spree/admin/refunds/edit.html.erb +5 -6
  122. data/app/views/spree/admin/refunds/new.html.erb +6 -6
  123. data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -3
  124. data/app/views/spree/admin/reimbursements/edit.html.erb +5 -6
  125. data/app/views/spree/admin/reimbursements/index.html.erb +2 -4
  126. data/app/views/spree/admin/reimbursements/show.html.erb +3 -4
  127. data/app/views/spree/admin/reports/index.html.erb +2 -3
  128. data/app/views/spree/admin/reports/sales_total.html.erb +2 -4
  129. data/app/views/spree/admin/return_authorizations/edit.html.erb +15 -16
  130. data/app/views/spree/admin/return_authorizations/index.html.erb +3 -5
  131. data/app/views/spree/admin/return_authorizations/new.html.erb +5 -6
  132. data/app/views/spree/admin/return_reasons/edit.html.erb +3 -2
  133. data/app/views/spree/admin/return_reasons/index.html.erb +3 -1
  134. data/app/views/spree/admin/return_reasons/new.html.erb +4 -2
  135. data/app/views/spree/admin/shared/_areas_tabs.html.erb +3 -3
  136. data/app/views/spree/admin/shared/_configuration_menu.html.erb +2 -2
  137. data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
  138. data/app/views/spree/admin/shared/_head.html.erb +1 -8
  139. data/app/views/spree/admin/shared/_header.html.erb +8 -12
  140. data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
  141. data/app/views/spree/admin/shared/_no_objects_found.html.erb +1 -1
  142. data/app/views/spree/admin/shared/_order_submenu.html.erb +10 -10
  143. data/app/views/spree/admin/shared/_order_summary.html.erb +1 -1
  144. data/app/views/spree/admin/shared/_order_tabs.html.erb +3 -3
  145. data/app/views/spree/admin/shared/_payments_tabs.html.erb +1 -1
  146. data/app/views/spree/admin/shared/_product_sub_menu.html.erb +2 -2
  147. data/app/views/spree/admin/shared/_product_tabs.html.erb +8 -9
  148. data/app/views/spree/admin/shared/_report_criteria.html.erb +2 -2
  149. data/app/views/spree/admin/shared/_report_order_criteria.html.erb +2 -2
  150. data/app/views/spree/admin/shared/_settings_checkout_tabs.html.erb +4 -4
  151. data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +5 -5
  152. data/app/views/spree/admin/shared/_shipping_tabs.html.erb +4 -3
  153. data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
  154. data/app/views/spree/admin/shared/_tabs.html.erb +12 -37
  155. data/app/views/spree/admin/shared/_taxes_tabs.html.erb +2 -2
  156. data/app/views/spree/admin/shared/_variant_search.html.erb +1 -1
  157. data/app/views/spree/admin/shared/named_types/_edit.html.erb +5 -5
  158. data/app/views/spree/admin/shared/named_types/_index.html.erb +5 -4
  159. data/app/views/spree/admin/shared/named_types/_new.html.erb +5 -4
  160. data/app/views/spree/admin/shipping_categories/edit.html.erb +5 -6
  161. data/app/views/spree/admin/shipping_categories/index.html.erb +5 -4
  162. data/app/views/spree/admin/shipping_categories/new.html.erb +5 -6
  163. data/app/views/spree/admin/shipping_methods/_form.html.erb +2 -2
  164. data/app/views/spree/admin/shipping_methods/edit.html.erb +5 -6
  165. data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
  166. data/app/views/spree/admin/shipping_methods/new.html.erb +5 -6
  167. data/app/views/spree/admin/states/edit.html.erb +5 -6
  168. data/app/views/spree/admin/states/index.html.erb +5 -4
  169. data/app/views/spree/admin/states/new.html.erb +5 -3
  170. data/app/views/spree/admin/stock_items/index.html.erb +4 -7
  171. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
  172. data/app/views/spree/admin/stock_locations/edit.html.erb +5 -5
  173. data/app/views/spree/admin/stock_locations/index.html.erb +16 -9
  174. data/app/views/spree/admin/stock_locations/new.html.erb +5 -4
  175. data/app/views/spree/admin/stock_movements/index.html.erb +3 -4
  176. data/app/views/spree/admin/stock_movements/new.html.erb +2 -3
  177. data/app/views/spree/admin/stock_transfers/_location.html.erb +7 -0
  178. data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +1 -1
  179. data/app/views/spree/admin/stock_transfers/edit.html.erb +5 -6
  180. data/app/views/spree/admin/stock_transfers/index.html.erb +5 -5
  181. data/app/views/spree/admin/stock_transfers/new.html.erb +6 -8
  182. data/app/views/spree/admin/stock_transfers/receive.html.erb +4 -12
  183. data/app/views/spree/admin/stock_transfers/show.html.erb +6 -12
  184. data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +5 -13
  185. data/app/views/spree/admin/store_credits/edit_amount.html.erb +6 -4
  186. data/app/views/spree/admin/store_credits/edit_validity.html.erb +8 -6
  187. data/app/views/spree/admin/store_credits/index.html.erb +5 -5
  188. data/app/views/spree/admin/store_credits/new.html.erb +5 -4
  189. data/app/views/spree/admin/store_credits/show.html.erb +5 -4
  190. data/app/views/spree/admin/style_guide/topics/typography/_icons.html.erb +2 -2
  191. data/app/views/spree/admin/tax_categories/edit.html.erb +5 -4
  192. data/app/views/spree/admin/tax_categories/index.html.erb +5 -4
  193. data/app/views/spree/admin/tax_categories/new.html.erb +5 -4
  194. data/app/views/spree/admin/tax_rates/edit.html.erb +5 -6
  195. data/app/views/spree/admin/tax_rates/index.html.erb +5 -4
  196. data/app/views/spree/admin/tax_rates/new.html.erb +5 -6
  197. data/app/views/spree/admin/taxonomies/edit.erb +7 -9
  198. data/app/views/spree/admin/taxonomies/index.html.erb +4 -4
  199. data/app/views/spree/admin/taxonomies/new.html.erb +5 -7
  200. data/app/views/spree/admin/taxons/edit.html.erb +5 -6
  201. data/app/views/spree/admin/taxons/index.html.erb +2 -3
  202. data/app/views/spree/admin/trackers/edit.html.erb +5 -6
  203. data/app/views/spree/admin/trackers/index.html.erb +4 -4
  204. data/app/views/spree/admin/trackers/new.html.erb +4 -6
  205. data/app/views/spree/admin/users/_form.html.erb +2 -2
  206. data/app/views/spree/admin/users/_tabs.html.erb +5 -5
  207. data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -4
  208. data/app/views/spree/admin/users/addresses.html.erb +5 -4
  209. data/app/views/spree/admin/users/edit.html.erb +6 -6
  210. data/app/views/spree/admin/users/index.html.erb +4 -5
  211. data/app/views/spree/admin/users/items.html.erb +4 -3
  212. data/app/views/spree/admin/users/new.html.erb +2 -9
  213. data/app/views/spree/admin/users/orders.html.erb +4 -3
  214. data/app/views/spree/admin/variants/_form.html.erb +1 -0
  215. data/app/views/spree/admin/variants/edit.html.erb +4 -3
  216. data/app/views/spree/admin/variants/index.html.erb +10 -8
  217. data/app/views/spree/admin/variants/new.html.erb +5 -0
  218. data/app/views/spree/admin/zones/_country_members.html.erb +2 -2
  219. data/app/views/spree/admin/zones/_state_members.html.erb +2 -2
  220. data/app/views/spree/admin/zones/edit.html.erb +5 -6
  221. data/app/views/spree/admin/zones/index.html.erb +5 -4
  222. data/app/views/spree/admin/zones/new.html.erb +6 -7
  223. data/app/views/spree/layouts/admin.html.erb +28 -15
  224. data/config/initializers/form_builder.rb +6 -0
  225. data/config/routes.rb +2 -6
  226. data/spec/controllers/spree/admin/cancellations_controller_spec.rb +3 -3
  227. data/spec/controllers/spree/admin/customer_returns_controller_spec.rb +4 -4
  228. data/spec/controllers/spree/admin/missing_products_controller_spec.rb +1 -1
  229. data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +5 -5
  230. data/spec/controllers/spree/admin/orders_controller_spec.rb +28 -28
  231. data/spec/controllers/spree/admin/payment_methods_controller_spec.rb +5 -5
  232. data/spec/controllers/spree/admin/payments_controller_spec.rb +7 -7
  233. data/spec/controllers/spree/admin/prices_controller_spec.rb +2 -2
  234. data/spec/controllers/spree/admin/product_properties_controller_spec.rb +1 -1
  235. data/spec/controllers/spree/admin/products_controller_spec.rb +6 -6
  236. data/spec/controllers/spree/admin/promotion_actions_controller_spec.rb +2 -2
  237. data/spec/controllers/spree/admin/promotion_codes_controller_spec.rb +1 -1
  238. data/spec/controllers/spree/admin/promotion_rules_controller_spec.rb +2 -2
  239. data/spec/controllers/spree/admin/promotions_controller_spec.rb +7 -7
  240. data/spec/controllers/spree/admin/refunds_controller_spec.rb +1 -1
  241. data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +5 -5
  242. data/spec/controllers/spree/admin/reports_controller_spec.rb +2 -2
  243. data/spec/controllers/spree/admin/resource_controller_spec.rb +6 -6
  244. data/spec/controllers/spree/admin/return_authorizations_controller_spec.rb +11 -11
  245. data/spec/controllers/spree/admin/return_items_controller_spec.rb +1 -1
  246. data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
  247. data/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +1 -1
  248. data/spec/controllers/spree/admin/stock_items_controller_spec.rb +3 -3
  249. data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +3 -3
  250. data/spec/controllers/spree/admin/stock_transfers_controller_spec.rb +10 -10
  251. data/spec/controllers/spree/admin/store_credits_controller_spec.rb +10 -10
  252. data/spec/controllers/spree/admin/users_controller_spec.rb +139 -141
  253. data/spec/controllers/spree/admin/variants_controller_spec.rb +2 -2
  254. data/spec/features/admin/configuration/general_settings_spec.rb +7 -16
  255. data/spec/features/admin/configuration/payment_methods_spec.rb +7 -7
  256. data/spec/features/admin/configuration/stock_locations_spec.rb +1 -1
  257. data/spec/features/admin/configuration/tax_categories_spec.rb +1 -1
  258. data/spec/features/admin/configuration/zones_spec.rb +1 -1
  259. data/spec/features/admin/homepage_spec.rb +2 -2
  260. data/spec/features/admin/orders/adjustments_spec.rb +1 -1
  261. data/spec/features/admin/orders/cancelling_inventory_spec.rb +8 -8
  262. data/spec/features/admin/orders/customer_details_spec.rb +20 -5
  263. data/spec/features/admin/orders/listing_spec.rb +97 -70
  264. data/spec/features/admin/orders/new_order_spec.rb +35 -6
  265. data/spec/features/admin/orders/order_details_spec.rb +37 -58
  266. data/spec/features/admin/orders/payments_spec.rb +57 -4
  267. data/spec/features/admin/orders/return_authorizations_spec.rb +25 -0
  268. data/spec/features/admin/orders/shipments_spec.rb +5 -5
  269. data/spec/features/admin/products/edit/products_spec.rb +1 -1
  270. data/spec/features/admin/products/edit/taxons_spec.rb +5 -5
  271. data/spec/features/admin/products/edit/variants_spec.rb +1 -1
  272. data/spec/features/admin/products/option_types_spec.rb +2 -2
  273. data/spec/features/admin/products/products_spec.rb +6 -6
  274. data/spec/features/admin/products/properties_spec.rb +6 -6
  275. data/spec/features/admin/products/prototypes_spec.rb +1 -1
  276. data/spec/features/admin/products/stock_management_spec.rb +5 -5
  277. data/spec/features/admin/promotion_adjustments_spec.rb +8 -8
  278. data/spec/features/admin/promotions/option_value_rule_spec.rb +4 -4
  279. data/spec/features/admin/promotions/product_rule_spec.rb +33 -0
  280. data/spec/features/admin/promotions/tiered_calculator_spec.rb +2 -2
  281. data/spec/features/admin/promotions/user_rule_spec.rb +15 -0
  282. data/spec/features/admin/reports_spec.rb +1 -1
  283. data/spec/features/admin/users_spec.rb +27 -2
  284. data/spec/helpers/admin/base_helper_spec.rb +30 -0
  285. data/spec/helpers/admin/navigation_helper_spec.rb +40 -2
  286. data/spec/spec_helper.rb +10 -8
  287. data/spec/support/feature/order_feature_helper.rb +17 -0
  288. metadata +18 -11
  289. data/app/assets/javascripts/spree/backend/general_settings.js.coffee +0 -13
  290. data/spec/controllers/spree/admin/general_settings_controller_spec.rb +0 -41
@@ -1,11 +1,12 @@
1
1
  <%= render 'spree/admin/shared/settings_checkout_tabs' %>
2
2
 
3
- <% content_for :page_title do %>
4
- <%= Spree.t(:new_refund_reason) %>
5
- <% end %>
3
+ <% admin_breadcrumb(Spree.t(:settings)) %>
4
+ <% admin_breadcrumb(Spree.t('admin.tab.checkout')) %>
5
+ <% admin_breadcrumb(link_to plural_resource_name(Spree::RefundReason), spree.admin_refund_reasons_path) %>
6
+ <% admin_breadcrumb(Spree.t(:new_refund_reason)) %>
7
+
6
8
 
7
9
  <% content_for :page_actions do %>
8
- <li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_refund_reason_list), collection_url, :class => 'button' %></li>
9
10
  <% end %>
10
11
 
11
12
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @object } %>
@@ -1,9 +1,8 @@
1
1
  <%= render partial: 'spree/admin/shared/order_tabs', locals: {current: 'Payments'} %>
2
2
 
3
- <% content_for :page_title do %>
4
- <i class="fa fa-arrow-right"></i> <%= link_to "#{Spree::Payment.model_name.human} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment) %>
5
- <i class="fa fa-arrow-right"></i> <%= Spree.t(:editing_refund) %> <%= @refund.id %>
6
- <% end %>
3
+ <% admin_breadcrumb(link_to plural_resource_name(Spree::Payment), spree.admin_order_payments_path(@order)) %>
4
+ <% admin_breadcrumb(link_to "#{Spree::Payment.model_name.human} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment)) %>
5
+ <% admin_breadcrumb("#{Spree.t(:editing_refund)} #{@refund.id}") %>
7
6
 
8
7
  <%= form_for [:admin, @refund.payment.order, @refund.payment, @refund] do |f| %>
9
8
  <fieldset class="no-border-top">
@@ -23,8 +22,8 @@
23
22
  </div>
24
23
 
25
24
  <div class="form-buttons filter-actions actions" data-hook="buttons">
26
- <%= button Spree.t('actions.save'), 'ok' %>
27
- <%= button_link_to Spree.t('actions.cancel'), admin_order_payments_url(@refund.payment.order), icon: 'remove' %>
25
+ <%= button Spree.t('actions.save') %>
26
+ <%= button_link_to Spree.t('actions.cancel'), admin_order_payments_url(@refund.payment.order) %>
28
27
  </div>
29
28
  </fieldset>
30
29
  <% end %>
@@ -1,9 +1,9 @@
1
1
  <%= render partial: 'spree/admin/shared/order_tabs', locals: {current: 'Payments'} %>
2
2
 
3
- <% content_for :page_title do %>
4
- <i class="fa fa-arrow-right"></i> <%= link_to "#{Spree::Payment.model_name.human} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment) %>
5
- <i class="fa fa-arrow-right"></i> <%= Spree.t(:new_refund) %>
6
- <% end %>
3
+ <% admin_breadcrumb(link_to plural_resource_name(Spree::Payment), spree.admin_order_payments_path(@order)) %>
4
+ <% admin_breadcrumb(link_to "#{Spree::Payment.model_name.human} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment)) %>
5
+ <% admin_breadcrumb(Spree.t(:new_refund)) %>
6
+
7
7
 
8
8
  <%= form_for [:admin, @refund.payment.order, @refund.payment, @refund] do |f| %>
9
9
  <fieldset class="no-border-top">
@@ -35,8 +35,8 @@
35
35
  </div>
36
36
 
37
37
  <div class="form-buttons filter-actions actions" data-hook="buttons">
38
- <%= button Spree::Refund.model_name.human, 'ok' %>
39
- <%= button_link_to Spree.t('actions.cancel'), admin_order_payments_url(@refund.payment.order), icon: 'remove' %>
38
+ <%= button Spree::Refund.model_name.human %>
39
+ <%= button_link_to Spree.t('actions.cancel'), admin_order_payments_url(@refund.payment.order) %>
40
40
  </div>
41
41
  </fieldset>
42
42
  <% end %>
@@ -1,8 +1,9 @@
1
1
  <%= render 'spree/admin/shared/settings_checkout_tabs' %>
2
2
 
3
- <% content_for :page_title do %>
4
- <%= Spree::ReimbursementType.model_name.human(count: :other) %>
5
- <% end %>
3
+ <% admin_breadcrumb(Spree.t(:settings)) %>
4
+ <% admin_breadcrumb(Spree.t('admin.tab.checkout')) %>
5
+ <% admin_breadcrumb(plural_resource_name(Spree::ReimbursementType)) %>
6
+
6
7
 
7
8
  <table class="index" id='listing_reimbursement_types' data-hook>
8
9
  <thead>
@@ -1,11 +1,10 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Customer Returns' } %>
2
2
 
3
- <% content_for :page_title do %>
4
- <i class="fa fa-arrow-right"></i> <%= Spree.t(:editing_reimbursement) %> #<%= @reimbursement.number %>
5
- <% end %>
3
+ <% admin_breadcrumb("#{Spree.t(:editing_reimbursement} #{@reimbursement.number}") %>
4
+
6
5
 
7
6
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:back_to_customer_return), url_for([:edit, :admin, @order, @reimbursement.customer_return]), :icon => 'arrow-left' %></li>
7
+ <li><%= button_link_to Spree.t(:back_to_customer_return), url_for([:edit, :admin, @order, @reimbursement.customer_return]) %></li>
9
8
  <% end %>
10
9
 
11
10
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @reimbursement } %>
@@ -98,10 +97,10 @@
98
97
  <% end %>
99
98
  <div class="form-buttons filter-actions actions" data-hook="reimburse-buttons">
100
99
  <% if !@reimbursement.reimbursed? %>
101
- <%= button_to [:perform, :admin, @order, @reimbursement], {class: 'button fa fa-reply', method: 'post'} do %>
100
+ <%= button_to [:perform, :admin, @order, @reimbursement], { class: 'button', method: 'post' } do %>
102
101
  <%= Spree.t(:reimburse) %>
103
102
  <% end %>
104
- <%= button_link_to Spree.t('actions.cancel'), url_for([:admin, @order, @reimbursement.customer_return]), :icon => 'remove' %>
103
+ <%= button_link_to Spree.t('actions.cancel'), url_for([:admin, @order, @reimbursement.customer_return]) %>
105
104
  <% end %>
106
105
  </div>
107
106
  </fieldset>
@@ -1,11 +1,9 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Reimbursements' } %>
2
2
 
3
- <% content_for :page_title do %>
4
- <i class="fa fa-arrow-right"></i> <%= Spree::Reimbursement.model_name.human(count: :other) %>
5
- <% end %>
3
+ <% admin_breadcrumb(plural_resource_name(Spree::Reimbursement)) %>
6
4
 
7
5
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:back_to_customer_return_list), spree.admin_order_customer_returns_url(@order), :icon => 'arrow-left' %></li>
6
+ <li><%= button_link_to Spree.t(:back_to_customer_return_list), spree.admin_order_customer_returns_url(@order) %></li>
9
7
  <% end %>
10
8
 
11
9
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @customer_return } %>
@@ -1,11 +1,10 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Customer Returns' } %>
2
2
 
3
- <% content_for :page_title do %>
4
- <i class="fa fa-arrow-right"></i> <%= Spree::Reimbursement.model_name.human %> #<%= @reimbursement.number %>
5
- <% end %>
3
+ <% admin_breadcrumb("#{Spree::Reimbursement.model_name.human} #{@reimbursement.number}") %>
4
+
6
5
 
7
6
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:back_to_customer_return), url_for([:edit, :admin, @order, @reimbursement.customer_return]), :icon => 'arrow-left' %></li>
7
+ <li><%= button_link_to Spree.t(:back_to_customer_return), url_for([:edit, :admin, @order, @reimbursement.customer_return]) %></li>
9
8
  <% end %>
10
9
 
11
10
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @reimbursement } %>
@@ -1,6 +1,5 @@
1
- <% content_for :page_title do %>
2
- <%= Spree.t(:listing_reports) %>
3
- <% end %>
1
+ <% admin_breadcrumb(Spree.t(:reports)) %>
2
+
4
3
 
5
4
  <table class="index">
6
5
  <thead>
@@ -1,9 +1,7 @@
1
- <% content_for :page_title do %>
2
- <%= Spree.t(:sales_totals) %>
3
- <% end %>
1
+ <% admin_breadcrumb(link_to Spree.t(:reports), spree.admin_reports_path) %>
2
+ <% admin_breadcrumb(Spree.t(:sales_total)) %>
4
3
 
5
4
  <% content_for :page_actions do %>
6
- <li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_reports_list), spree.admin_reports_url, :class => 'button' %></li>
7
5
  <% end %>
8
6
 
9
7
 
@@ -1,29 +1,28 @@
1
1
  <% content_for :page_actions do %>
2
2
  <% if @return_authorization.can_cancel? %>
3
3
  <li>
4
- <%= button_link_to Spree.t('actions.cancel'), fire_admin_order_return_authorization_url(@order, @return_authorization, e: 'cancel'), method: :put, data: { confirm: Spree.t(:are_you_sure) }, icon: 'remove' %>
4
+ <%= button_link_to Spree.t('actions.cancel'), fire_admin_order_return_authorization_url(@order, @return_authorization, e: 'cancel'), method: :put, data: { confirm: Spree.t(:are_you_sure) } %>
5
5
  </li>
6
6
  <% end %>
7
- <li>
8
- <%= button_link_to Spree.t(:back), spree.admin_order_return_authorizations_url(@order), icon: 'arrow-left' %>
9
- </li>
10
7
  <% end %>
11
8
 
12
9
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %>
13
10
 
14
- <% content_for :page_title do %>
15
- <i class="fa fa-arrow-right"></i> <%= Spree::ReturnAuthorization.model_name.human %> <%= @return_authorization.number %> (<%= Spree.t(@return_authorization.state.downcase) %>)
16
- <% end %>
11
+ <% admin_breadcrumb(link_to plural_resource_name(Spree::ReturnAuthorization), spree.admin_order_return_authorizations_url) %>
12
+ <% admin_breadcrumb("#{@return_authorization.number} (#{Spree.t(@return_authorization.state.downcase)})") %>
17
13
 
18
14
 
19
15
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @return_authorization } %>
20
- <%= form_for [:admin, @order, @return_authorization] do |f| %>
21
- <fieldset class="no-border-top">
22
- <%= render :partial => 'form', :locals => { :f => f } %>
23
16
 
24
- <div class="form-buttons filter-actions actions" data-hook="buttons">
25
- <%= button Spree.t('actions.update'), 'repeat' %>
26
- <%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order), :icon => 'remove' %>
27
- </div>
28
- </fieldset>
29
- <% end %>
17
+ <div data-hook="return-authorization-form-wrapper">
18
+ <%= form_for [:admin, @order, @return_authorization] do |f| %>
19
+ <fieldset class="no-border-top">
20
+ <%= render :partial => 'form', :locals => { :f => f } %>
21
+
22
+ <div class="form-buttons filter-actions actions" data-hook="buttons">
23
+ <%= button Spree.t('actions.update') %>
24
+ <%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order) %>
25
+ </div>
26
+ </fieldset>
27
+ <% end %>
28
+ </div>
@@ -4,16 +4,14 @@
4
4
  <% if @order.shipments.any? &:shipped? %>
5
5
  <li>
6
6
  <% if can? :create, Spree::ReturnAuthorization %>
7
- <%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), :icon => 'plus' %>
7
+ <%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order) %>
8
8
  <% end %>
9
9
  </li>
10
10
  <% end %>
11
- <li><%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => 'arrow-left' %></li>
12
11
  <% end %>
13
12
 
14
- <% content_for :page_title do %>
15
- <i class="fa fa-arrow-right"></i> <%= Spree::ReturnAuthorization.model_name.human(count: :other) %>
16
- <% end %>
13
+ <% admin_breadcrumb(plural_resource_name(Spree::ReturnAuthorization)) %>
14
+
17
15
 
18
16
  <% if @order.shipments.any?(&:shipped?) || @order.return_authorizations.any? %>
19
17
  <table class="index">
@@ -1,11 +1,10 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %>
2
2
 
3
- <% content_for :page_title do %>
4
- <i class="fa fa-arrow-right"></i> <%= Spree.t(:new_return_authorization) %>
5
- <% end %>
3
+ <% admin_breadcrumb(link_to plural_resource_name(Spree::ReturnAuthorization), spree.admin_order_return_authorizations_url) %>
4
+ <% admin_breadcrumb(Spree.t(:new_return_authorization)) %>
5
+
6
6
 
7
7
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:back_to_return_authorizations_list), spree.admin_order_return_authorizations_url, :icon => 'arrow-left' %></li>
9
8
  <% end %>
10
9
 
11
10
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @return_authorization } %>
@@ -14,8 +13,8 @@
14
13
  <%= render :partial => 'form', :locals => { :f => f } %>
15
14
 
16
15
  <div class="form-buttons filter-actions actions" data-hook="buttons">
17
- <%= button Spree.t(:'actions.create'), 'ok' %>
18
- <%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order), :icon => 'remove' %>
16
+ <%= button Spree.t(:'actions.create') %>
17
+ <%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order) %>
19
18
  </div>
20
19
  </fieldset>
21
20
  <% end %>
@@ -1,4 +1,5 @@
1
1
  <%= render partial: 'spree/admin/shared/named_types/edit', locals: {
2
- page_title: Spree.t(:editing_rma_reason),
3
- back_button_text: Spree.t(:back_to_rma_reason_list)
2
+ root_tab: Spree.t(:settings),
3
+ sub_tab: Spree.t('admin.tab.checkout'),
4
+ index_link: link_to(plural_resource_name(Spree::ReturnReason), spree.admin_return_reasons_path),
4
5
  } %>
@@ -1,5 +1,7 @@
1
1
  <%= render partial: 'spree/admin/shared/named_types/index', locals: {
2
- page_title: Spree::ReturnReason.model_name.human(count: :other),
2
+ root_tab: Spree.t(:settings),
3
+ sub_tab: Spree.t('admin.tab.checkout'),
4
+ page_title: plural_resource_name(Spree::ReturnReason),
3
5
  new_button_text: Spree.t(:new_rma_reason),
4
6
  resource: Spree::ReturnReason
5
7
  } %>
@@ -1,4 +1,6 @@
1
1
  <%= render partial: 'spree/admin/shared/named_types/new', locals: {
2
- page_title: Spree.t(:new_rma_reason),
3
- back_button_text: Spree.t(:back_to_rma_reason_list)
2
+ root_tab: Spree.t(:settings),
3
+ sub_tab: Spree.t('admin.tab.checkout'),
4
+ index_link: link_to(plural_resource_name(Spree::ReturnReason), spree.admin_return_reasons_path),
5
+ new_object: Spree.t(:new_rma_reason),
4
6
  } %>
@@ -2,16 +2,16 @@
2
2
  <nav>
3
3
  <ul class="tabs" data-hook="admin_settings_areas_tabs">
4
4
  <% if can? :display, Spree::Zone %>
5
- <%= settings_tab_item Spree::Zone.model_name.human(count: :other), admin_zones_path %>
5
+ <%= settings_tab_item plural_resource_name(Spree::Zone), spree.admin_zones_path %>
6
6
  <% end %>
7
7
 
8
8
  <% if can? :display, Spree::Country %>
9
- <%= settings_tab_item Spree::Country.model_name.human(count: :other), admin_countries_path %>
9
+ <%= settings_tab_item plural_resource_name(Spree::Country), spree.admin_countries_path %>
10
10
  <% end %>
11
11
 
12
12
  <% if can?(:display, Spree::State) %>
13
13
  <% if country = Spree::Country.find_by(iso: Spree::Config[:default_country_iso]) || Spree::Country.first %>
14
- <%= settings_tab_item Spree::State.model_name.human(count: :other), admin_country_states_path(country) %>
14
+ <%= settings_tab_item plural_resource_name(Spree::State), spree.admin_country_states_path(country) %>
15
15
  <% end %>
16
16
  <% end %>
17
17
  </ul>
@@ -5,11 +5,11 @@
5
5
  <nav>
6
6
  <ul class="tabs" data-hook="admin_configurations_sidebar_menu">
7
7
  <% if can?(:edit, :general_settings) %>
8
- <%= settings_tab_item Spree.t(:general_settings), edit_admin_general_settings_path %>
8
+ <%= settings_tab_item Spree.t(:settings), edit_admin_general_settings_path %>
9
9
  <% end %>
10
10
 
11
11
  <% if can?(:display, Spree::Tracker) %>
12
- <%= settings_tab_item Spree.t(:analytics_trackers), admin_trackers_path %>
12
+ <%= settings_tab_item plural_resource_name(Spree::Tracker), admin_trackers_path %>
13
13
  <% end %>
14
14
  </ul>
15
15
  </nav>
@@ -1,4 +1,4 @@
1
1
  <div class="form-buttons filter-actions actions" data-hook="buttons">
2
- <%= button Spree.t('actions.update'), 'refresh' %>
3
- <%= button_link_to Spree.t('actions.cancel'), collection_url, :icon => 'remove' %>
2
+ <%= button Spree.t('actions.update') %>
3
+ <%= button_link_to Spree.t('actions.cancel'), collection_url %>
4
4
  </div>
@@ -2,14 +2,7 @@
2
2
 
3
3
  <%= csrf_meta_tags %>
4
4
 
5
- <title>
6
- <% if content_for? :title %>
7
- <%= yield :title %>
8
- <% else %>
9
- <%= "Solidus #{Spree.t('administration')}: " %>
10
- <%= Spree.t(controller.controller_name, :default => controller.controller_name.titleize) %>
11
- <% end %>
12
- </title>
5
+ <title><%= admin_page_title %></title>
13
6
 
14
7
  <!-- Get "Open Sans" font from Google -->
15
8
  <link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese' rel='stylesheet' type='text/css'>
@@ -1,13 +1,9 @@
1
- <% if content_for?(:page_title) || content_for?(:page_actions) %>
2
- <div id="content-header" class="main-header" data-hook>
3
- <% if content_for?(:page_title) %>
4
- <h1 class="page-title"><%= yield :page_title %></h1>
5
- <% end %>
1
+ <div id="content-header" class="main-header" data-hook>
2
+ <%= render_admin_breadcrumbs %>
6
3
 
7
- <% if content_for?(:page_actions) %>
8
- <ul class="header-actions page-actions inline-menu" data-hook="toolbar">
9
- <%= yield :page_actions %>
10
- </ul>
11
- <% end %>
12
- </div>
13
- <% end %>
4
+ <% if content_for?(:page_actions) %>
5
+ <ul class="header-actions page-actions inline-menu" data-hook="toolbar">
6
+ <%= yield :page_actions %>
7
+ </ul>
8
+ <% end %>
9
+ </div>
@@ -1,4 +1,4 @@
1
1
  <div class="form-buttons filter-actions actions" data-hook="buttons">
2
- <%= button Spree.t('actions.create'), 'ok' %>
3
- <%= link_to_with_icon 'remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %>
2
+ <%= button Spree.t('actions.create') %>
3
+ <%= link_to Spree.t('actions.cancel'), collection_url, :class => 'button' %>
4
4
  </div>
@@ -1,4 +1,4 @@
1
- <%= Spree.t(:no_resource, resource: resource.model_name.human(count: :other)) %>
1
+ <%= Spree.t(:no_resource, resource: plural_resource_name(resource)) %>
2
2
  <% if can? :create, resource %>
3
3
  <%= link_to Spree.t(:create_one), new_resource_url %>
4
4
  <% end %>
@@ -2,46 +2,46 @@
2
2
  <ul class="tabs" data-hook="admin_order_tabs">
3
3
  <% if (@order.shipments.count == 0 || @order.shipped_shipments.count == 0) %>
4
4
  <li class="<%= "active" if current == "Cart" %>" data-hook='admin_order_tabs_order_details'>
5
- <%= link_to_with_icon 'shopping-cart', Spree.t(:cart), cart_admin_order_url(@order) %>
5
+ <%= link_to Spree.t(:cart), spree.cart_admin_order_url(@order) %>
6
6
  </li>
7
7
  <% end %>
8
8
 
9
9
  <% if checkout_steps.include?("address") %>
10
10
  <li class="<%= "active" if (current == "Customer Details") %>" data-hook='admin_order_tabs_customer_details'>
11
11
  <% if can?(:update, @order) %>
12
- <%= link_to_with_icon 'user', Spree.t(:customer), edit_admin_order_customer_url(@order) %>
12
+ <%= link_to Spree.t(:customer), spree.edit_admin_order_customer_url(@order) %>
13
13
  <% else %>
14
- <%= link_to_with_icon 'user', Spree.t(:customer), admin_order_customer_url(@order) %>
14
+ <%= link_to Spree.t(:customer), spree.admin_order_customer_url(@order) %>
15
15
  <% end %>
16
16
  </li>
17
17
  <% end %>
18
18
 
19
19
  <li class="<%= "active" if current == "Shipments" %>" data-hook='admin_order_tabs_order_details'>
20
- <%= link_to_with_icon 'edit', Spree::Shipment.model_name.human(count: :other), edit_admin_order_url(@order) %>
20
+ <%= link_to plural_resource_name(Spree::Shipment), spree.edit_admin_order_url(@order) %>
21
21
  </li>
22
22
 
23
23
  <% if can? :display, Spree::Adjustment %>
24
24
  <li class="<%= "active" if current == "Adjustments" %>" data-hook='admin_order_tabs_adjustments'>
25
- <%= link_to_with_icon 'cogs', Spree::Adjustment.model_name.human(count: :other), admin_order_adjustments_url(@order) %>
25
+ <%= link_to plural_resource_name(Spree::Adjustment), spree.admin_order_adjustments_url(@order) %>
26
26
  </li>
27
27
  <% end %>
28
28
 
29
29
  <% if can?(:display, Spree::Payment) %>
30
30
  <li class="<%= "active" if current == "Payments" %>" data-hook='admin_order_tabs_payments'>
31
- <%= link_to_with_icon 'credit-card', Spree::Payment.model_name.human(count: :other), admin_order_payments_url(@order) %>
31
+ <%= link_to plural_resource_name(Spree::Payment), spree.admin_order_payments_url(@order) %>
32
32
  </li>
33
33
  <% end %>
34
34
 
35
35
  <% if !@order.completed? && can?(:update, @order) %>
36
36
  <li class="<%= "active" if current == "Confirm" %>" data-hook='admin_order_tabs_confirm'>
37
- <%= link_to_with_icon 'check', Spree.t(:confirm), confirm_admin_order_url(@order) %>
37
+ <%= link_to Spree.t(:confirm), spree.confirm_admin_order_url(@order) %>
38
38
  </li>
39
39
  <% end %>
40
40
 
41
41
  <% if can? :display, Spree::ReturnAuthorization %>
42
42
  <% if @order.completed? %>
43
43
  <li class="tab <%= "active" if current == "Return Authorizations" %>" data-hook='admin_order_tabs_return_authorizations'>
44
- <%= link_to_with_icon 'share', Spree.t('admin.tab.rma'), admin_order_return_authorizations_url(@order) %>
44
+ <%= link_to Spree.t('admin.tab.rma'), spree.admin_order_return_authorizations_url(@order) %>
45
45
  </li>
46
46
  <% end %>
47
47
  <% end %>
@@ -49,14 +49,14 @@
49
49
  <% if can? :display, Spree::CustomerReturn %>
50
50
  <% if @order.completed? %>
51
51
  <li class="<%= "active" if current == "Customer Returns" %>">
52
- <%= link_to_with_icon 'download', Spree::CustomerReturn.model_name.human(count: :other), admin_order_customer_returns_url(@order) %>
52
+ <%= link_to plural_resource_name(Spree::CustomerReturn), spree.admin_order_customer_returns_url(@order) %>
53
53
  </li>
54
54
  <% end %>
55
55
  <% end %>
56
56
 
57
57
  <% if can?(:manage, Spree::OrderCancellations) && @order.inventory_units.cancelable.present? %>
58
58
  <%= content_tag('li', class: "#{'active' if current == 'Cancel Inventory'}", :data => {:hook => 'admin_order_tabs_cancel_inventory'}) do %>
59
- <%= link_to_with_icon 'cancel', Spree.t(:cancel_inventory), admin_order_cancellations_path(@order) %>
59
+ <%= link_to Spree.t(:cancel_inventory), spree.admin_order_cancellations_path(@order) %>
60
60
  <% end %>
61
61
  <% end %>
62
62
  </ul>