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
@@ -8,6 +8,6 @@
8
8
  -%>
9
9
  <% unless current_page.first? %>
10
10
  <li class="prev page-item">
11
- <%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, rel: 'prev', remote: remote, class: 'page-link' %>
11
+ <%= link_to_unless current_page.first?, svg_icon(name: "chevron-left.svg", width: '13', height: '16', classes: 'spree-icon-arrow-left mb-0'), url, rel: 'prev', remote: remote, class: 'page-link', 'aria-label': 'Previous page' %>
12
12
  </li>
13
13
  <% end %>
@@ -14,8 +14,8 @@
14
14
  <%= adjustment.display_amount.to_html %>
15
15
  </td>
16
16
  <td class="text-center">
17
- <span class="badge badge-<%= adjustment.state %>">
18
- <%= adjustment.state %>
17
+ <span class="text-lowercase badge badge-<%= adjustment.state %>">
18
+ <%= Spree.t("state_machine_states.#{adjustment.state}") %>
19
19
  </span>
20
20
  </td>
21
21
  <td class="actions actions-2 text-center">
@@ -1,22 +1,22 @@
1
1
  <div class="card-header">
2
2
  <h3 class="card-title mb-0 h5"><%= Spree.t(:order_adjustments) %></h3>
3
3
  </div>
4
-
5
- <table class="table table-bordered adjustments" data-hook="adjustments">
6
- <thead data-hook="adjustmment_head">
7
- <tr>
8
- <th><%= Spree.t(:adjustable) %></th>
9
- <th><%= Spree.t(:description) %></th>
10
- <th class="text-center"><%= Spree.t(:amount) %></th>
11
- <th class="text-center"><%= Spree.t(:status) %></th>
12
- <th class="actions"></th>
13
- </tr>
14
- </thead>
15
- <tbody>
16
- <%= render partial: "adjustment", collection: @adjustments %>
17
- </tbody>
18
- </table>
19
-
4
+ <div class="table-responsive">
5
+ <table class="table table-bordered adjustments" data-hook="adjustments">
6
+ <thead data-hook="adjustmment_head">
7
+ <tr>
8
+ <th><%= Spree.t(:adjustable) %></th>
9
+ <th><%= Spree.t(:description) %></th>
10
+ <th class="text-center"><%= Spree.t(:amount) %></th>
11
+ <th class="text-center"><%= Spree.t(:status) %></th>
12
+ <th class="actions"></th>
13
+ </tr>
14
+ </thead>
15
+ <tbody>
16
+ <%= render partial: "adjustment", collection: @adjustments %>
17
+ </tbody>
18
+ </table>
19
+ </div>
20
20
  <% if can?(:edit, Spree::Adjustment) %>
21
21
  <div class="card-footer">
22
22
  <div class="row text-center pb-0">
@@ -11,9 +11,9 @@
11
11
  <%= render partial: 'form', locals: { f: f } %>
12
12
 
13
13
  <div class="form-actions" data-hook="buttons">
14
- <%= button Spree.t(:continue), 'save' %>
14
+ <%= button Spree.t(:continue), 'save.svg' %>
15
15
  <span class="or"><%= Spree.t(:or) %></span>
16
- <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: 'delete' %>
16
+ <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: 'cancel.svg' %>
17
17
  </div>
18
18
  </fieldset>
19
19
  <% end %>
@@ -1,11 +1,11 @@
1
1
  <%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :adjustments} %>
2
2
 
3
3
  <% content_for :page_title do %>
4
- / <%= plural_resource_name(Spree::Adjustment) %>
4
+ / <%= Spree.t(:adjustments) %>
5
5
  <% end %>
6
6
 
7
7
  <% content_for :page_actions do %>
8
- <%= button_link_to(Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order), class: "btn-success", icon: 'add') if can? :create, Spree::Adjustment %>
8
+ <%= button_link_to(Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order), class: "btn-success", icon: 'add.svg') if can? :create, Spree::Adjustment %>
9
9
  <% end %>
