spree_backend 3.1.14 → 3.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/admin/logo.png +0 -0
  3. data/app/assets/javascripts/spree/backend/admin.js +2 -25
  4. data/app/assets/javascripts/spree/backend/checkouts/edit.js +2 -1
  5. data/app/assets/javascripts/spree/backend/line_items.js.coffee +2 -2
  6. data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js +5 -2
  7. data/app/assets/javascripts/spree/backend/option_type_autocomplete.js +2 -2
  8. data/app/assets/javascripts/spree/backend/option_value_picker.js +2 -2
  9. data/app/assets/javascripts/spree/backend/payments/edit.js.coffee +10 -8
  10. data/app/assets/javascripts/spree/backend/product_picker.js +3 -2
  11. data/app/assets/javascripts/spree/backend/{shipments.js.erb → shipments.js} +1 -1
  12. data/app/assets/javascripts/spree/backend/states.js +9 -7
  13. data/app/assets/javascripts/spree/backend/stock_location.js +3 -0
  14. data/app/assets/javascripts/spree/backend/tag_picker.js +52 -0
  15. data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +2 -2
  16. data/app/assets/javascripts/spree/backend/taxon_permalink_preview.js +12 -0
  17. data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +2 -2
  18. data/app/assets/javascripts/spree/backend/taxons.js.coffee +1 -1
  19. data/app/assets/javascripts/spree/backend/user_picker.js +4 -3
  20. data/app/assets/javascripts/spree/backend.js +8 -7
  21. data/app/assets/stylesheets/spree/backend/components/_main.scss +5 -1
  22. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +7 -0
  23. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +1 -1
  24. data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +0 -1
  25. data/app/controllers/spree/admin/base_controller.rb +0 -11
  26. data/app/controllers/spree/admin/option_types_controller.rb +2 -14
  27. data/app/controllers/spree/admin/option_values_controller.rb +1 -1
  28. data/app/controllers/spree/admin/orders_controller.rb +7 -7
  29. data/app/controllers/spree/admin/payment_methods_controller.rb +4 -0
  30. data/app/controllers/spree/admin/product_properties_controller.rb +1 -1
  31. data/app/controllers/spree/admin/products_controller.rb +1 -1
  32. data/app/controllers/spree/admin/promotion_actions_controller.rb +5 -5
  33. data/app/controllers/spree/admin/promotion_rules_controller.rb +6 -6
  34. data/app/controllers/spree/admin/promotions_controller.rb +2 -2
  35. data/app/controllers/spree/admin/properties_controller.rb +1 -1
  36. data/app/controllers/spree/admin/prototypes_controller.rb +2 -2
  37. data/app/controllers/spree/admin/refunds_controller.rb +1 -1
  38. data/app/controllers/spree/admin/reimbursement_types_controller.rb +26 -0
  39. data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
  40. data/app/controllers/spree/admin/reports_controller.rb +1 -1
  41. data/app/controllers/spree/admin/resource_controller.rb +8 -8
  42. data/app/controllers/spree/admin/return_authorizations_controller.rb +3 -3
  43. data/app/controllers/spree/admin/return_index_controller.rb +1 -1
  44. data/app/controllers/spree/admin/shipping_methods_controller.rb +2 -2
  45. data/app/controllers/spree/admin/states_controller.rb +1 -1
  46. data/app/controllers/spree/admin/stock_items_controller.rb +2 -2
  47. data/app/controllers/spree/admin/stock_movements_controller.rb +1 -5
  48. data/app/controllers/spree/admin/store_credits_controller.rb +1 -1
  49. data/app/controllers/spree/admin/taxons_controller.rb +1 -10
  50. data/app/controllers/spree/admin/users_controller.rb +5 -41
  51. data/app/controllers/spree/admin/variants_controller.rb +3 -1
  52. data/app/helpers/spree/admin/base_helper.rb +1 -6
  53. data/app/helpers/spree/admin/navigation_helper.rb +9 -31
  54. data/app/helpers/spree/admin/promotion_rules_helper.rb +12 -0
  55. data/app/views/kaminari/_first_page.html.erb +1 -1
  56. data/app/views/kaminari/_last_page.html.erb +1 -1
  57. data/app/views/kaminari/_next_page.html.erb +1 -1
  58. data/app/views/kaminari/_page.html.erb +1 -1
  59. data/app/views/kaminari/_paginator.html.erb +2 -4
  60. data/app/views/kaminari/_prev_page.html.erb +1 -1
  61. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +1 -1
  62. data/app/views/spree/admin/adjustments/_form.html.erb +4 -4
  63. data/app/views/spree/admin/countries/_form.html.erb +2 -2
  64. data/app/views/spree/admin/countries/edit.html.erb +3 -3
  65. data/app/views/spree/admin/countries/index.html.erb +3 -3
  66. data/app/views/spree/admin/countries/new.html.erb +3 -3
  67. data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
  68. data/app/views/spree/admin/images/_form.html.erb +2 -2
  69. data/app/views/spree/admin/option_types/_form.html.erb +2 -2
  70. data/app/views/spree/admin/option_types/edit.html.erb +5 -5
  71. data/app/views/spree/admin/option_types/new.html.erb +3 -3
  72. data/app/views/spree/admin/orders/_adjustments.html.erb +6 -4
  73. data/app/views/spree/admin/orders/_form.html.erb +1 -1
  74. data/app/views/spree/admin/orders/_line_items.html.erb +8 -6
  75. data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +1 -1
  76. data/app/views/spree/admin/orders/_shipment.html.erb +9 -7
  77. data/app/views/spree/admin/orders/cart.html.erb +0 -4
  78. data/app/views/spree/admin/orders/edit.html.erb +0 -4
  79. data/app/views/spree/admin/orders/index.html.erb +20 -20
  80. data/app/views/spree/admin/payment_methods/_form.html.erb +5 -5
  81. data/app/views/spree/admin/payment_methods/index.html.erb +3 -3
  82. data/app/views/spree/admin/payments/_form.html.erb +6 -6
  83. data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +6 -6
  84. data/app/views/spree/admin/products/_form.html.erb +14 -8
  85. data/app/views/spree/admin/products/_properties_form.erb +1 -1
  86. data/app/views/spree/admin/products/index.html.erb +6 -6
  87. data/app/views/spree/admin/products/new.html.erb +16 -16
  88. data/app/views/spree/admin/promotion_categories/_form.html.erb +3 -3
  89. data/app/views/spree/admin/promotion_categories/edit.html.erb +3 -3
  90. data/app/views/spree/admin/promotion_categories/index.html.erb +3 -3
  91. data/app/views/spree/admin/promotion_categories/new.html.erb +3 -3
  92. data/app/views/spree/admin/promotions/_actions.html.erb +4 -4
  93. data/app/views/spree/admin/promotions/_form.html.erb +10 -10
  94. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
  95. data/app/views/spree/admin/promotions/_rules.html.erb +4 -4
  96. data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +1 -1
  97. data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +2 -2
  98. data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +1 -1
  99. data/app/views/spree/admin/promotions/edit.html.erb +6 -6
  100. data/app/views/spree/admin/promotions/index.html.erb +5 -5
  101. data/app/views/spree/admin/promotions/new.html.erb +3 -3
  102. data/app/views/spree/admin/promotions/rules/_country.html.erb +6 -0
  103. data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +1 -1
  104. data/app/views/spree/admin/promotions/rules/_product.html.erb +2 -2
  105. data/app/views/spree/admin/promotions/rules/_taxon.html.erb +2 -2
  106. data/app/views/spree/admin/properties/_form.html.erb +2 -2
  107. data/app/views/spree/admin/properties/edit.html.erb +3 -3
  108. data/app/views/spree/admin/properties/index.html.erb +6 -6
  109. data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
  110. data/app/views/spree/admin/prototypes/available.js.erb +1 -1
  111. data/app/views/spree/admin/prototypes/edit.html.erb +3 -3
  112. data/app/views/spree/admin/prototypes/index.html.erb +3 -3
  113. data/app/views/spree/admin/prototypes/new.html.erb +3 -3
  114. data/app/views/spree/admin/prototypes/show.html.erb +1 -1
  115. data/app/views/spree/admin/refunds/edit.html.erb +2 -0
  116. data/app/views/spree/admin/refunds/new.html.erb +2 -0
  117. data/app/views/spree/admin/reimbursement_types/_form.html.erb +32 -0
  118. data/app/views/spree/admin/reimbursement_types/edit.html.erb +11 -0
  119. data/app/views/spree/admin/reimbursement_types/index.html.erb +9 -0
  120. data/app/views/spree/admin/reimbursement_types/new.html.erb +11 -0
  121. data/app/views/spree/admin/reimbursements/edit.html.erb +1 -1
  122. data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
  123. data/app/views/spree/admin/return_authorizations/_form.html.erb +4 -4
  124. data/app/views/spree/admin/return_index/customer_returns.html.erb +1 -2
  125. data/app/views/spree/admin/return_index/return_authorizations.html.erb +4 -4
  126. data/app/views/spree/admin/roles/edit.html.erb +1 -1
  127. data/app/views/spree/admin/roles/new.html.erb +1 -1
  128. data/app/views/spree/admin/shared/_calculator_fields.html.erb +2 -2
  129. data/app/views/spree/admin/shared/_destroy.js.erb +1 -1
  130. data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
  131. data/app/views/spree/admin/shared/_head.html.erb +2 -1
  132. data/app/views/spree/admin/shared/_header.html.erb +4 -11
  133. data/app/views/spree/admin/shared/_index_table_options.html.erb +1 -1
  134. data/app/views/spree/admin/shared/_main_menu.html.erb +6 -0
  135. data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
  136. data/app/views/spree/admin/shared/_order_summary.html.erb +3 -3
  137. data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
  138. data/app/views/spree/admin/shared/_report_order_criteria.html.erb +3 -3
  139. data/app/views/spree/admin/shared/_translations.html.erb +38 -38
  140. data/app/views/spree/admin/shared/{_update_order_state.js → _update_order_state.js.erb} +3 -3
  141. data/app/views/spree/admin/shared/named_types/_index.html.erb +2 -2
  142. data/app/views/spree/admin/shipping_categories/edit.html.erb +3 -3
  143. data/app/views/spree/admin/shipping_categories/index.html.erb +3 -3
  144. data/app/views/spree/admin/shipping_categories/new.html.erb +3 -3
  145. data/app/views/spree/admin/shipping_methods/_form.html.erb +14 -14
  146. data/app/views/spree/admin/shipping_methods/edit.html.erb +3 -3
  147. data/app/views/spree/admin/shipping_methods/index.html.erb +3 -3
  148. data/app/views/spree/admin/shipping_methods/new.html.erb +3 -3
  149. data/app/views/spree/admin/states/_form.html.erb +2 -2
  150. data/app/views/spree/admin/states/_state_list.html.erb +2 -2
  151. data/app/views/spree/admin/states/edit.html.erb +3 -3
  152. data/app/views/spree/admin/states/index.html.erb +3 -3
  153. data/app/views/spree/admin/states/new.html.erb +3 -3
  154. data/app/views/spree/admin/stock_locations/_form.html.erb +0 -8
  155. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +1 -1
  156. data/app/views/spree/admin/stock_locations/edit.html.erb +3 -3
  157. data/app/views/spree/admin/stock_locations/index.html.erb +4 -4
  158. data/app/views/spree/admin/stock_locations/new.html.erb +3 -3
  159. data/app/views/spree/admin/stock_transfers/index.html.erb +3 -3
  160. data/app/views/spree/admin/stock_transfers/new.html.erb +1 -1
  161. data/app/views/spree/admin/stock_transfers/show.html.erb +3 -3
  162. data/app/views/spree/admin/tax_categories/_form.html.erb +7 -7
  163. data/app/views/spree/admin/tax_categories/edit.html.erb +3 -3
  164. data/app/views/spree/admin/tax_categories/new.html.erb +3 -3
  165. data/app/views/spree/admin/tax_rates/_form.html.erb +5 -5
  166. data/app/views/spree/admin/tax_rates/edit.html.erb +3 -3
  167. data/app/views/spree/admin/tax_rates/new.html.erb +3 -3
  168. data/app/views/spree/admin/taxonomies/_form.html.erb +2 -2
  169. data/app/views/spree/admin/taxonomies/_js_head.html.erb +0 -5
  170. data/app/views/spree/admin/taxonomies/new.html.erb +1 -1
  171. data/app/views/spree/admin/taxons/_form.html.erb +7 -7
  172. data/app/views/spree/admin/taxons/_taxon_table.html.erb +1 -1
  173. data/app/views/spree/admin/taxons/edit.html.erb +0 -15
  174. data/app/views/spree/admin/taxons/index.html.erb +1 -1
  175. data/app/views/spree/admin/trackers/_form.html.erb +1 -1
  176. data/app/views/spree/admin/trackers/edit.html.erb +3 -3
  177. data/app/views/spree/admin/trackers/index.html.erb +3 -3
  178. data/app/views/spree/admin/trackers/new.html.erb +3 -3
  179. data/app/views/spree/admin/users/_addresses_form.html.erb +2 -2
  180. data/app/views/spree/admin/users/_form.html.erb +3 -3
  181. data/app/views/spree/admin/users/index.html.erb +7 -7
  182. data/app/views/spree/admin/users/items.html.erb +2 -2
  183. data/app/views/spree/admin/users/new.html.erb +3 -3
  184. data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +24 -7
  185. data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +1 -0
  186. data/app/views/spree/admin/variants/_form.html.erb +7 -7
  187. data/app/views/spree/admin/variants/new.html.erb +3 -3
  188. data/app/views/spree/admin/zones/_country_members.html.erb +1 -1
  189. data/app/views/spree/admin/zones/_form.html.erb +6 -6
  190. data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
  191. data/app/views/spree/admin/zones/edit.html.erb +3 -3
  192. data/app/views/spree/admin/zones/index.html.erb +5 -5
  193. data/app/views/spree/admin/zones/new.html.erb +3 -3
  194. data/config/routes.rb +4 -12
  195. data/lib/spree/backend/engine.rb +2 -6
  196. data/spec/controllers/spree/admin/base_controller_spec.rb +46 -0
  197. data/spec/controllers/spree/admin/customer_returns_controller_spec.rb +185 -0
  198. data/spec/controllers/spree/admin/general_settings_controller_spec.rb +41 -0
  199. data/spec/controllers/spree/admin/missing_products_controller_spec.rb +18 -0
  200. data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +197 -0
  201. data/spec/controllers/spree/admin/orders_controller_spec.rb +296 -0
  202. data/spec/controllers/spree/admin/payment_methods_controller_spec.rb +49 -0
  203. data/spec/controllers/spree/admin/payments_controller_spec.rb +97 -0
  204. data/spec/controllers/spree/admin/products_controller_spec.rb +99 -0
  205. data/spec/controllers/spree/admin/promotion_actions_controller_spec.rb +21 -0
  206. data/spec/controllers/spree/admin/promotion_rules_controller_spec.rb +21 -0
  207. data/spec/controllers/spree/admin/promotions_controller_spec.rb +44 -0
  208. data/spec/controllers/spree/admin/refunds_controller_spec.rb +32 -0
  209. data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +74 -0
  210. data/spec/controllers/spree/admin/reports_controller_spec.rb +42 -0
  211. data/spec/controllers/spree/admin/resource_controller_spec.rb +252 -0
  212. data/spec/controllers/spree/admin/return_authorizations_controller_spec.rb +225 -0
  213. data/spec/controllers/spree/admin/return_index_controller_spec.rb +37 -0
  214. data/spec/controllers/spree/admin/return_items_controller_spec.rb +27 -0
  215. data/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +14 -0
  216. data/spec/controllers/spree/admin/stock_items_controller_spec.rb +19 -0
  217. data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +41 -0
  218. data/spec/controllers/spree/admin/stock_transfers_controller_spec.rb +41 -0
  219. data/spec/controllers/spree/admin/tax_categories_controller_spec.rb +34 -0
  220. data/spec/controllers/spree/admin/users_controller_spec.rb +161 -0
  221. data/spec/controllers/spree/admin/variants_controller_spec.rb +32 -0
  222. data/spec/features/admin/configuration/analytics_tracker_spec.rb +47 -0
  223. data/spec/features/admin/configuration/countries_spec.rb +24 -0
  224. data/spec/features/admin/configuration/general_settings_spec.rb +44 -0
  225. data/spec/features/admin/configuration/payment_methods_spec.rb +63 -0
  226. data/spec/features/admin/configuration/roles_spec.rb +47 -0
  227. data/spec/features/admin/configuration/shipping_methods_spec.rb +62 -0
  228. data/spec/features/admin/configuration/states_spec.rb +68 -0
  229. data/spec/features/admin/configuration/stock_locations_spec.rb +48 -0
  230. data/spec/features/admin/configuration/store_credit_categories_spec.rb +50 -0
  231. data/spec/features/admin/configuration/tax_categories_spec.rb +56 -0
  232. data/spec/features/admin/configuration/tax_rates_spec.rb +18 -0
  233. data/spec/features/admin/configuration/zones_spec.rb +39 -0
  234. data/spec/features/admin/homepage_spec.rb +89 -0
  235. data/spec/features/admin/locale_spec.rb +31 -0
  236. data/spec/features/admin/orders/adjustments_promotions_spec.rb +53 -0
  237. data/spec/features/admin/orders/adjustments_spec.rb +129 -0
  238. data/spec/features/admin/orders/cancelling_and_resuming_spec.rb +47 -0
  239. data/spec/features/admin/orders/customer_details_spec.rb +154 -0
  240. data/spec/features/admin/orders/line_items_spec.rb +51 -0
  241. data/spec/features/admin/orders/listing_spec.rb +224 -0
  242. data/spec/features/admin/orders/log_entries_spec.rb +55 -0
  243. data/spec/features/admin/orders/new_order_spec.rb +186 -0
  244. data/spec/features/admin/orders/order_details_spec.rb +662 -0
  245. data/spec/features/admin/orders/payments_spec.rb +231 -0
  246. data/spec/features/admin/orders/risk_analysis_spec.rb +48 -0
  247. data/spec/features/admin/orders/shipments_spec.rb +64 -0
  248. data/spec/features/admin/orders/state_changes_spec.rb +21 -0
  249. data/spec/features/admin/products/edit/images_spec.rb +86 -0
  250. data/spec/features/admin/products/edit/products_spec.rb +64 -0
  251. data/spec/features/admin/products/edit/taxons_spec.rb +41 -0
  252. data/spec/features/admin/products/edit/variants_spec.rb +56 -0
  253. data/spec/features/admin/products/option_types_spec.rb +114 -0
  254. data/spec/features/admin/products/products_spec.rb +445 -0
  255. data/spec/features/admin/products/properties_spec.rb +147 -0
  256. data/spec/features/admin/products/prototypes_spec.rb +112 -0
  257. data/spec/features/admin/products/stock_management_spec.rb +124 -0
  258. data/spec/features/admin/products/taxonomies_spec.rb +52 -0
  259. data/spec/features/admin/products/variant_spec.rb +50 -0
  260. data/spec/features/admin/promotions/adjustments_spec.rb +259 -0
  261. data/spec/features/admin/promotions/option_value_rule_spec.rb +70 -0
  262. data/spec/features/admin/promotions/tiered_calculator_spec.rb +70 -0
  263. data/spec/features/admin/refund_reasons/refund_reasons_spec.rb +57 -0
  264. data/spec/features/admin/reimbursement_type/edit_reimbursement_type_spec.rb +36 -0
  265. data/spec/features/admin/reimbursement_type/new_reimbursement_type_spec.rb +62 -0
  266. data/spec/features/admin/reports_spec.rb +61 -0
  267. data/spec/features/admin/return_authorization_reasons/return_authorization_reasons_spec.rb +63 -0
  268. data/spec/features/admin/returns/customer_returns_spec.rb +80 -0
  269. data/spec/features/admin/returns/return_authorizations_spec.rb +152 -0
  270. data/spec/features/admin/stock_transfer_spec.rb +75 -0
  271. data/spec/features/admin/store_credits_spec.rb +93 -0
  272. data/spec/features/admin/taxons_spec.rb +47 -0
  273. data/spec/features/admin/users_spec.rb +286 -0
  274. data/spec/helpers/admin/base_helper_spec.rb +30 -0
  275. data/spec/helpers/admin/navigation_helper_spec.rb +111 -0
  276. data/spec/helpers/admin/promotion_rules_helper_spec.rb +12 -0
  277. data/spec/helpers/admin/stock_movements_helper_spec.rb +30 -0
  278. data/spec/models/spree/resource_spec.rb +48 -0
  279. data/spec/routing/admin_path_spec.rb +22 -0
  280. data/spec/spec_helper.rb +144 -0
  281. data/spec/support/appear_before_matcher.rb +8 -0
  282. data/spec/support/ror_ringer.jpeg +0 -0
  283. data/spec/test_views/spree/admin/submodule/posts/edit.html.erb +1 -0
  284. data/spec/test_views/spree/admin/submodule/posts/new.html.erb +1 -0
  285. data/spec/test_views/spree/admin/widgets/edit.html.erb +1 -0
  286. data/spec/test_views/spree/admin/widgets/new.html.erb +1 -0
  287. data/spree_backend.gemspec +4 -3
  288. data/vendor/assets/javascripts/jquery.jstree/jquery.jstree.js +130 -154
  289. metadata +114 -34
  290. data/app/assets/images/admin/payment_banner.png +0 -0
  291. data/app/assets/images/admin/progress.gif +0 -0
  292. data/app/assets/javascripts/spree/backend/nested-attribute.js +0 -27
  293. data/app/assets/javascripts/spree/backend/orders/edit_form.js +0 -21
  294. data/app/assets/stylesheets/spree/backend/components/_variables.scss +0 -12
  295. data/app/assets/stylesheets/spree/backend/plugins/_js_tree.scss +0 -0
  296. data/app/assets/stylesheets/spree/backend/shared/_typography.scss +0 -5
  297. data/app/controllers/spree/admin/root_controller.rb +0 -18
  298. data/app/controllers/spree/admin/search_controller.rb +0 -41
  299. data/app/helpers/spree/admin/inventory_settings_helper.rb +0 -9
  300. data/app/helpers/spree/admin/products_helper.rb +0 -29
  301. data/app/helpers/spree/admin/tables_helper.rb +0 -15
  302. data/app/helpers/spree/promotion_rules_helper.rb +0 -13
  303. data/app/views/spree/admin/inventory_units/adjust.html.erb +0 -29
  304. data/app/views/spree/admin/orders/_line_item.html.erb +0 -21
  305. data/app/views/spree/admin/refund_reasons/destroy.js.erb +0 -1
  306. data/app/views/spree/admin/return_authorization_reasons/destroy.js.erb +0 -1
  307. data/app/views/spree/admin/search/products.rabl +0 -9
  308. data/app/views/spree/admin/search/users.rabl +0 -30
  309. data/app/views/spree/admin/stock_movements/edit.html.erb +0 -17
