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
@@ -9,11 +9,11 @@
9
9
 
10
10
  <fieldset>
11
11
  <legend><%= Spree.t(:stock_transfer_name) %></legend>
12
-
12
+ <div class="table-responsive">
13
13
  <table class="table table-bordered">
14
14
  <tr>
15
15
  <td width="30%"><strong><%= Spree.t(:created_at) %></strong></td>
16
- <td><%= @stock_transfer.created_at %></td>
16
+ <td><%= pretty_time(@stock_transfer.created_at) %></td>
17
17
  </tr>
18
18
  <% if @stock_transfer.reference.present? %>
19
19
  <tr>
@@ -22,7 +22,7 @@
22
22
  </tr>
23
23
  <% end %>
24
24
  </table>
25
-
25
+ </div>
26
26
  <% if @stock_transfer.source_movements.present? %>
27
27
  <fieldset>
28
28
  <legend id="stock-location-source">
@@ -3,10 +3,11 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_store_credit_category), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_store_credit_category_link' %>
6
+ <%= button_link_to Spree.t(:new_store_credit_category), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_store_credit_category_link' %>
7
7
  <% end if can? :create, Spree::StoreCreditCategory %>
8
8
 
9
9
  <% if @store_credit_categories.any? %>
10
+ <div class="table-responsive">
10
11
  <table class="table">
11
12
  <thead>
12
13
  <tr data-hook="admin_store_credit_categories_index_headers">
@@ -26,6 +27,7 @@
26
27
  <% end %>
27
28
  </tbody>
28
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::StoreCreditCategory)) %>,
@@ -10,10 +10,11 @@
10
10
  <% end %>
11
11
 
12
12
  <% content_for :page_actions do %>
13
- <%= button_link_to Spree.t(:add_store_credit), spree.new_admin_user_store_credit_path(@user), class: "btn-success", icon: 'add' if can?(:create, Spree::StoreCredit) %>
13
+ <%= button_link_to Spree.t(:add_store_credit), spree.new_admin_user_store_credit_path(@user), class: "btn-success", icon: 'add.svg' if can?(:create, Spree::StoreCredit) %>
14
14
  <% end %>
15
15
 
16
16
  <% if @store_credits.any? %>
17
+ <div class="table-responsive">
17
18
  <table class="table">
18
19
  <thead>
19
20
  <th><%= Spree.t(:credited) %></th>
@@ -41,6 +42,7 @@
41
42
  <% end %>
42
43
  </tbody>
43
44
  </table>
45
+ </div>
44
46
  <% else %>
45
47
  <div class="alert alert-info no-objects-found">
46
48
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCredit)) %>
@@ -1,92 +1,128 @@
1
1
  <div data-hook="admin_store_form_fields">
2
2
 
3
- <div class="card">
4
- <div class="card-header">
5
- <h1 class="card-title mb-0 h5">
6
- Basic Information
7
- </h1>
8
- </div>
9
- <div class="card-body">
10
- <%= f.field_container :name, class: ['form-group'] do %>
11
- <%= f.label :name, raw(Spree.t(:name) + required_span_tag) %>
12
- <%= f.text_field :name, class: 'form-control', required: true %>
13
- <%= f.error_message_on :name %>
3
+ <div class="card mb-4">
4
+ <div class="card-header">
5
+ <h1 class="card-title mb-0 h5">
6
+ <%= Spree.t(:basic_information) %>
7
+ </h1>
8
+ </div>
9
+ <div class="card-body">
10
+ <%= f.field_container :logo, class: ['form-group'] do %>
11
+ <% if @store.logo.attached? && @store.logo.variable? %>
12
+ <%= image_tag main_app.url_for(@store.logo.variant(resize: '244x104>')) %>
13
+ <% elsif @store.logo.attached? && @store.logo.image? %>
14
+ <%= image_tag main_app.url_for(@store.logo) %>
14
15
  <% end %>