10
10
 
11
11
  <% if @adjustments.present? %>
@@ -24,7 +24,7 @@
24
24
  <div class="form-group">
25
25
  <%= text_field_tag "coupon_code", "", placeholder: Spree.t(:coupon_code), class: "form-control" %>
26
26
  </div>
27
- <%= button Spree.t(:add_coupon_code), 'plus', 'submit', id: "add_coupon_code" %>
27
+ <%= button Spree.t(:add_coupon_code), 'add.svg', 'submit', id: "add_coupon_code" %>
28
28
  </div>
29
29
  </div>
30
30
  <% end %>
@@ -13,7 +13,7 @@
13
13
  <div class="form-actions" data-hook="buttons">
14
14
  <%= button Spree.t(:continue), 'save' %>
15
15
  <span class="or"><%= Spree.t(:or) %></span>
16
- <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: 'delete' %>
16
+ <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: 'cancel' %>
17
17
  </div>
18
18
  </fieldset>
19
19
  <% end %>
@@ -24,9 +24,14 @@
24
24
  <% end %>
25
25
 
26
26
  <div data-hook="states_required" class="form-group checkbox">
27
- <label>
28
- <%= f.check_box :states_required %>
29
- <%= Spree.t(:states_required) %>
30
- </label>
27
+ <%= f.check_box :states_required %>
28
+ <%= f.label :states_required, Spree.t(:states_required) %>
29
+ <%= f.error_message_on :states_required %>
30
+ </div>
31
+
32
+ <div data-hook="zipcode_required" class="form-group checkbox">
33
+ <%= f.check_box :zipcode_required %>
34
+ <%= f.label :zipcode_required, Spree.t(:zipcode_required) %>
35
+ <%= f.error_message_on :zipcode_required %>
31
36
  </div>
32
37
  </div>
@@ -3,29 +3,32 @@
3
3
  <% end %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <%= button_link_to Spree.t(:new_country), new_object_url, { class: "btn-success", icon: 'add', id: 'admin_new_country' } %>
6
+ <%= button_link_to Spree.t(:new_country), new_object_url, { class: "btn-success", icon: 'add.svg', id: 'admin_new_country' } %>
7
7
  <% end if can? :create, Spree::Country %>
8
-
9
- <table class="table" id='listing_countries' data-hook>
10
- <thead>
11
- <tr data-hook="tax_header">
12
- <th><%= Spree.t(:country_name) %></th>
13
- <th><%= Spree.t(:iso_name) %></th>
14
- <th><%= Spree.t(:states_required) %></th>
15
- <th class="actions"></th>
16
- </tr>
17
- </thead>
18
- <tbody>
19
- <% @countries.each do |country| %>
20
- <tr id="<%= spree_dom_id country %>" data-hook="country_row">
21
- <td><%= country.name %></td>
22
- <td><%= country.iso_name %></td>
23
- <td class="text-center"><%= country.states_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
24
- <td class="actions actions-2 text-right">
25
- <%= link_to_edit(country, no_text: true) if can? :edit, country %>
26
- <%= link_to_delete(country, no_text: true) if can? :delete, country %>
27
- </td>
8
+ <div class="table-responsive">
9
+ <table class="table" id='listing_countries' data-hook>
10
+ <thead>
11
+ <tr data-hook="tax_header">
12
+ <th><%= Spree.t(:country_name) %></th>
13
+ <th><%= Spree.t(:iso3) %></th>
14
+ <th><%= Spree.t(:states_required) %></th>
15
+ <th><%= Spree.t(:zipcode_required) %></th>
16
+ <th class="actions"></th>
28
17
  </tr>