@@ -3,7 +3,7 @@
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', id: 'admin_new_named_type', class: "btn-success" } %>
7
7
  <% end if can? :create, resource %>
8
8
 
9
9
  <% if @collection.any? %>
@@ -11,7 +11,7 @@
11
11
  <thead>
12
12
  <tr data-hook="named_types_header">
13
13
  <th><%= Spree.t(:name) %></th>
14
- <th><%= Spree.t(:state) %></th>
14
+ <th><%= Spree.t(:status) %></th>
15
15
  <th></th>
16
16
  </tr>
17
17
  </thead>
@@ -3,9 +3,9 @@
3
3
  <%= @shipping_category.name %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @shipping_category } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_category } %>
7
7
 
8
8
  <%= form_for [:admin, @shipping_category] do |f| %>
9
- <%= render :partial => 'form', :locals => { :f => f } %>
10
- <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
9
+ <%= render partial: 'form', locals: { f: f } %>
10
+ <%= render partial: 'spree/admin/shared/edit_resource_links' %>
11
11
  <% end %>
@@ -3,7 +3,7 @@
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' %>
7
7
  <% end if can? :create, Spree::ShippingCategory %>
8
8
 
9
9
  <% if @shipping_categories.any? %>
@@ -19,8 +19,8 @@
19
19
  <tr id="<%= spree_dom_id shipping_category %>" data-hook="category_row">