15
- <%= f.field_container :url, class: ['form-group'] do %>
16
- <%= f.label :url, Spree.t(:url) %>
17
- <%= f.text_field :url, class: 'form-control', required: true %>
18
- <%= f.error_message_on :url %>
16
+ <%= f.field_container :logo, class: ['form-group'] do %>
17
+ <%= f.label :logo, Spree.t(:logo) %><br />
18
+ <%= f.file_field :logo %>
19
+ <%= f.error_message_on :logo %>
19
20
  <% end %>
20
- </div>
21
+ <% end %>
22
+ <%= f.field_container :name, class: ['form-group'] do %>
23
+ <%= f.label :name, raw(Spree.t(:name) + required_span_tag) %>
24
+ <%= f.text_field :name, class: 'form-control', required: true %>
25
+ <%= f.error_message_on :name %>
26
+ <% end %>
27
+ <%= f.field_container :code, class: ['form-group'] do %>
28
+ <%= f.label :code, raw(Spree.t(:code) + required_span_tag) %>
29
+ <%= f.text_field :code, class: 'form-control', required: true %>
30
+ <%= f.error_message_on :code %>
31
+ <% end %>
32
+ <%= f.field_container :url, class: ['form-group'] do %>
33
+ <%= f.label :url, raw(Spree.t(:url) + required_span_tag) %>
34
+ <%= f.text_field :url, class: 'form-control', required: true %>
35
+ <%= f.error_message_on :url %>
36
+ <% end %>
21
37
  </div>
38
+ </div>
22
39
 
23
- <br />
40
+ <div class="card mb-4">
41
+ <div class="card-header">
42
+ <h1 class="card-title mb-0 h5">
43
+ <%= Spree.t(:seo) %>
44
+ </h1>
45
+ </div>
46
+ <div class="card-body">
47
+ <%= f.field_container :seo_title, class: ['form-group'] do %>
48
+ <%= f.label :seo_title, Spree.t(:seo_title) %>
49
+ <%= f.text_field :seo_title, class: 'form-control' %>
50
+ <%= f.error_message_on :seo_title %>
51
+ <% end %>
52
+ <%= f.field_container :meta_description, class: ['form-group'] do %>
53
+ <%= f.label :meta_description, Spree.t(:meta_description) %>
54
+ <%= f.text_area :meta_description, class: 'form-control' %>
55
+ <%= f.error_message_on :meta_description %>
56
+ <% end %>
57
+ <%= f.field_container :meta_keywords, class: ['form-group'] do %>
58
+ <%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
59
+ <%= f.text_field :meta_keywords, class: 'form-control' %>
60
+ <%= f.error_message_on :meta_keywords %>
61
+ <% end %>
62
+ </div>
63
+ </div>
24
64
 
25
- <div class="card">
26
- <div class="card-header">
27
- <h1 class="card-title mb-0 h5">
28
- SEO
29
- </h1>
30
- </div>
31
- <div class="card-body">
32
- <%= f.field_container :seo_title, class: ['form-group'] do %>
33
- <%= f.label :seo_title, Spree.t(:seo_title) %>
34
- <%= f.text_field :seo_title, class: 'form-control' %>
35
- <%= f.error_message_on :seo_title %>
36
- <% end %>
37
- <%= f.field_container :meta_description, class: ['form-group'] do %>
38
- <%= f.label :meta_description, Spree.t(:meta_description) %>
39
- <%= f.text_area :meta_description, class: 'form-control' %>
40
- <%= f.error_message_on :meta_description %>
41
- <% end %>
42
- <%= f.field_container :meta_keywords, class: ['form-group'] do %>
43
- <%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
44
- <%= f.text_field :meta_keywords, class: 'form-control' %>
45
- <%= f.error_message_on :meta_keywords %>
46
- <% end %>
47
- </div>
65
+ <div class="card mb-4">
66
+ <div class="card-header">
67
+ <h1 class="card-title mb-0 h5">
68
+ <%= Spree.t(:email).pluralize %>
69
+ </h1>
48
70
  </div>