29
- <% end %>
30
- </tbody>
31
- </table>
18
+ </thead>
19
+ <tbody>
20
+ <% @countries.each do |country| %>
21
+ <tr id="<%= spree_dom_id country %>" data-hook="country_row">
22
+ <td><%= country.name %></td>
23
+ <td><%= country.iso3 %></td>
24
+ <td class="text-center"><%= country.states_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
25
+ <td class="text-center"><%= country.zipcode_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
26
+ <td class="actions actions-2 text-right">
27
+ <%= link_to_edit(country, no_text: true) if can? :edit, country %>
28
+ <%= link_to_delete(country, no_text: true) if can? :delete, country %>
29
+ </td>
30
+ </tr>
31
+ <% end %>
32
+ </tbody>
33
+ </table>
34
+ </div>
@@ -1,36 +1,38 @@
1
- <table class="table table-condensed table-bordered">
2
- <thead data-hook="customer_return_header">
3
- <tr>
4
- <th><%= Spree.t(:number) %></th>
5
- <th><%= Spree.t(:total) %></th>
6
- <th><%= Spree.t(:status) %></th>
7
- <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
8
- <th></th>
9
- </tr>
10
- </thead>
11
- <tbody>
12
- <% reimbursements.each do |reimbursement| %>
13
- <tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row">
14
- <td>
15
- <% if reimbursement.reimbursed? %>
16
- <%= link_to reimbursement.number, url_for([:admin, @order, reimbursement]) %>
17
- <% else %>
18
- <%= reimbursement.number %>
19
- <% end %>
20
- </td>
21
- <td><%= reimbursement.display_total %></td>
22
- <td>
23
- <span class="state <%= reimbursement_status_color(reimbursement) %>">
24
- <%= reimbursement.reimbursement_status %>
25
- </span>
26
- </td>
27
- <td><%= pretty_time(reimbursement.created_at) %></td>
28
- <td class="actions actions-1">
29
- <% if !reimbursement.reimbursed? %>
30
- <%= link_to_edit_url(url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true) if can?(:edit, reimbursement) %>
31
- <% end %>
32
- </td>
1
+ <div class="table-responsive">
2
+ <table class="table table-condensed table-bordered">
3
+ <thead data-hook="customer_return_header">
4
+ <tr>
5
+ <th><%= Spree.t(:number) %></th>
6
+ <th><%= Spree.t(:total) %></th>
7
+ <th><%= Spree.t(:status) %></th>
8
+ <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
9
+ <th></th>
33
10
  </tr>
34
- <% end %>
35
- </tbody>
36
- </table>
11
+ </thead>
12
+ <tbody>
13
+ <% reimbursements.each do |reimbursement| %>
14
+ <tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row">
15
+ <td>
16
+ <% if reimbursement.reimbursed? %>
17
+ <%= link_to reimbursement.number, url_for([:admin, @order, reimbursement]) %>
18
+ <% else %>
19
+ <%= reimbursement.number %>
20
+ <% end %>
21
+ </td>
22
+ <td><%= reimbursement.display_total %></td>
23
+ <td>
24
+ <span class="state <%= reimbursement_status_color(reimbursement) %>">
25
+ <%= reimbursement.reimbursement_status %>
26
+ </span>
27
+ </td>
28
+ <td><%= pretty_time(reimbursement.created_at) %></td>
29
+ <td class="actions actions-1">
30
+ <% if !reimbursement.reimbursed? %>
31
+ <%= link_to_edit_url(url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true) if can?(:edit, reimbursement) %>
32
+ <% end %>
33
+ </td>
34
+ </tr>
35
+ <% end %>
36
+ </tbody>
37
+ </table>
38
+ </div>
@@ -1,3 +1,4 @@
1
+ <div class="table-responsive">
1
2
  <table class="show return-items-table table table-condensed table-bordered index">
2
3
  <thead>
3
4
  <tr>
@@ -48,3 +49,4 @@
48
49
  <% end %>
49
50
  </tbody>
50
51
  </table>