20
20
  <td><%= shipping_category.name %></td>
21
21
  <td class="actions actions-2 text-right">
22
- <%= link_to_edit(shipping_category, :no_text => true) if can? :edit, shipping_category %>
23
- <%= link_to_delete(shipping_category, :no_text => true) if can? :edit, shipping_category %>
22
+ <%= link_to_edit(shipping_category, no_text: true) if can? :edit, shipping_category %>
23
+ <%= link_to_delete(shipping_category, no_text: true) if can? :edit, shipping_category %>
24
24
  </td>
25
25
  </tr>
26
26
  <% end %>
@@ -3,11 +3,11 @@
3
3
  <%= Spree.t(:new_shipping_category) %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @shipping_category } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_category } %>
7
7
 
8
8
  <%= form_for [:admin, @shipping_category] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
11
- <%= render :partial => 'spree/admin/shared/new_resource_links' %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
+ <%= render partial: 'spree/admin/shared/new_resource_links' %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -1,17 +1,17 @@
1
1
  <div data-hook="admin_shipping_method_form_fields">
2
2
  <div class="row">
3
3
  <div data-hook="admin_shipping_method_form_name_field" class="col-md-6">
4
- <%= f.field_container :name, :class => ['form-group'] do %>
4
+ <%= f.field_container :name, class: ['form-group'] do %>
5
5
  <%= f.label :name, Spree.t(:name) %>