71
+ <div class="card-body">
72
+ <%= f.field_container :mail_from_address, class: ['form-group'] do %>
73
+ <%= f.label :mail_from_address, raw(Spree.t(:mail_from_address) + required_span_tag) %>
74
+ <%= f.text_field :mail_from_address, class: 'form-control', required: true %>
75
+ <%= f.error_message_on :mail_from_address %>
76
+ <% end %>
49
77
 
50
- <br />
78
+ <%= f.field_container :customer_support_email, class: ['form-group'] do %>
79
+ <%= f.label :customer_support_email, Spree.t(:customer_support_email) %>
80
+ <%= f.text_field :customer_support_email, class: 'form-control' %>
81
+ <%= f.error_message_on :customer_support_email %>
82
+ <% end %>
51
83
 
52
- <div class="card">
53
- <div class="card-header">
54
- <h1 class="card-title mb-0 h5">
55
- Emails
56
- </h1>
57
- </div>
58
- <div class="card-body">
59
- <%= f.field_container :mail_from_address, class: ['form-group'] do %>
60
- <%= f.label :mail_from_address, Spree.t(:mail_from_address) %>
61
- <%= f.text_field :mail_from_address, class: 'form-control', required: true %>
62
- <%= f.error_message_on :mail_from_address %>
63
- <% end %>
64
- </div>
84
+ <%= f.field_container :new_order_notifications_email, class: ['form-group'] do %>
85
+ <%= f.label :new_order_notifications_email, Spree.t(:new_order_notifications_email) %>
86
+ <%= f.text_field :new_order_notifications_email, class: 'form-control' %>
87
+ <%= f.error_message_on :new_order_notifications_email %>
88
+ <% end %>
65
89
  </div>
90
+ </div>
66
91
 
67
- <br />
68
-
69
- <div class="card">
92
+ <div class="card mb-4">
70
93
  <div class="card-header">
71
94
  <h1 class="card-title mb-0 h5">
72
- Internationalization
95
+ <%= Spree.t(:internationalization) %>
73
96
  </h1>
74
97
  </div>
75
98
  <div class="card-body">
76
99
  <%= f.field_container :default_currency, class: ['form-group'] do %>
77
100
  <%= f.label :default_currency, Spree.t(:currency) %>
78
- <%= f.select :default_currency, currency_options(@store.default_currency) %>
101
+ <%= f.select :default_currency, currency_options(@store.default_currency), {}, { class: 'select2' } %>
79
102
  <%= f.error_message_on :default_currency %>
80
103
  <% end %>
104
+ <%= f.field_container :supported_currencies, class: ['form-group'] do %>
105
+ <%= f.label :supported_currencies, Spree.t(:supported_currencies) %>
106
+ <%= f.select :supported_currencies, currency_options(@store.supported_currencies&.split(',')), { prompt: false }, { multiple: true, class: 'select2' } %>
107
+ <%= f.error_message_on :supported_currencies %>
108
+ <% end %>
109
+ <%= f.field_container :default_locale, class: ['form-group'] do %>
110
+ <%= f.label :default_locale, Spree.t('i18n.language') %>
111
+ <%= f.select :default_locale, options_from_collection_for_select(all_locales_options, :last, :first, @store.default_locale), {}, { class: 'select2' } %>
112
+ <%= f.error_message_on :default_locale %>
113
+ <% end %>
114
+ <%= f.field_container :default_country_id, class: ['form-group'] do %>
115
+ <%= f.label :default_country_id, Spree.t('i18n.country') %>
116
+ <%= f.select :default_country_id, options_from_collection_for_select(@countries, :id, :name, @store.default_country_id), {}, { class: 'select2' } %>
117
+ <%= f.error_message_on :default_country_id %>
118
+ <% end %>
81
119
  </div>
82
120
  </div>
83
121
 
84
- <br />
85
-
86
- <div class="card">
122
+ <div class="card mb-4">
87
123
  <div class="card-header">
88
124
  <h1 class="card-title mb-0 h5">
89
- Social
125
+ <%= Spree.t(:social) %>
90
126
  </h1>
91
127
  </div>
92
128
  <div class="card-body">