52
+ </div>
@@ -1,45 +1,47 @@
1
- <table class="table table-condensed table-bordered">
2
- <thead>
3
- <tr>
4
- <th>
5
- <%= check_box_tag 'select-all' %>
6
- </th>
7
- <th><%= Spree.t(:product) %></th>
8
- <th><%= Spree.t(:sku) %></th>
9
- <th><%= Spree.t(:pre_tax_amount) %></th>
10
- <th><%= Spree.t(:exchange_for) %></th>
11
- <th><%= Spree.t(:resellable) %></th>
12
- </tr>
13
- </thead>
14
- <tbody>
15
- <%= f.fields_for :return_items, return_items do |item_fields| %>
16
- <% return_item = item_fields.object %>
1
+ <div class="table-responsive">
2
+ <table class="table table-condensed table-bordered">
3
+ <thead>
17
4
  <tr>
18
- <td class="align-center" class="inventory-unit-checkbox">
19
- <div style="display:none">
20
- <%= item_fields.hidden_field :inventory_unit_id %>
21
- <%= item_fields.hidden_field :return_authorization_id %>
22
- <%= item_fields.hidden_field :pre_tax_amount %>
23
- </div>
24
- <%= item_fields.check_box :returned, {checked: false, class: 'add-item', "data-price" => return_item.pre_tax_amount}, '1', '0' %>
25
- </td>
26
- <td>
27
- <div class="variant-name"><%= return_item.inventory_unit.variant.name %></div>
28
- <div class="variant-options"><%= return_item.inventory_unit.variant.options_text %></div>
29
- </td>
30
- <td>
31
- <%= return_item.inventory_unit.variant.sku %>
32
- </td>
33
- <td class="align-center">
34
- <%= return_item.display_pre_tax_amount %>
35
- </td>
36
- <td class="align-center">
37
- <%= return_item.exchange_variant.try(:exchange_name) %>
38
- </td>
39
- <td class="align-center">
40
- <%= item_fields.check_box :resellable, { checked: return_item.resellable } %>
41
- </td>
5
+ <th>
6
+ <%= check_box_tag 'select-all' %>
7
+ </th>
8
+ <th><%= Spree.t(:product) %></th>
9
+ <th><%= Spree.t(:sku) %></th>
10
+ <th><%= Spree.t(:pre_tax_amount) %></th>
11
+ <th><%= Spree.t(:exchange_for) %></th>
12
+ <th><%= Spree.t(:resellable) %></th>
42
13
  </tr>
43
- <% end %>
44
- </tbody>
45
- </table>
14
+ </thead>
15
+ <tbody>
16
+ <%= f.fields_for :return_items, return_items do |item_fields| %>
17
+ <% return_item = item_fields.object %>
18
+ <tr>
19
+ <td class="align-center" class="inventory-unit-checkbox">
20
+ <div style="display:none">
21
+ <%= item_fields.hidden_field :inventory_unit_id %>
22
+ <%= item_fields.hidden_field :return_authorization_id %>
23
+ <%= item_fields.hidden_field :pre_tax_amount %>
24
+ </div>
25
+ <%= item_fields.check_box :returned, {checked: false, class: 'add-item', "data-price" => return_item.pre_tax_amount}, '1', '0' %>
26
+ </td>
27
+ <td>
28
+ <div class="variant-name"><%= return_item.inventory_unit.variant.name %></div>
29
+ <div class="variant-options"><%= return_item.inventory_unit.variant.options_text %></div>
30
+ </td>
31
+ <td>
32
+ <%= return_item.inventory_unit.variant.sku %>
33
+ </td>
34
+ <td class="align-center">
35
+ <%= return_item.display_pre_tax_amount %>
36
+ </td>
37
+ <td class="align-center">
38
+ <%= return_item.exchange_variant.try(:exchange_name) %>
39
+ </td>
40
+ <td class="align-center">
41
+ <%= item_fields.check_box :resellable, { checked: return_item.resellable } %>
42
+ </td>
43
+ </tr>
44
+ <% end %>
45
+ </tbody>
46
+ </table>
47
+ </div>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <% content_for :page_actions do %>
4
4
  <% if @order.shipments.any?(&:shipped?) && can?(:create, Spree::CustomerReturn) %>