6
- <%= f.text_field :name, :class => 'form-control' %>
6
+ <%= f.text_field :name, class: 'form-control' %>
7
7
  <%= f.error_message_on :name %>
8
8
  <% end %>
9
9
  </div>
10
10
 
11
11
  <div data-hook="admin_shipping_method_form_display_field" class="col-md-6">
12
- <%= f.field_container :display_on, :class => ['form-group'] do %>
12
+ <%= f.field_container :display_on, class: ['form-group'] do %>
13
13
  <%= f.label :display_on, Spree.t(:display) %>
14
- <%= select(:shipping_method, :display_on, Spree::ShippingMethod::DISPLAY.collect { |display| [Spree.t(display), display == :both ? nil : display.to_s] }, {}, { :class => 'select2' }) %>
14
+ <%= select(:shipping_method, :display_on, Spree::ShippingMethod::DISPLAY.collect { |display| [Spree.t(display), display == :both ? nil : display.to_s] }, {}, { class: 'select2' }) %>
15
15
  <%= f.error_message_on :display_on %>
16
16
  <% end %>
17
17
  </div>
@@ -19,25 +19,25 @@
19
19
 
20
20
  <div class="row">
21
21
  <div data-hook="admin_shipping_method_form_internal_name_field" class="col-md-4">