@@ -108,8 +144,32 @@
108
144
  </div>
109
145
  </div>
110
146
 
111
- <br />
112
-
113
- <script>
114
- $('#store_default_currency').select2();
115
- </script>
147
+ <div class="card mb-4">
148
+ <div class="card-header">
149
+ <h1 class="card-title mb-0 h5">
150
+ <%= Spree.t(:footer_info) %>
151
+ </h1>
152
+ </div>
153
+ <div class="card-body">
154
+ <%= f.field_container :description, class: ['form-group'] do %>
155
+ <%= f.label :description, Spree.t(:description) %>
156
+ <%= f.text_area :description, class: 'form-control' %>
157
+ <%= f.error_message_on :description %>
158
+ <% end %>
159
+ <%= f.field_container :address, class: ['form-group'] do %>
160
+ <%= f.label :address, Spree.t(:address) %>
161
+ <%= f.text_area :address, class: 'form-control' %>
162
+ <%= f.error_message_on :address %>
163
+ <% end %>
164
+ <%= f.field_container :contact_email, class: ['form-group'] do %>
165
+ <%= f.label :contact_email, Spree.t(:contact_email) %>
166
+ <%= f.text_field :contact_email, class: 'form-control' %>
167
+ <%= f.error_message_on :contact_email %>
168
+ <% end %>
169
+ <%= f.field_container :contact_phone, class: ['form-group'] do %>
170
+ <%= f.label :contact_phone, Spree.t(:contact_phone) %>
171
+ <%= f.text_field :contact_phone, class: 'form-control' %>
172
+ <%= f.error_message_on :contact_phone %>
173
+ <% end %>
174
+ </div>
175
+ </div>
@@ -8,6 +8,6 @@
8
8
  <%= form_for [:admin, @store] do |f| %>
9
9
  <fieldset>
10
10
  <%= render partial: 'form', locals: { f: f } %>
11
- <%= render partial: 'spree/admin/shared/edit_resource_links', locals: { collection_url: spree.admin_stores_path(@store) } %>
11
+ <%= render partial: 'spree/admin/shared/edit_resource_links', locals: { collection_url: spree.admin_stores_path } %>
12
12
  </fieldset>
13
13
  <% end %>
@@ -3,10 +3,11 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:add_store), spree.new_admin_store_path(@user), class: "btn-success", icon: 'add' if can?(:create, Spree::Store) %>
6
+ <%= button_link_to Spree.t(:add_store), spree.new_admin_store_path(@user), class: "btn-success", icon: 'add.svg' if can?(:create, Spree::Store) %>
7
7
  <% end %>
8
8
 
9
9
  <% if @stores.any? %>
10
+ <div class="table-responsive">
10
11
  <table class="table">
11
12
  <thead>
12
13
  <th><%= Spree.t(:name) %></th>
@@ -24,7 +25,7 @@
24
25
  <td><%= store.default ? "<strong>#{Spree.t(:say_yes)}</strong>".html_safe : Spree.t(:say_no) %>
25
26
  <td class="actions actions-2 text-right" data-hook="admin_stores_index_row_actions">
26
27
  <% if can?(:edit, store) && !store.default %>
27
- <%= link_to_with_icon('ok', Spree.t(:store_set_default_button), spree.set_default_admin_store_path(store), no_text: true, method: :put, class: 'btn btn-warning btn-sm with-tip') %>
28
+ <%= link_to_with_icon('save.svg', Spree.t(:store_set_default_button), spree.set_default_admin_store_path(store), no_text: true, method: :put, class: 'btn btn-warning btn-sm with-tip') %>
28
29
  <% end %>
29
30
  <%= link_to_edit_url spree.edit_admin_store_path(store), no_text: true if can?(:edit, store) %>
30
31
  <%= link_to_delete store, no_text: true, url: spree.admin_store_path(store) if can?(:destroy, store) %>
@@ -33,6 +34,7 @@
33
34
  <% end %>
34
35
  </tbody>
35
36
  </table>
37
+ </div>
36
38
  <% else %>