5
- <%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order), icon: 'add', class: 'btn-success' %>
5
+ <%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order), icon: 'add.svg', class: 'btn-success' %>
6
6
  <% end %>
7
7
  <% end %>
8
8
 
@@ -13,6 +13,7 @@
13
13
  <% if @order.shipments.any?(&:shipped?) %>
14
14
 
15
15
  <% if @customer_returns.any? %>
16
+ <div class="table-responsive">
16
17
  <table class="table">
17
18
  <thead data-hook="customer_return_header">
18
19
  <tr>
@@ -43,6 +44,7 @@
43
44
  <% end %>
44
45
  </tbody>
45
46
  </table>
47
+ </div>
46
48
  <% else %>
47
49
  <div class="alert alert-info no-objects-found">
48
50
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::CustomerReturn)) %>,
@@ -32,7 +32,7 @@
32
32
  <div class="form-actions" data-hook="buttons">
33
33
  <%= button Spree.t(:create), 'save' %>
34
34
  <span class="or"><%= Spree.t(:or) %></span>
35
- <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_customer_returns_url(@order), icon: 'delete' %>
35
+ <%= button_link_to Spree.t('actions.cancel'), spree.admin_order_customer_returns_url(@order), icon: 'cancel' %>
36
36
  </div>
37
37
  </fieldset>
38
38
  <% end %>
@@ -0,0 +1,27 @@
1
+ <div class="panel panel-default currencies">
2
+ <div class="panel-heading">
3
+ <%= Spree.t(:currencies) %>
4
+ </div>
5
+
6
+ <div class="panel-body">
7
+ <div class="form-group">
8
+ <div class="checkbox">
9
+ <label>
10
+ <%= check_box('', :allow_currency_change, { checked: Spree::Config.allow_currency_change }) %>
11
+ <%= Spree.t('allow_currency_change.short') %>
12
+ </label>
13
+ <p class="help-block"><%= Spree.t('allow_currency_change.long') %></p>
14
+ </div>
15
+ </div>
16
+
17
+ <div class="form-group">
18
+ <div class="checkbox">
19
+ <label>
20
+ <%= check_box('', :show_currency_selector, { checked: Spree::Config.show_currency_selector}) %>
21
+ <%= Spree.t('show_currency_selector.short') %>
22
+ </label>
23
+ <p class="help-block"><%= Spree.t('show_currency_selector.long_html') %></p>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </div>
@@ -47,7 +47,7 @@
47
47
  <%= Spree.t(:clear_cache_warning) %>
48
48
  </div>
49
49
  <div data-hook="general_settings_clear_cache">
50
- <%= button Spree.t(:clear_cache), 'ok', 'button', id: "clear_cache" %>
50
+ <%= button Spree.t(:clear_cache), 'recycle.svg', 'button', id: "clear_cache" %>
51
51
  </div>
52
52
  </div>
53
53
  </div>
@@ -70,15 +70,16 @@
70
70
  <%= label_tag :currency, Spree.t(:choose_currency) %>
71
71
  <%= select_tag :currency, currency_options %>
72
72
  </div>
73
+ <%= render partial: 'form' %>
73
74
  </div>
74
75
  </div>
75
76
  </div>
76
77
  </div>
77
78
 
78
79
  <div class="form-actions" data-hook="buttons">
79
- <%= button Spree.t('actions.update'), 'save' %>
80
+ <%= button Spree.t('actions.update'), 'save.svg' %>
80
81
  <span class="or"><%= Spree.t(:or) %></span>
81
- <%= button_link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, icon: 'delete' %>
82
+ <%= button_link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, icon: 'cancel.svg' %>
82
83
  </div>
83
84
 
84
85
  </fieldset>
@@ -20,9 +20,9 @@
20
20
  </div>
21
21
 
22
22
  <div class="form-actions" data-hook="buttons">