22
- <%= f.field_container :admin_name, :class => ['form-group'] do %>
22
+ <%= f.field_container :admin_name, class: ['form-group'] do %>
23
23
  <%= f.label :admin_name, Spree.t(:internal_name) %>
24
- <%= f.text_field :admin_name, :class => 'form-control', :label => false %>
24
+ <%= f.text_field :admin_name, class: 'form-control', label: false %>
25
25
  <%= f.error_message_on :admin_name %>
26
26
  <% end %>
27
27
  </div>
28
28
 
29
29
  <div data-hook="admin_shipping_method_form_code" class="col-md-4">
30
- <%= f.field_container :code, :class => ['form-group'] do %>
30
+ <%= f.field_container :code, class: ['form-group'] do %>
31
31
  <%= f.label :code, Spree.t(:code) %>
32
- <%= f.text_field :code, :class => 'form-control', :label => false %>
32
+ <%= f.text_field :code, class: 'form-control', label: false %>
33
33
  <%= f.error_message_on :code %>
34
34
  <% end %>
35
35
  </div>
36
36
 
37
37
  <div data-hook="admin_shipping_method_form_tracking_url_field" class="col-md-4">
38
- <%= f.field_container :tracking_url, :class => ['form-group'] do %>
38
+ <%= f.field_container :tracking_url, class: ['form-group'] do %>
39
39
  <%= f.label :tracking_url, Spree.t(:tracking_url) %>
40
- <%= f.text_field :tracking_url, :class => 'form-control', :placeholder => Spree.t(:tracking_url_placeholder) %>
40
+ <%= f.text_field :tracking_url, class: 'form-control', placeholder: Spree.t(:tracking_url_placeholder) %>
41
41
  <%= f.error_message_on :tracking_url %>
42
42
  <% end %>
43
43
  </div>
@@ -54,7 +54,7 @@
54
54
  </div>
55
55
 
56
56
  <div class="panel-body">
57
- <%= f.field_container :categories, :class => ['form-group'] do %>
57
+ <%= f.field_container :categories, class: ['form-group'] do %>
58
58
  <% Spree::ShippingCategory.all.each do |category| %>
59
59
  <div class="checkbox">
60
60
  <%= label_tag do %>
@@ -78,7 +78,7 @@
78
78
  </div>
79
79
 
80
80
  <div class="panel-body">
81
- <%= f.field_container :zones, :class => ['form-group'] do %>
81
+ <%= f.field_container :zones, class: ['form-group'] do %>
82
82
  <% shipping_method_zones = @shipping_method.zones.to_a %>
83
83
  <% Spree::Zone.all.each do |zone| %>
84
84
  <div class="checkbox">
@@ -97,7 +97,7 @@
97
97
 
98
98
  <div class="row">
99
99
  <div data-hook="admin_shipping_method_form_calculator_fields" class="col-md-6">
100
- <%= render :partial => 'spree/admin/shared/calculator_fields', :locals => { :f => f } %>
100
+ <%= render partial: 'spree/admin/shared/calculator_fields', locals: { f: f } %>
101
101
  </div>
102
102
 
103
103
  <div class="col-md-6">
@@ -109,7 +109,7 @@
109
109
  </div>
110
110
 
111
111
  <div class="panel-body">