37
39
  <div class="alert alert-info no-objects-found">
38
40
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCredit)) %>
@@ -3,37 +3,39 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_tax_category), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_tax_categories_link' %>
6
+ <%= button_link_to Spree.t(:new_tax_category), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_tax_categories_link' %>
7
7
  <% end if can? :create, Spree::TaxCategory %>
8
8
 
9
9
  <% if @tax_categories.any? %>
10
- <table class="table" id='listing_tax_categories' data-hook>
11
- <thead>
12
- <tr data-hook="tax_header">
13
- <th><%= Spree.t(:name) %></th>
14
- <th><%= Spree.t(:tax_code) %></th>
15
- <th><%= Spree.t(:description) %></th>
16
- <th><%= Spree.t(:default) %></th>
17
- <th></th>
18
- </tr>
19
- </thead>
20
- <tbody>
21
- <% @tax_categories.each do |tax_category|
22
- @edit_url = edit_admin_tax_category_path(tax_category)
23
- @delete_url = admin_tax_category_path(tax_category)
24
- %>
25
- <tr id="<%= spree_dom_id tax_category %>" data-hook="tax_row">
26
- <td><%= tax_category.name %></td>
27
- <td><%= tax_category.tax_code %></td>
28
- <td><%= tax_category.description %></td>
29
- <td><%= tax_category.is_default? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
30
- <td class="actions actions-2 text-right">
31
- <%= link_to_edit(tax_category, no_text: true) if can? :edit, tax_category %>
32
- <%= link_to_delete(tax_category, no_text: true) if can? :delete, tax_category %>
10
+ <div class="table-responsive">
11
+ <table class="table" id='listing_tax_categories' data-hook>
12
+ <thead>
13
+ <tr data-hook="tax_header">
14
+ <th><%= Spree.t(:name) %></th>
15
+ <th><%= Spree.t(:tax_code) %></th>
16
+ <th><%= Spree.t(:description) %></th>
17
+ <th><%= Spree.t(:default) %></th>
18
+ <th></th>
33
19
  </tr>
34
- <% end %>
35
- </tbody>
36
- </table>
20
+ </thead>
21
+ <tbody>
22
+ <% @tax_categories.each do |tax_category|
23
+ @edit_url = edit_admin_tax_category_path(tax_category)
24
+ @delete_url = admin_tax_category_path(tax_category)
25
+ %>
26
+ <tr id="<%= spree_dom_id tax_category %>" data-hook="tax_row">
27
+ <td><%= tax_category.name %></td>
28
+ <td><%= tax_category.tax_code %></td>
29
+ <td><%= tax_category.description %></td>
30
+ <td><%= tax_category.is_default? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
31
+ <td class="actions actions-2 text-right">
32
+ <%= link_to_edit(tax_category, no_text: true) if can? :edit, tax_category %>
33
+ <%= link_to_delete(tax_category, no_text: true) if can? :delete, tax_category %>
34
+ </tr>
35
+ <% end %>
36
+ </tbody>
37
+ </table>
38
+ </div>
37
39
  <% else %>
38
40
  <div class="alert alert-info no-objects-found">
39
41
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::TaxCategory)) %>,
@@ -3,10 +3,11 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_tax_rate), new_object_url, class: "btn-success", icon: 'add' %>
6
+ <%= button_link_to Spree.t(:new_tax_rate), new_object_url, class: "btn-success", icon: 'add.svg' %>
7
7
  <% end if can? :create, Spree::TaxRate %>
8
8
 
9
9
  <% if @tax_rates.any? %>
10
+ <div class="table-responsive">
10
11
  <table class="table">
11
12
  <thead>
12
13
  <tr data-hook="rate_header">
@@ -38,6 +39,7 @@
38
39
  <% end %>
39
40
  </tbody>
40
41
  </table>
42
+ </div>
41
43
  <% else %>
42
44
  <div class="alert alert-info no-objects-found">