23
- <%= button Spree.t('actions.update'), 'save' %>
23
+ <%= button Spree.t('actions.update'), 'save.svg' %>
24
24
  <span class="or"><%= Spree.t(:or) %></span>
25
- <%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), id: 'cancel_link', icon: 'delete' %>
25
+ <%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), id: 'cancel_link', icon: 'cancel.svg' %>
26
26
  </div>
27
27
  </div>
28
28
  </div>
@@ -1,11 +1,9 @@
1
1
  <%= render partial: 'spree/admin/shared/product_tabs', locals: { current: :images } %>
2
2
 
3
3
  <% content_for :page_actions do %>
4
- <div class="page-actions col-6 pr-0" data-hook="toolbar">
5
- <%= yield :page_actions %>
6
- </div>
4
+ <%= yield :page_actions %>
7
5
  <%= product_preview_link(@product) %>
8
- <%= button_link_to(Spree.t(:new_image), spree.new_admin_product_image_url(@product), { class: "btn-success", icon: 'add', id: 'new_image_link' }) if can? :create, Spree::Image %>
6
+ <%= button_link_to(Spree.t(:new_image), spree.new_admin_product_image_url(@product), { class: "btn-success", icon: 'add.svg', id: 'new_image_link' }) if can? :create, Spree::Image %>
9
7
  <% end %>
10
8
 
11
9
  <% has_variants = @product.has_variants? %>
@@ -15,6 +13,7 @@
15
13
  <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Image)) %>.
16
14
  </div>
17
15
  <% else %>
16
+ <div class="table-responsive">
18
17
  <table class="table sortable" data-hook="images_table" data-sortable-link="<%= update_positions_admin_product_images_url(@product) %>">
19
18
  <thead>
20
19
  <tr data-hook="images_header">
@@ -33,12 +32,12 @@
33
32
  </tr>
34
33
  </thead>
35
34
 
36
- <tbody>
35
+ <tbody id="sortVert">
37
36
  <% (@product.variant_images).each do |image| %>
38
37
  <tr id="<%= spree_dom_id image %>" data-hook="images_row">
39
38
  <td class="move-handle text-center">
40
39
  <% if can? :edit, image %>
41
- <span class="icon icon-move handle"></span>
40
+ <%= svg_icon name: "sort.svg", width: '18', height: '18' %>
42
41
  <% end %>
43
42
  </td>
44
43
  <td class="image">
@@ -49,11 +48,12 @@
49
48
  <% end %>
50
49
  <td><%= image.alt %></td>
51
50
  <td class="actions actions-2 text-right">
52
- <%= link_to_with_icon('edit', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
51
+ <%= link_to_with_icon('edit.svg', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
53
52
  <%= link_to_delete(image, { url: spree.admin_product_image_url(@product, image), no_text: true }) if can? :destroy, image %>
54
53
  </td>
55
54
  </tr>
56
55
  <% end %>
57
56
  </tbody>
58
57
  </table>
58
+ </div>
59
59
  <% end %>
@@ -11,9 +11,9 @@
11
11
  <%= render partial: 'form', locals: { f: f } %>
12
12
 
13
13
  <div class="form-actions" data-hook="buttons">
14
- <%= button Spree.t('actions.create'), 'save' %>
14
+ <%= button Spree.t('actions.create'), 'save.svg' %>
15
15
  <span class="or"><%= Spree.t(:or) %></span>
16
- <%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), icon: 'delete', id: 'cancel_link' %>
16
+ <%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), icon: 'delete.svg', id: 'cancel_link' %>
17
17
  </div>
18
18
  </fieldset>
19
19
  <% end %>
@@ -8,16 +8,16 @@
8
8
  <% end %>
9
9
 
10
10
  <% content_for :page_actions do %>
11
- <%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), icon: 'file' %>
11
+ <%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), icon: 'file.svg' %>
12
12
  <% end %>