112
- <%= f.field_container :categories, :class => ['form-group'] do %>
112
+ <%= f.field_container :categories, class: ['form-group'] do %>
113
113
  <%= f.select :tax_category_id, @tax_categories.map { |tc| [tc.name, tc.id] }, { include_blank: true }, class: "select2" %>
114
114
  <%= f.error_message_on :tax_category_id %>
115
115
  <% end %>
@@ -4,14 +4,14 @@
4
4
  <% end %>
5
5
 
6
6
  <div data-hook="admin_shipping_method_edit_form_header">
7
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @shipping_method } %>
7
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_method } %>
8
8
  </div>
9
9
 
10
10
  <div data-hook="admin_shipping_method_edit_form">
11
11
  <%= form_for [:admin, @shipping_method] do |f| %>
12
- <%= render :partial => 'form', :locals => { :f => f } %>
12
+ <%= render partial: 'form', locals: { f: f } %>
13
13
  <div data-hook="admin_shipping_method_edit_form_buttons">
14
- <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
14
+ <%= render partial: 'spree/admin/shared/edit_resource_links' %>
15
15
  </div>
16
16
  <% end %>
17
17
  </div>
@@ -3,7 +3,7 @@
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', id: 'admin_new_shipping_method_link' %>
7
7
  <% end if can? :create, Spree::ShippingMethod %>
8
8
 
9
9
  <% if @shipping_methods.any? %>
@@ -25,8 +25,8 @@
25
25
  <td><%= shipping_method.calculator.description %></td>
26
26
  <td class="text-center"><%= shipping_method.display_on.blank? ? Spree.t(:both) : Spree.t(shipping_method.display_on) %></td>
27
27
  <td data-hook="admin_shipping_methods_index_row_actions" class="actions actions-2 text-right">
28
- <%= link_to_edit(shipping_method, :no_text => true) if can? :edit, shipping_method %>
29
- <%= link_to_delete(shipping_method, :no_text => true) if can? :delete, shipping_method %>
28
+ <%= link_to_edit(shipping_method, no_text: true) if can? :edit, shipping_method %>
29
+ <%= link_to_delete(shipping_method, no_text: true) if can? :delete, shipping_method %>
30
30
  </td>
31
31
  </tr>
32
32
  <% end %>
@@ -4,16 +4,16 @@
4
4
  <% end %>
5
5
 
6
6
  <div data-hook="admin_shipping_method_new_form_header">
7
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @shipping_method } %>
7
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @shipping_method } %>
8
8
  </div>
9
9
 
10
10
  <div data-hook="admin_shipping_method_new_form">
11
11
  <%= form_for [:admin, @shipping_method] do |f| %>
12
12
  <fieldset>
13
- <%= render :partial => 'form', :locals => { :f => f } %>
13
+ <%= render partial: 'form', locals: { f: f } %>
14
14
 
15
15
  <div data-hook="admin_shipping_method_new_form_buttons">
16
- <%= render :partial => 'spree/admin/shared/new_resource_links' %>
16
+ <%= render partial: 'spree/admin/shared/new_resource_links' %>
17
17
  </div>
18
18
  </fieldset>
19
19
  <% end %>
@@ -2,14 +2,14 @@
2
2
  <div class="col-md-6">
3
3
  <%= f.field_container :name, class: ['form-group'] do %>
4
4
  <%= f.label :name, Spree.t(:name) %>
5
- <%= f.text_field :name, :class => 'form-control' %>
5
+ <%= f.text_field :name, class: 'form-control' %>
6
6
  <%= f.error_message_on :name %>
7
7
  <% end %>
8
8
  </div>
9
9
  <div class="col-md-6">
10
10
  <%= f.field_container :abbr, class: ['form-group'] do %>
11
11
  <%= f.label :abbr, Spree.t(:abbreviation) %>
12
- <%= f.text_field :abbr, :class => 'form-control' %>
12
+ <%= f.text_field :abbr, class: 'form-control' %>
13
13
  <% end %>
14
14
  </div>
15
15
  </div>
@@ -14,8 +14,8 @@
14
14
  <td><%= state.name %></td>
15
15
  <td class="text-center"><%= state.abbr %></td>
16
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 %>
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
19
  </td>
20
20
  </tr>
21
21
  <% end %>
@@ -3,11 +3,11 @@
3
3
  <%= @state.name %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @state } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @state } %>
7
7
 
8
8
  <%= form_for [:admin, @country, @state] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
11
- <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
+ <%= render partial: 'spree/admin/shared/edit_resource_links' %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -3,16 +3,16 @@
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', id: 'new_state_link' } %>
7
7
  <% end if can? :create, Spree::State %>
8
8
 
9
9
  <div data-hook="country" class="form-group">
10
10
  <%= label_tag :country, Spree.t(:country) %>
11
- <select id="country" class='observe_field select2' data-base-url="<%=admin_states_path(:format => :js) %>?country_id=" data-update="#state-list">
11
+ <select id="country" class='observe_field select2' data-base-url="<%=admin_states_path(format: :js) %>?country_id=" data-update="#state-list">
12
12
  <%= options_from_collection_for_select(@countries, :id, :name, @country.id) %>
13
13
  </select>
14
14
  </div>
15
15
 
16
16
  <div id="state-list" data-hook>
17
- <%= render :partial => 'state_list'%>
17
+ <%= render partial: 'state_list'%>
18
18
  </div>
@@ -1,4 +1,4 @@
1
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @state } %>
1
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @state } %>
2
2
 
3
3
  <% content_for :page_title do %>
4
4
  <%= link_to Spree.t(:states), spree.admin_country_states_url(@country) %> /
@@ -7,7 +7,7 @@
7
7
 
8
8
  <%= form_for [:admin, @country, @state] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
11
- <%= render :partial => 'spree/admin/shared/new_resource_links' %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
+ <%= render partial: 'spree/admin/shared/new_resource_links' %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -85,11 +85,3 @@
85
85
  <% end %>
86
86
  </div>
87
87
  </div>
88
-
89
- <% content_for :head do %>
90
- <%= javascript_tag do %>
91
- $(document).ready(function(){
92
- $('span#country .select2').on('change', function() { update_state(''); });
93
- });
94
- <% end %>
95
- <% end %>
@@ -33,7 +33,7 @@
33
33
  <div class="form-actions" data-hook="buttons">