43
45
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::TaxRate)) %>,
@@ -1,23 +1,25 @@
1
- <table class="table sortable" id='listing_taxonomies' data-hook data-sortable-link="<%= update_positions_admin_taxonomies_url %>">
2
- <thead>
3
- <tr data-hook="taxonomies_header">
4
- <th class="no-border"></th>
5
- <th><%= Spree.t(:name) %></th>
6
- <th class="actions"></th>
7
- </tr>
8
- </thead>
9
- <tbody>
10
- <% @taxonomies.each do |taxonomy| %>
11
- <tr id="<%= spree_dom_id taxonomy %>" data-hook="taxonomies_row">
12
- <td class="move-handle">
13
- <span class="icon icon-sort handle"></span>
14
- </td>
15
- <td><%= taxonomy.name %></td>
16
- <td class="actions actions-2 text-right">
17
- <%= link_to_edit taxonomy.id, no_text: true if can?(:edit, taxonomy) %>
18
- <%= link_to_delete taxonomy, no_text: true if can?(:delete, taxonomy) %>
19
- </td>
1
+ <div class="table-responsive">
2
+ <table class="table sortable" id='listing_taxonomies' data-hook data-sortable-link="<%= update_positions_admin_taxonomies_url %>">
3
+ <thead>
4
+ <tr data-hook="taxonomies_header">
5
+ <th class="no-border handel-head"></th>
6
+ <th><%= Spree.t(:name) %></th>
7
+ <th class="actions"></th>
20
8
  </tr>
21
- <% end %>
22
- </tbody>
23
- </table>
9
+ </thead>
10
+ <tbody id="sortVert">
11
+ <% @taxonomies.each do |taxonomy| %>
12
+ <tr id="<%= spree_dom_id taxonomy %>" data-hook="taxonomies_row" >
13
+ <td class="move-handle">
14
+ <%= svg_icon name: "sort.svg", width: '18', height: '18' %>
15
+ </td>
16
+ <td><%= taxonomy.name %></td>
17
+ <td class="actions actions-2 text-right">
18
+ <%= link_to_edit taxonomy.id, no_text: true if can?(:edit, taxonomy) %>
19
+ <%= link_to_delete taxonomy, no_text: true if can?(:delete, taxonomy) %>
20
+ </td>
21
+ </tr>
22
+ <% end %>
23
+ </tbody>
24
+ </table>
25
+ </div>
@@ -29,9 +29,9 @@
29
29
  </div>
30
30
 
31
31
  <div class="form-actions">
32
- <%= button Spree.t('actions.update'), 'ok', 'submit', { class: 'btn-success' } %>
32
+ <%= button Spree.t('actions.update'), 'save.svg', 'submit', { class: 'btn-success' } %>
33
33
  <span class="or"><%= Spree.t(:or) %></span>
34
- <%= button_link_to Spree.t('actions.cancel'), admin_taxonomies_path, icon: 'delete' %>
34
+ <%= button_link_to Spree.t('actions.cancel'), admin_taxonomies_path, icon: 'cancel.svg' %>
35
35
  </div>
36
36
  </fieldset>
37
37
  <% end %>
@@ -3,7 +3,7 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_taxonomy), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_taxonomy_link' %>
6
+ <%= button_link_to Spree.t(:new_taxonomy), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_taxonomy_link' %>
7
7
  <% end if can?(:create, Spree::Taxonomy) %>
8
8
 
9
9
  <% if @taxonomies.any? %>
@@ -25,8 +25,8 @@
25
25
  <% end %>
26
26
 
27
27
  <%= f.field_container :icon, class: ['form-group'] do %>
28
- <%= f.label :icon, Spree.t(:icon) %>
29
- <%= image_tag main_app.url_for(@taxon.icon.try(:attachment)) if @taxon.icon %>
28
+ <%= f.label :icon, Spree.t(:header_banner) %>
29
+ <%= image_tag(main_app.url_for(@taxon.icon.try(:attachment)), class: 'w-100') if @taxon.icon %>
30
30
  <%= f.file_field :icon %>
31
31
  <% end %>
32
32
  </div>
@@ -46,7 +46,7 @@
46
46
 