13
-
13
+ <div class="table-responsive">
14
14
  <table class="table" id='listing_log_entries'>
15
15
  <% @log_entries.each do |entry| %>
16
16
  <thead>
17
17
  <tr class="log_entry <%= entry.parsed_details.success? ? 'success' : 'fail' %>">
18
18
  <td colspan="2">
19
19
  <h4>
20
- <span class="icon icon-<%= entry.parsed_details.success? ? 'ok' : 'delete' %>"></span>
20
+ <i class="icon icon-<%= entry.parsed_details.success? ? 'save' : 'cancel' %>"></i>
21
21
  <%= pretty_time(entry.created_at) %>
22
22
  </h4>
23
23
  </td>
@@ -31,3 +31,4 @@
31
31
  </tbody>
32
32
  <% end %>
33
33
  </table>
34
+ </div>
@@ -1,6 +1,6 @@
1
1
  <tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value">
2
2
  <td class="move-handle text-center">
3
- <span class="icon icon-move handle"></span>
3
+ <%= svg_icon name: "sort.svg", width: '18', height: '18' %>
4
4
  <%= f.hidden_field :id %>
5
5
  </td>
6
6
  <td class="name"><%= f.text_field :name, class: "form-control" %></td>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <% content_for :page_actions do %>
7
7
  <span id="new_add_option_value" data-hook>
8
- <%= button_link_to Spree.t(:add_option_value), "javascript:;", { icon: 'add', :'data-target' => "tbody#option_values", class: 'btn-success spree_add_fields' } %>
8
+ <%= button_link_to Spree.t(:add_option_value), "javascript:;", { icon: 'add.svg', :'data-target' => "tbody#sortVert", class: 'btn-success spree_add_fields' } %>
9
9
  </span>
10
10
  <% end %>
11
11
 
@@ -21,27 +21,29 @@
21
21
  <div class="card-body">
22
22
  <%= render partial: 'form', locals: { f: f } %>
23
23
  </div>
24
- <table class="table table-condensed table-bordered sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
25
- <thead data-hook="option_header">
26
- <tr>
27
- <th colspan="2"><%= Spree.t(:name) %> <span class="required">*</span></th>
28
- <th><%= Spree.t(:display) %> <span class="required">*</span></th>
29
- <th class="actions"></th>
30
- </tr>
31
- </thead>
32
- <tbody id="option_values">
33
- <% if @option_type.option_values.empty? %>
34
- <tr id="none" data-hook="option_none">
35
- <td colspan="2"><%= Spree.t(:none) %></td>
36
- <td class="actions text-center"></td>
24
+ <div class="table-responsive">
25
+ <table class="table table-condensed sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
26
+ <thead data-hook="option_header">
27
+ <tr>
28
+ <th colspan="2"><%= Spree.t(:name) %> <span class="required">*</span></th>
29
+ <th><%= Spree.t(:display) %> <span class="required">*</span></th>
30
+ <th class="actions"></th>
37
31
  </tr>
38
- <% else %>
39
- <%= f.fields_for :option_values do |option_value_form| %>
40
- <%= render partial: 'option_value_fields', locals: { f: option_value_form } %>
32
+ </thead>
33
+ <tbody id="sortVert">
34
+ <% if @option_type.option_values.empty? %>
35
+ <tr id="none" data-hook="option_none">
36
+ <td colspan="2"><%= Spree.t(:none) %></td>
37
+ <td class="actions text-center"></td>
38
+ </tr>
39
+ <% else %>
40
+ <%= f.fields_for :option_values do |option_value_form| %>
41
+ <%= render partial: 'option_value_fields', locals: { f: option_value_form } %>
42
+ <% end %>
41
43
  <% end %>
42
- <% end %>
43
- </tbody>
44
- </table>
44
+ </tbody>
45
+ </table>
46
+ </div>
45
47
  <div class="card-footer text-center">
46
48
  <%= render partial: 'spree/admin/shared/edit_resource_links' %>
47
49
  </div>