34
34
  <%= button Spree.t(:transfer_stock), 'plus' %>
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: 'delete' %>
37
37
  </div>
38
38
  </fieldset>
39
39
  <% end %>
@@ -3,11 +3,11 @@
3
3
  <%= @stock_location.name %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @stock_location } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @stock_location } %>
7
7
 
8
8
  <%= form_for [:admin, @stock_location] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
11
- <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
+ <%= render partial: 'spree/admin/shared/edit_resource_links' %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -3,7 +3,7 @@
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', id: 'admin_new_stock_location' } %>
7
7
  <% end if can? :create, Spree::StockLocation %>
8
8
 
9
9
  <% if @stock_locations.any? %>
@@ -11,7 +11,7 @@
11
11
  <thead>
12
12
  <tr data-hook="stock_locations_header">
13
13
  <th><%= Spree.t(:name) %></th>
14
- <th><%= Spree.t(:state) %></th>
14
+ <th><%= Spree.t(:status) %></th>
15
15
  <th><%= Spree.t(:stock_movements) %></th>
16
16
  <th class="actions"></th>
17
17
  </tr>
@@ -26,8 +26,8 @@
26
26
  <td><span class="state <%= state(stock_location) %>"><%= Spree.t(state(stock_location)) %></span></td>
27
27
  <td><%= link_to Spree.t(:stock_movements), admin_stock_location_stock_movements_path(stock_location.id) %> </td>
28
28
  <td class="actions actions-2 text-center">
29
- <%= link_to_edit(stock_location, :no_text => true) if can? :create, stock_location %>
30
- <%= link_to_delete(stock_location, :no_text => true) if can? :create, stock_location %>
29
+ <%= link_to_edit(stock_location, no_text: true) if can? :create, stock_location %>
30
+ <%= link_to_delete(stock_location, no_text: true) if can? :create, stock_location %>
31
31
  </td>
32
32
  </tr>
33
33
  <% end %>
@@ -3,11 +3,11 @@
3
3
  <%= Spree.t(:new_stock_location) %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @stock_location } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @stock_location } %>
7
7
 
8
8
  <%= form_for [:admin, @stock_location] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
11
- <%= render :partial => 'spree/admin/shared/new_resource_links' %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
+ <%= render partial: 'spree/admin/shared/new_resource_links' %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -3,13 +3,13 @@
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', class: 'btn-success' } %>
7
7
  <% end if can? :create, Spree::StockTransfer %>
8
8
 
9
9
  <div data-hook="admin_orders_index_search" class="well">
10
10
  <fieldset>
11
11
  <legend><%= Spree.t(:search) %></legend>
12
- <%= search_form_for @q, :url => admin_stock_transfers_path do |f| %>
12
+ <%= search_form_for @q, url: admin_stock_transfers_path do |f| %>
13
13
 
14
14
  <div class="row no-marginb">
15
15
  <div class="col-md-4">
@@ -66,7 +66,7 @@
66
66
  <td><%= stock_transfer.source_location.try(:name) %></td>
67
67
  <td><%= stock_transfer.destination_location.try(:name) %></td>
68
68
  <td class="actions actions-1">
69
- <%= link_to_with_icon 'show', Spree.t(:show), admin_stock_transfer_path(stock_transfer), :class => 'btn btn-default btn-sm', :no_text => true, :data => {:action => 'view'} %>
69
+ <%= link_to_with_icon 'show', Spree.t(:show), admin_stock_transfer_path(stock_transfer), class: 'btn btn-default btn-sm', no_text: true, data: {action: 'view'} %>
70
70
  </td>
71
71
  </tr>
72
72
  <% end %>
@@ -19,7 +19,7 @@
19
19
  {{/each}}
20
20
  </script>
21
21
 
22
- <%= form_tag admin_stock_transfers_path, :method => :post do %>
22
+ <%= form_tag admin_stock_transfers_path, method: :post do %>
23
23
  <div class="panel panel-default">
24
24
  <div class="panel-heading">
25
25
  <h1 class="panel-title">
@@ -4,7 +4,7 @@
4
4
  <% end %>
5
5
 
6
6
  <% content_for :page_actions do %>
7
- <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :icon => 'add', :class => 'btn-success' } %>
7
+ <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { icon: 'add', class: 'btn-success' } %>
8
8
  <% end if can? :create, Spree::StockTransfer %>
9
9
 
10
10
  <fieldset>
@@ -28,7 +28,7 @@
28
28
  <legend id="stock-location-source">
29
29
  <%= Spree.t(:source) %> / <%= @stock_transfer.source_location.name %>
30
30
  </legend>
31
- <%= render :partial => 'stock_movements', :object => @stock_transfer.source_movements %>
31
+ <%= render partial: 'stock_movements', object: @stock_transfer.source_movements %>
32
32
  </fieldset>
33
33
  <% end %>
34
34
 
@@ -37,7 +37,7 @@
37
37
  <legend id="stock-location-destination">
38
38
  <%= Spree.t(:destination) %> / <%= @stock_transfer.destination_location.name %>
39
39
  </legend>
40
- <%= render :partial => 'stock_movements', :object => @stock_transfer.destination_movements %>
40
+ <%= render partial: 'stock_movements', object: @stock_transfer.destination_movements %>
41
41
  </fieldset>
42
42
  <% end %>
43
43
 
@@ -1,21 +1,21 @@
1
1
  <div data-hook="admin_tax_category_form_fields">
2
- <%= f.field_container :name, :class => ['form-group'] do %>
2
+ <%= f.field_container :name, class: ['form-group'] do %>
3
3
  <%= f.label :name, Spree.t(:name) %>
4
- <%= f.text_field :name, :class => 'form-control' %>
4
+ <%= f.text_field :name, class: 'form-control' %>
5
5
  <%= f.error_message_on :name %>
6
6
  <% end %>
7
7
 
8
- <%= f.field_container :tax_code, :class => ['form-group'] do %>
8
+ <%= f.field_container :tax_code, class: ['form-group'] do %>
9
9
  <%= f.label :tax_code, Spree.t(:tax_code) %>