47
47
  <%= f.field_container :meta_description, class: ['form-group'] do %>
48
48
  <%= f.label :meta_description, Spree.t(:meta_description) %>
49
- <%= f.text_field :meta_description, class: 'form-control', rows: 6 %>
49
+ <%= f.text_area :meta_description, class: 'form-control', rows: 6 %>
50
50
  <% end %>
51
51
 
52
52
  <%= f.field_container :meta_keywords, class: ['form-group'] do %>
@@ -1,23 +1,25 @@
1
- <table class="table table-condensed table-bordered">
2
- <thead>
3
- <tr data-hook="taxons_header">
4
- <th><%= Spree.t(:name) %></th>
5
- <th><%= Spree.t(:path) %></th>
6
- <th></th>
7
- </tr>
8
- </thead>
9
- <tbody>
10
- <% taxons.each do |taxon| %>
11
- <tr id="<%= spree_dom_id(taxon) %>" data-hook="taxons_row">
12
- <td><%= taxon.name %></td>
13
- <td><%= taxon_path taxon %></td>
14
- <td class="actions">
15
- <%= link_to_delete taxon, url: remove_admin_product_taxon_url(@product, taxon), name: icon('delete') + ' ' + Spree.t(:remove) %>
16
- </td>
1
+ <div class="table-responsive">
2
+ <table class="table table-condensed table-bordered">
3
+ <thead>
4
+ <tr data-hook="taxons_header">
5
+ <th><%= Spree.t(:name) %></th>
6
+ <th><%= Spree.t(:path) %></th>
7
+ <th></th>
17
8
  </tr>
18
- <% end %>
19
- <% if taxons.empty? %>
20
- <tr data-hook="taxons_none"><td colspan="3"><%= Spree.t(:none) %>.</td></tr>
21
- <% end %>
22
- </tbody>
23
- </table>
9
+ </thead>
10
+ <tbody>
11
+ <% taxons.each do |taxon| %>
12
+ <tr id="<%= spree_dom_id(taxon) %>" data-hook="taxons_row">
13
+ <td><%= taxon.name %></td>
14
+ <td><%= taxon_path taxon %></td>
15
+ <td class="actions">
16
+ <%= link_to_delete taxon, url: remove_admin_product_taxon_url(@product, taxon), name: icon('delete.svg) + ' ' + Spree.t(:remove) %>
17
+ </td>
18
+ </tr>
19
+ <% end %>
20
+ <% if taxons.empty? %>
21
+ <tr data-hook="taxons_none"><td colspan="3"><%= Spree.t(:none) %>.</td></tr>
22
+ <% end %>
23
+ </tbody>
24
+ </table>
25
+ </div>
@@ -4,6 +4,10 @@
4
4
  <%= @taxon.name %>
5
5
  <% end %>
6
6
 
7
+ <% content_for :page_actions do %>
8
+ <%= taxon_preview_link(@taxon) %>
9
+ <% end %>
10
+
7
11
  <%# Because otherwise the form would attempt to use to_param of @taxon %>
8
12
  <% form_url = admin_taxonomy_taxon_path(@taxonomy.id, @taxon.id) %>
9
13
 
@@ -13,8 +17,8 @@
13
17
  <%= render 'form', f: f %>
14
18
 
15
19
  <div class="form-actions" data-hook="buttons">
16
- <%= button Spree.t('actions.update'), 'save' %>
20
+ <%= button Spree.t('actions.update'), 'save.svg' %>
17
21
  <span class="or"><%= Spree.t(:or) %></span>
18
- <%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "remove" %>
22
+ <%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "cancel.svg" %>
19
23
  </div>
20
24
  <% end %>
@@ -7,7 +7,7 @@
7
7
  <%= text_field_tag :taxon_id %>
8
8
  </div>
9
9
 
10
- <ul id="taxon_products" class="taxon"></ul>
10
+ <ul id="taxon_products" class="taxon row"></ul>
11
11
 
12
12
  <%= render partial: "spree/admin/products/autocomplete", formats: :js %>
13
13
  </div>