10
- <%= f.text_field :tax_code, :class => 'form-control' %>
10
+ <%= f.text_field :tax_code, class: 'form-control' %>
11
11
  <% end %>
12
12
 
13
- <%= f.field_container :description, :class => ['form-group'] do %>
13
+ <%= f.field_container :description, class: ['form-group'] do %>
14
14
  <%= f.label :description, Spree.t(:description) %><br>
15
- <%= f.text_field :description, :class => 'form-control' %>
15
+ <%= f.text_field :description, class: 'form-control' %>
16
16
  <% end %>
17
17
 
18
- <%= f.field_container :is_default, :class => ['checkbox'] do %>
18
+ <%= f.field_container :is_default, class: ['checkbox'] do %>
19
19
  <%= f.label :is_default do %>
20
20
  <%= f.check_box :is_default %>
21
21
  <%= Spree.t(:default) %>
@@ -3,11 +3,11 @@
3
3
  <%= @tax_category.name %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @tax_category } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_category } %>
7
7
 
8
8
  <%= form_for [:admin, @tax_category] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
11
- <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
+ <%= render partial: 'spree/admin/shared/edit_resource_links' %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -3,11 +3,11 @@
3
3
  <%= Spree.t(:new_tax_category) %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @tax_category } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_category } %>
7
7
 
8
8
  <%= form_for [:admin, @tax_category] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
11
- <%= render :partial => 'spree/admin/shared/new_resource_links' %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
+ <%= render partial: 'spree/admin/shared/new_resource_links' %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -10,12 +10,12 @@
10
10
  <div class="col-md-6">
11
11
  <div data-hook="name" class="form-group">
12
12
  <%= f.label :name, Spree.t(:name) %>
13
- <%= f.text_field :name, :class => 'form-control' %>
13
+ <%= f.text_field :name, class: 'form-control' %>
14
14
  </div>
15
15
  <div data-hook="rate" class="form-group">
16
16
  <%= f.field_container :amount, class: ["form-group"] do %>
17
17
  <%= f.label :amount, Spree.t(:rate) %>
18
- <%= f.text_field :amount, :class => 'form-control' %>
18
+ <%= f.text_field :amount, class: 'form-control' %>
19
19
  <%= f.error_message_on :amount %>
20
20
  <% end %>
21
21
  <p class="help-block">
@@ -33,11 +33,11 @@
33
33
  <div class="col-md-6">
34
34
  <div data-hook="zone" class="form-group">
35
35
  <%= f.label :zone, Spree.t(:zone) %>
36
- <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {:class => 'select2'}) %>
36
+ <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {class: 'select2'}) %>
37
37
  </div>
38
38
  <div data-hook="category" class="form-group">
39
39
  <%= f.label :tax_category_id, Spree.t(:tax_category) %>
40
- <%= f.collection_select(:tax_category_id, @available_categories,:id, :name, {}, {:class => 'select2'}) %>
40
+ <%= f.collection_select(:tax_category_id, @available_categories,:id, :name, {}, {class: 'select2'}) %>
41
41
  </div>
42
42
  <div data-hook="show_rate" class="form-group">
43
43
  <%= f.label :show_rate_in_label do %>
@@ -51,4 +51,4 @@
51
51
  </div>
52
52
  </div>
53
53
 
54
- <%= render 'spree/admin/shared/calculator_fields', :f => f %>
54
+ <%= render 'spree/admin/shared/calculator_fields', f: f %>
@@ -3,9 +3,9 @@
3
3
  <%= @tax_rate.name %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @tax_rate } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_rate } %>
7
7
 
8
8
  <%= form_for [:admin, @tax_rate] do |f| %>
9
- <%= render :partial => 'form', :locals => { :f => f } %>
10
- <%= render :partial => 'spree/admin/shared/edit_resource_links' %>
9
+ <%= render partial: 'form', locals: { f: f } %>
10
+ <%= render partial: 'spree/admin/shared/edit_resource_links' %>
11
11
  <% end %>
@@ -3,12 +3,12 @@
3
3
  <%= Spree.t(:new_tax_rate) %>
4
4
  <% end %>
5
5
 
6
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @tax_rate } %>
6
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @tax_rate } %>
7
7
 
8
8
  <%= form_for [:admin, @tax_rate] do |f| %>
9
9
  <fieldset>
10
- <%= render :partial => 'form', :locals => { :f => f } %>
10
+ <%= render partial: 'form', locals: { f: f } %>
11
11
 
12
- <%= render :partial => 'spree/admin/shared/new_resource_links' %>
12
+ <%= render partial: 'spree/admin/shared/new_resource_links' %>
13
13
  </fieldset>
14
14
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <div data-hook="admin_inside_taxonomy_form" class="form-group">
2
2
  <%= f.field_container :name, class: ['form-group'] do %>
3
3
  <%= f.label :name, Spree.t(:name) %> <span class="required">*</span>
4
- <%= f.text_field :name, :class => 'form-control' %>
5
- <%= f.error_message_on :name, :class => 'error-message' %>
4
+ <%= f.text_field :name, class: 'form-control' %>
5
+ <%= f.error_message_on :name, class: 'error-message' %>
6
6
  <% end %>
7
7
  </div>
@@ -1,10 +1,5 @@
1
1
  <% content_for :head do %>
2
2
  <%= javascript_tag "var taxonomy_id = #{@taxonomy.id};
3
- var loading = '#{escape_javascript Spree.t(:loading)}';
4
- var new_taxon = '#{escape_javascript Spree.t(:new_taxon)}';
5
- var server_error = '#{escape_javascript Spree.t(:server_error)}';
6
- var taxonomy_tree_error = '#{escape_javascript Spree.t(:taxonomy_tree_error)}';
7
-
8
3
  $(document).ready(function(){
9
4
  setup_taxonomy_tree(taxonomy_id);
10
5
  });
@@ -2,7 +2,7 @@
2
2
  <%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /
3
3
  <%= Spree.t(:new_taxonomy) %>
4
4
  <% end %>
5
- <%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @taxonomy } %>
5
+ <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @taxonomy } %>
6
6
 
7
7
  <%= form_for [:admin, @taxonomy] do |f| %>
8
8
  <fieldset>