spree_backend 3.7.14.1 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/app/assets/javascripts/spree/backend.js +2 -1
  4. data/app/assets/javascripts/spree/backend/admin.js +75 -66
  5. data/app/assets/javascripts/spree/backend/calculator.js +3 -3
  6. data/app/assets/javascripts/spree/backend/gateway.js +1 -1
  7. data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js +23 -24
  8. data/app/assets/javascripts/spree/backend/promotions.js +4 -4
  9. data/app/assets/javascripts/spree/backend/shipments.js +32 -33
  10. data/app/assets/javascripts/spree/backend/taxonomy.js +75 -72
  11. data/app/assets/stylesheets/spree/backend/components/_badges.scss +46 -0
  12. data/app/assets/stylesheets/spree/backend/components/_buttons.scss +7 -23
  13. data/app/assets/stylesheets/spree/backend/components/_filters.scss +16 -6
  14. data/app/assets/stylesheets/spree/backend/components/_main.scss +4 -6
  15. data/app/assets/stylesheets/spree/backend/components/_navbar.scss +21 -0
  16. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +2 -10
  17. data/app/assets/stylesheets/spree/backend/components/_page_header.scss +0 -23
  18. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +25 -69
  19. data/app/assets/stylesheets/spree/backend/components/_tables.scss +53 -12
  20. data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +2 -2
  21. data/app/assets/stylesheets/spree/backend/global/_variables.scss +10 -13
  22. data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +33 -20
  23. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +23 -18
  24. data/app/assets/stylesheets/spree/backend/shared/_base.scss +0 -8
  25. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +5 -38
  26. data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +3 -6
  27. data/app/controllers/spree/admin/customer_returns_controller.rb +2 -2
  28. data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
  29. data/app/controllers/spree/admin/orders_controller.rb +2 -2
  30. data/app/controllers/spree/admin/payment_methods_controller.rb +1 -1
  31. data/app/controllers/spree/admin/products_controller.rb +2 -2
  32. data/app/controllers/spree/admin/reimbursement_types_controller.rb +1 -1
  33. data/app/controllers/spree/admin/resource_controller.rb +1 -1
  34. data/app/controllers/spree/admin/return_authorizations_controller.rb +1 -1
  35. data/app/controllers/spree/admin/stores_controller.rb +5 -0
  36. data/app/controllers/spree/admin/taxons_controller.rb +1 -1
  37. data/app/controllers/spree/admin/users_controller.rb +2 -2
  38. data/app/helpers/spree/admin/base_helper.rb +9 -4
  39. data/app/helpers/spree/admin/customer_returns_helper.rb +1 -1
  40. data/app/helpers/spree/admin/navigation_helper.rb +41 -25
  41. data/app/helpers/spree/admin/orders_helper.rb +2 -2
  42. data/app/views/kaminari/{_first_page.html.erb → twitter-bootstrap-4/_first_page.html.erb} +5 -3
  43. data/app/views/kaminari/{_gap.html.erb → twitter-bootstrap-4/_gap.html.erb} +5 -1
  44. data/app/views/kaminari/{_last_page.html.erb → twitter-bootstrap-4/_last_page.html.erb} +5 -3
  45. data/app/views/kaminari/{_next_page.html.erb → twitter-bootstrap-4/_next_page.html.erb} +5 -7
  46. data/app/views/kaminari/{_page.html.erb → twitter-bootstrap-4/_page.html.erb} +8 -2
  47. data/app/views/kaminari/{_paginator.html.erb → twitter-bootstrap-4/_paginator.html.erb} +3 -1
  48. data/app/views/kaminari/{_prev_page.html.erb → twitter-bootstrap-4/_prev_page.html.erb} +5 -7
  49. data/app/views/spree/admin/adjustments/_adjustment.html.erb +14 -4
  50. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +6 -6
  51. data/app/views/spree/admin/adjustments/index.html.erb +7 -5
  52. data/app/views/spree/admin/countries/_form.html.erb +13 -1
  53. data/app/views/spree/admin/customer_returns/index.html.erb +2 -2
  54. data/app/views/spree/admin/general_settings/edit.html.erb +14 -14
  55. data/app/views/spree/admin/images/_form.html.erb +2 -2
  56. data/app/views/spree/admin/images/edit.html.erb +6 -6
  57. data/app/views/spree/admin/option_types/_form.html.erb +2 -2
  58. data/app/views/spree/admin/option_types/edit.html.erb +5 -5
  59. data/app/views/spree/admin/orders/_add_line_item.html.erb +5 -5
  60. data/app/views/spree/admin/orders/_add_product.html.erb +5 -5
  61. data/app/views/spree/admin/orders/_adjustments.html.erb +4 -3
  62. data/app/views/spree/admin/orders/_line_items.html.erb +4 -4
  63. data/app/views/spree/admin/orders/_risk_analysis.html.erb +3 -3
  64. data/app/views/spree/admin/orders/_shipment.html.erb +5 -5
  65. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +1 -1
  66. data/app/views/spree/admin/orders/customer_details/_form.html.erb +17 -17
  67. data/app/views/spree/admin/orders/customer_details/edit.html.erb +4 -4
  68. data/app/views/spree/admin/orders/index.html.erb +56 -33
  69. data/app/views/spree/admin/payment_methods/_form.html.erb +4 -4
  70. data/app/views/spree/admin/payments/_list.html.erb +3 -3
  71. data/app/views/spree/admin/payments/index.html.erb +1 -1
  72. data/app/views/spree/admin/product_properties/index.html.erb +10 -2
  73. data/app/views/spree/admin/products/_add_stock_form.html.erb +6 -6
  74. data/app/views/spree/admin/products/_form.html.erb +26 -31
  75. data/app/views/spree/admin/products/edit.html.erb +1 -1
  76. data/app/views/spree/admin/products/index.html.erb +5 -5
  77. data/app/views/spree/admin/products/new.html.erb +5 -5
  78. data/app/views/spree/admin/products/stock.html.erb +3 -3
  79. data/app/views/spree/admin/promotions/_actions.html.erb +4 -4
  80. data/app/views/spree/admin/promotions/_form.html.erb +7 -7
  81. data/app/views/spree/admin/promotions/_promotion_action.html.erb +4 -4
  82. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +12 -5
  83. data/app/views/spree/admin/promotions/_rules.html.erb +5 -5
  84. data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +5 -5
  85. data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +5 -5
  86. data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +3 -3
  87. data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +10 -6
  88. data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +10 -6
  89. data/app/views/spree/admin/promotions/edit.html.erb +5 -5
  90. data/app/views/spree/admin/promotions/index.html.erb +3 -3
  91. data/app/views/spree/admin/promotions/rules/_country.html.erb +2 -2
  92. data/app/views/spree/admin/promotions/rules/_item_total.html.erb +4 -4
  93. data/app/views/spree/admin/promotions/rules/_option_value.html.erb +8 -8
  94. data/app/views/spree/admin/promotions/rules/_product.html.erb +2 -2
  95. data/app/views/spree/admin/promotions/rules/_taxon.html.erb +2 -2
  96. data/app/views/spree/admin/promotions/rules/_user.html.erb +2 -2
  97. data/app/views/spree/admin/properties/_form.html.erb +2 -2
  98. data/app/views/spree/admin/properties/index.html.erb +3 -3
  99. data/app/views/spree/admin/prototypes/_prototypes.html.erb +10 -2
  100. data/app/views/spree/admin/reimbursement_types/_form.html.erb +6 -6
  101. data/app/views/spree/admin/reports/sales_total.html.erb +4 -2
  102. data/app/views/spree/admin/return_authorizations/index.html.erb +1 -1
  103. data/app/views/spree/admin/return_index/customer_returns.html.erb +3 -3
  104. data/app/views/spree/admin/return_index/return_authorizations.html.erb +15 -9
  105. data/app/views/spree/admin/shared/_account_nav.html.erb +60 -48
  106. data/app/views/spree/admin/shared/_address_form.html.erb +11 -4
  107. data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -4
  108. data/app/views/spree/admin/shared/_content_header.html.erb +4 -4
  109. data/app/views/spree/admin/shared/_header.html.erb +18 -21
  110. data/app/views/spree/admin/shared/_index_table_options.html.erb +4 -5
  111. data/app/views/spree/admin/shared/_main_menu.html.erb +37 -35
  112. data/app/views/spree/admin/shared/_order_summary.html.erb +6 -7
  113. data/app/views/spree/admin/shared/_order_tabs.html.erb +47 -20
  114. data/app/views/spree/admin/shared/_product_tabs.html.erb +35 -11
  115. data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
  116. data/app/views/spree/admin/shared/_table_filter.html.erb +7 -5
  117. data/app/views/spree/admin/shared/_version.html.erb +4 -2
  118. data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
  119. data/app/views/spree/admin/shared/sub_menu/_configuration.html.erb +1 -1
  120. data/app/views/spree/admin/shared/sub_menu/_product.html.erb +1 -1
  121. data/app/views/spree/admin/shared/sub_menu/_promotion.html.erb +1 -1
  122. data/app/views/spree/admin/shared/sub_menu/_returns.html.erb +1 -1
  123. data/app/views/spree/admin/shipping_methods/_form.html.erb +21 -21
  124. data/app/views/spree/admin/states/_form.html.erb +2 -2
  125. data/app/views/spree/admin/stock_locations/_form.html.erb +6 -6
  126. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +4 -4
  127. data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
  128. data/app/views/spree/admin/stock_transfers/index.html.erb +34 -32
  129. data/app/views/spree/admin/stock_transfers/new.html.erb +13 -11
  130. data/app/views/spree/admin/stores/_form.html.erb +5 -6
  131. data/app/views/spree/admin/stores/index.html.erb +3 -1
  132. data/app/views/spree/admin/tax_categories/_form.html.erb +1 -1
  133. data/app/views/spree/admin/tax_rates/_form.html.erb +11 -9
  134. data/app/views/spree/admin/taxons/_form.html.erb +4 -4
  135. data/app/views/spree/admin/users/_addresses_form.html.erb +10 -10
  136. data/app/views/spree/admin/users/_form.html.erb +2 -2
  137. data/app/views/spree/admin/users/_lifetime_stats.html.erb +3 -3
  138. data/app/views/spree/admin/users/_sidebar.html.erb +26 -11
  139. data/app/views/spree/admin/users/addresses.html.erb +4 -2
  140. data/app/views/spree/admin/users/edit.html.erb +8 -8
  141. data/app/views/spree/admin/users/index.html.erb +3 -3
  142. data/app/views/spree/admin/users/items.html.erb +2 -2
  143. data/app/views/spree/admin/users/orders.html.erb +2 -2
  144. data/app/views/spree/admin/variants/_autocomplete.js.erb +5 -5
  145. data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +1 -1
  146. data/app/views/spree/admin/variants/_form.html.erb +2 -2
  147. data/app/views/spree/admin/variants/_split.js.erb +3 -3
  148. data/app/views/spree/admin/variants/index.html.erb +2 -2
  149. data/app/views/spree/admin/variants/new.html.erb +8 -6
  150. data/app/views/spree/admin/zones/_country_members.html.erb +4 -4
  151. data/app/views/spree/admin/zones/_form.html.erb +9 -9
  152. data/app/views/spree/admin/zones/_state_members.html.erb +4 -4
  153. data/app/views/spree/admin/zones/index.html.erb +2 -2
  154. data/app/views/spree/layouts/admin.html.erb +9 -6
  155. data/lib/spree/backend.rb +3 -2
  156. data/lib/spree_backend.rb +2 -1
  157. data/spree_backend.gemspec +3 -2
  158. metadata +39 -27
  159. data/app/assets/stylesheets/spree/backend/components/_labels.scss +0 -55
  160. data/app/assets/stylesheets/spree/backend/components/_panels.scss +0 -3
  161. data/app/assets/stylesheets/spree/backend/components/_wells.scss +0 -3
  162. data/app/assets/stylesheets/spree/backend/sections/_account.scss +0 -20
@@ -6,6 +6,8 @@
6
6
  per_page: number of items to fetch per page
7
7
  remote: data-remote
8
8
  -%>
9
- <li class="first">
10
- <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote %>
11
- </li>
9
+ <% unless current_page.first? %>
10
+ <li class="first page-item">
11
+ <%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, remote: remote, class: 'page-link' %>
12
+ </li>
13
+ <% end %>
@@ -5,4 +5,8 @@
5
5
  per_page: number of items to fetch per page
6
6
  remote: data-remote
7
7
  -%>
8
- <li class="gap"><a>..</a></li>
8
+ <li class="page gap disabled page-item">
9
+ <a href="#" onclick="return false;" class="page-link">
10
+ <%= raw(t 'views.pagination.truncate') %>
11
+ </a>
12
+ </li>
@@ -6,6 +6,8 @@
6
6
  per_page: number of items to fetch per page
7
7
  remote: data-remote
8
8
  -%>
9
- <li class="last">
10
- <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote %>
11
- </li>
9
+ <% unless current_page.last? %>
10
+ <li class="last next page-item"><%# "next" class present for border styling in twitter bootstrap %>
11
+ <%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, remote: remote, class: 'page-link' %>
12
+ </li>
13
+ <% end %>
@@ -6,10 +6,8 @@
6
6
  per_page: number of items to fetch per page
7
7
  remote: data-remote
8
8
  -%>
9
- <li class="next <%= "disabled" if current_page.last? %>">
10
- <% if current_page.last? %>
11
- <a href="javascript:;">&raquo;</a>
12
- <% else %>
13
- <%= link_to_unless current_page.last?, "&raquo;".html_safe, url, rel: 'next', remote: remote %>
14
- <% end %>
15
- </li>
9
+ <% unless current_page.last? %>
10
+ <li class="next_page page-item">
11
+ <%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, rel: 'next', remote: remote, class: 'page-link' %>
12
+ </li>
13
+ <% end %>
@@ -7,6 +7,12 @@
7
7
  per_page: number of items to fetch per page
8
8
  remote: data-remote
9
9
  -%>
10
- <li class="<%= 'active' if page.current? %>">
11
- <%= link_to page, url, {remote: remote, rel: page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
10
+ <li class="page<%= ' active' if page.current? %> page-item">
11
+ <%= link_to page,
12
+ url,
13
+ opts = {
14
+ remote: remote,
15
+ rel: page.next? ? 'next' : page.prev? ? 'prev' : nil,
16
+ class: 'page-link'
17
+ } %>
12
18
  </li>
@@ -6,8 +6,10 @@
6
6
  remote: data-remote
7
7
  paginator: the paginator that renders the pagination tags inside
8
8
  -%>
9
+ <% pagination_class ||= '' %>
10
+
9
11
  <%= paginator.render do %>
10
- <ul class="pagination pagination-sm">
12
+ <ul class="pagination mt-4 <%= pagination_class %>">
11
13
  <%= first_page_tag unless current_page.first? %>
12
14
  <%= prev_page_tag unless current_page.first? %>
13
15
  <% each_page do |page| %>
@@ -6,10 +6,8 @@
6
6
  per_page: number of items to fetch per page
7
7
  remote: data-remote
8
8
  -%>
9
- <li class="previous <%= "disabled" if current_page.first? %>">
10
- <% if current_page.first? %>
11
- <a href="javascript:;">&laquo;</a>
12
- <% else %>
13
- <%= link_to_unless current_page.first?, "&laquo;".html_safe, url, rel: 'prev', remote: remote %>
14
- <% end %>
15
- </li>
9
+ <% unless current_page.first? %>
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' %>
12
+ </li>
13
+ <% end %>
@@ -4,10 +4,20 @@
4
4
  %>
5
5
 
6
6
  <tr id="<%= spree_dom_id(adjustment) %>" class="<%= adjustment.eligible? ? 'eligible' : 'ineligible' %>" data-hook="adjustment_row">
7
- <td><%= display_adjustable(adjustment.adjustable) %></td>
8
- <td><%= adjustment.label %></td>
9
- <td class="text-center"><%= adjustment.display_amount.to_html %></td>
10
- <td class="text-center"><span class="label label-<%= adjustment.state %>"><%= adjustment.state %></td>
7
+ <td>
8
+ <%= display_adjustable(adjustment.adjustable) %>
9
+ </td>
10
+ <td>
11
+ <%= adjustment.label %>
12
+ </td>
13
+ <td class="text-center">
14
+ <%= adjustment.display_amount.to_html %>
15
+ </td>
16
+ <td class="text-center">
17
+ <span class="badge badge-<%= adjustment.state %>">
18
+ <%= adjustment.state %>
19
+ </span>
20
+ </td>
11
21
  <td class="actions actions-2 text-center">
12
22
  <% if adjustment.open? %>
13
23
  <%= link_to_edit(adjustment, no_text: true) if can?(:edit, adjustment) %>
@@ -1,5 +1,5 @@
1
- <div class="panel-heading">
2
- <h3 class="panel-title"><%= Spree.t(:order_adjustments) %></h3>
1
+ <div class="card-header">
2
+ <h3 class="card-title mb-0 h5"><%= Spree.t(:order_adjustments) %></h3>
3
3
  </div>
4
4
 
5
5
  <table class="table table-bordered adjustments" data-hook="adjustments">
@@ -18,12 +18,12 @@
18
18
  </table>
19
19
 
20
20
  <% if can?(:edit, Spree::Adjustment) %>
21
- <div class="panel-footer">
22
- <div class="row text-center">
23
- <div class="col-xs-12 col-md-6">
21
+ <div class="card-footer">
22
+ <div class="row text-center pb-0">
23
+ <div class="col-12 col-lg-6">
24
24
  <%= button_to Spree.t(:open_all_adjustments), open_adjustments_admin_order_path(@order), method: :get, class: "btn btn-success" %>
25
25
  </div>
26
- <div class="col-xs-12 col-md-6">
26
+ <div class="col-12 col-lg-6">
27
27
  <%= button_to Spree.t(:close_all_adjustments), close_adjustments_admin_order_path(@order), method: :get, class: "btn btn-danger" %>
28
28
  </div>
29
29
  </div>
@@ -9,7 +9,7 @@
9
9
  <% end %>
10
10
 
11
11
  <% if @adjustments.present? %>
12
- <div class="panel panel-default">
12
+ <div class="card mb-3">
13
13
  <%= render partial: 'adjustments_table' %>
14
14
  </div>
15
15
  <% else %>
@@ -19,11 +19,13 @@
19
19
  <% end %>
20
20
 
21
21
  <% if @order.can_add_coupon? %>
22
- <div class="well" data-hook="adjustments_new_coupon_code">
23
- <div class="form-group">
24
- <%= text_field_tag "coupon_code", "", placeholder: Spree.t(:coupon_code), class: "form-control" %>
22
+ <div class="card bg-light mb-3" data-hook="adjustments_new_coupon_code">
23
+ <div class="card-body">
24
+ <div class="form-group">
25
+ <%= text_field_tag "coupon_code", "", placeholder: Spree.t(:coupon_code), class: "form-control" %>
26
+ </div>
27
+ <%= button Spree.t(:add_coupon_code), 'plus', 'submit', id: "add_coupon_code" %>
25
28
  </div>
26
- <%= button Spree.t(:add_coupon_code), 'plus', 'submit', id: "add_coupon_code" %>
27
29
  </div>
28
30
  <% end %>
29
31
 
@@ -11,7 +11,19 @@
11
11
  <%= f.error_message_on :iso_name %>
12
12
  <% end %>
13
13
 
14
- <div data-hook="states_required" class="checkbox">
14
+ <%= f.field_container :iso, class: ['form-group'], 'data-hook' => 'iso' do %>
15
+ <%= f.label :iso, Spree.t(:iso) %>
16
+ <%= f.text_field :iso, class: 'form-control' %>
17
+ <%= f.error_message_on :iso %>
18
+ <% end %>
19
+
20
+ <%= f.field_container :iso3, class: ['form-group'], 'data-hook' => 'iso3' do %>
21
+ <%= f.label :iso3, Spree.t(:iso3) %>
22
+ <%= f.text_field :iso3, class: 'form-control' %>
23
+ <%= f.error_message_on :iso3 %>
24
+ <% end %>
25
+
26
+ <div data-hook="states_required" class="form-group checkbox">
15
27
  <label>
16
28
  <%= f.check_box :states_required %>
17
29
  <%= Spree.t(:states_required) %>
@@ -31,9 +31,9 @@
31
31
  <td><%= pretty_time(customer_return.created_at) %></td>
32
32
  <td>
33
33
  <% if customer_return.fully_reimbursed? %>
34
- <span class="label label-success"><%= Spree.t(:reimbursed) %></span>
34
+ <span class="badge badge-success"><%= Spree.t(:reimbursed) %></span>
35
35
  <% else %>
36
- <span class="label label-info"><%= Spree.t(:incomplete) %></span>
36
+ <span class="badge badge-info"><%= Spree.t(:incomplete) %></span>
37
37
  <% end %>
38
38
  </td>
39
39
  <td class='actions actions-1' data-hook="admin_orders_customer_returns_index_row_actions">
@@ -8,19 +8,19 @@
8
8
  <fieldset class="general no-border-top">
9
9
 
10
10
  <div class="row">
11
- <div class="col-xs-12 col-md-6">
11
+ <div class="col-12 col-lg-6">
12
12
  <%#-------------------------------------------------%>
13
13
  <%# Security settings %>
14
14
  <%#-------------------------------------------------%>
15
15
  <% if @preferences_security.any? %>
16
- <div class="panel panel-default security">
17
- <div class="panel-heading">
18
- <h1 class="panel-title">
16
+ <div class="card mb-3" id="general-settings-security" data-hook="general_settings_security">
17
+ <div class="card-header">
18
+ <h1 class="card-title mb-0 h5">
19
19
  <%= Spree.t(:security_settings) %>
20
20
  </h1>
21
21
  </div>
22
22
 
23
- <div class="panel-body">
23
+ <div class="card-body">
24
24
  <% @preferences_security.each do |key|
25
25
  type = Spree::Config.preference_type(key) %>
26
26
  <div class="checkbox">
@@ -37,12 +37,12 @@
37
37
  <%#-------------------------------------------------%>
38
38
  <%# Clear cache %>
39
39
  <%#-------------------------------------------------%>
40
- <div class="panel panel-default">
41
- <div class="panel-heading">
42
- <h1 class="panel-title"><%= Spree.t(:clear_cache)%></h1>
40
+ <div class="card mb-3" id="general-settings-cache" data-hook="general_settings_cache">
41
+ <div class="card-header">
42
+ <h1 class="card-title mb-0 h5"><%= Spree.t(:clear_cache)%></h1>
43
43
  </div>
44
44
 
45
- <div class="panel-body">
45
+ <div class="card-body">
46
46
  <div class="clear-cache-warning alert alert-warning">
47
47
  <%= Spree.t(:clear_cache_warning) %>
48
48
  </div>
@@ -53,19 +53,19 @@
53
53
  </div>
54
54
 
55
55
  </div>
56
- <div class="col-xs-12 col-md-6">
56
+ <div class="col-12 col-lg-6">
57
57
 
58
58
  <%#-------------------------------------------------%>
59
59
  <%# Currency Settings %>
60
60
  <%#-------------------------------------------------%>
61
- <div class="panel panel-default currency">
62
- <div class="panel-heading">
63
- <h1 class="panel-title">
61
+ <div class="card mb-3" id="general-settings-currency" data-hook="general_settings_currency">
62
+ <div class="card-header">
63
+ <h1 class="card-title mb-0 h5">
64
64
  <%= Spree.t(:currency_settings)%>
65
65
  </h1>
66
66
  </div>
67
67
 
68
- <div class="panel-body">
68
+ <div class="card-body">
69
69
  <div class="form-group">
70
70
  <%= label_tag :currency, Spree.t(:choose_currency) %>
71
71
  <%= select_tag :currency, currency_options %>
@@ -1,5 +1,5 @@
1
1
  <div data-hook="admin_image_form_fields" class="row">
2
- <div class="col-xs-12 col-md-6">
2
+ <div class="col-12 col-md-6">
3
3
  <div data-hook="file" class="form-group">
4
4
  <%= f.label :attachment, Spree.t(:filename) %>
5
5
  <%= f.file_field :attachment %>
@@ -9,7 +9,7 @@
9
9
  <%= f.select :viewable_id, @variants, {}, {class: 'select2'} %>
10
10
  </div>
11
11
  </div>
12
- <div data-hook="alt_text" class="col-xs-12 col-md-6">
12
+ <div data-hook="alt_text" class="col-12 col-md-6">
13
13
  <div class="form-group">
14
14
  <%= f.label :alt, Spree.t(:alt_text) %>
15
15
  <%= f.text_area :alt, rows: 4, class: 'form-control' %>
@@ -3,19 +3,19 @@
3
3
  <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @image } %>
4
4
 
5
5
  <%= form_for [:admin, @product, @image], html: { multipart: true } do |f| %>
6
- <div data-hook="edit_image" class="panel panel-default">
7
- <div class="panel-heading">
8
- <h1 class="panel-title">
6
+ <div data-hook="edit_image" class="card mb-3">
7
+ <div class="card-header">
8
+ <h1 class="card-title mb-0 h5">
9
9
  <%= @image.attachment_file_name%>
10
10
  </h1>
11
11
  </div>
12
- <div class="panel-body">
12
+ <div class="card-body">
13
13
  <div class="form-group">
14
- <div data-hook="thumbnail" class="col-xs-12 col-md-3 text-center">
14
+ <div data-hook="thumbnail" class="col-12 col-lg-3 text-center">
15
15
  <%= f.label Spree.t(:thumbnail) %>
16
16
  <%= link_to image_tag(main_app.url_for(@image.url(:small))), main_app.url_for(@image.url(:product)) %>
17
17
  </div>
18
- <div class="col-xs-12 col-md-9">
18
+ <div class="col-12 col-lg-9">
19
19
  <%= render partial: 'form', locals: { f: f } %>
20
20
  </div>
21
21
 
@@ -1,5 +1,5 @@
1
1
  <div data-hook="admin_option_type_form_fields" class="row">
2
- <div class="col-xs-12 col-md-6">
2
+ <div class="col-12 col-md-6">
3
3
  <%= f.field_container :name, class: ['form-group'] do %>
4
4
  <%= f.label :name, Spree.t(:name) %> <span class="required">*</span>
5
5
  <%= f.text_field :name, class: "form-control" %>
@@ -7,7 +7,7 @@
7
7
  <% end %>
8
8
  </div>
9
9
 
10
- <div class="col-xs-12 col-md-6">
10
+ <div class="col-12 col-md-6">
11
11
  <%= f.field_container :presentation, class: ['form-group'] do %>
12
12
  <%= f.label :presentation, Spree.t(:presentation) %> <span class="required">*</span>
13
13
  <%= f.text_field :presentation, class: "form-control" %>
@@ -12,13 +12,13 @@
12
12
  <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @option_type } %>
13
13
 
14
14
  <%= form_for [:admin, @option_type] do |f| %>
15
- <div class="panel panel-default">
16
- <div class="panel-heading">
17
- <h1 class="panel-title">
15
+ <div class="card mb-3">
16
+ <div class="card-header">
17
+ <h1 class="card-title mb-0 h5">
18
18
  <%= Spree.t(:option_values) %>
19
19
  </h1>
20
20
  </div>
21
- <div class="panel-body">
21
+ <div class="card-body">
22
22
  <%= render partial: 'form', locals: { f: f } %>
23
23
  </div>
24
24
  <table class="table table-condensed table-bordered sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
@@ -42,7 +42,7 @@
42
42
  <% end %>
43
43
  </tbody>
44
44
  </table>
45
- <div class="panel-footer text-center">
45
+ <div class="card-footer text-center">
46
46
  <%= render partial: 'spree/admin/shared/edit_resource_links' %>
47
47
  </div>
48
48
  </div>
@@ -2,14 +2,14 @@
2
2
 
3
3
  <%= render partial: "spree/admin/variants/autocomplete_line_items_stock", formats: :js %>
4
4
 
5
- <div id="add-line-item" data-hook class="panel panel-default">
6
- <div class="panel-heading">
7
- <h1 class="panel-title"><%= Spree.t(:add_product) %></h1>
5
+ <div id="add-line-item" data-hook class="card mb-3">
6
+ <div class="card-header">
7
+ <h1 class="card-title mb-0 h5"><%= Spree.t(:add_product) %></h1>
8
8
  </div>
9
- <div class="panel-body">
9
+ <div class="card-body">
10
10
  <div data-hook="add_product_name" class="form-group">
11
11
  <%= label_tag :add_line_item_variant_id, Spree.t(:name_or_sku) %>
12
- <%= hidden_field_tag :add_line_item_variant_id, "", class: "variant_autocomplete fullwidth-input" %>
12
+ <%= hidden_field_tag :add_line_item_variant_id, "", class: "variant_autocomplete d-block w-100" %>
13
13
  </div>
14
14
 
15
15
  <div id="stock_details"></div>
@@ -1,16 +1,16 @@
1
1
  <%= render partial: "spree/admin/variants/autocomplete", formats: :js %>
2
2
  <%= render partial: "spree/admin/variants/autocomplete_stock", formats: :js %>
3
3
 
4
- <div class="panel panel-default" id="add-line-item" data-hook>
5
- <div class="panel-heading">
6
- <h1 class="panel-title">
4
+ <div class="card mb-3" id="add-line-item" data-hook>
5
+ <div class="card-header">
6
+ <h1 class="card-title mb-0 h5">
7
7
  <%= Spree.t(:add_product) %>
8
8
  </h1>
9
9
  </div>
10
- <div class="panel-body">
10
+ <div class="card-body">
11
11
  <div data-hook="add_product_name">
12
12
  <%= label_tag :add_variant_id, Spree.t(:name_or_sku) %>
13
- <%= hidden_field_tag :add_variant_id, "", class: "variant_autocomplete fullwidth-input" %>
13
+ <%= hidden_field_tag :add_variant_id, "", class: "variant_autocomplete d-block w-100" %>
14
14
  </div>
15
15
 
16
16
  <div id="stock_details"></div>
@@ -1,7 +1,7 @@
1
1
  <% if adjustments.eligible.exists? %>
2
- <div class="panel panel-default">
3
- <div class="panel-heading">
4
- <h1 class="panel-title">
2
+ <div class="card mb-3">
3
+ <div class="card-header">
4
+ <h1 class="card-title mb-0 h5">
5
5
  <%= title %>
6
6
  </h1>
7
7
  </div>
@@ -31,5 +31,6 @@
31
31
  <% end %>
32
32
  </tbody>
33
33
  </table>
34
+
34
35
  </div>
35
36
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <% if order.line_items.exists? %>
2
- <div class="panel panel-default">
3
- <div class="panel-heading">
4
- <h1 class="panel-title">
2
+ <div class="card mb-3">
3
+ <div class="card-header">
4
+ <h1 class="card-title mb-0 h5">
5
5
  <%= Spree.t(:order_line_items) %>
6
6
  </h1>
7
7
  </div>
@@ -37,7 +37,7 @@
37
37
  <td class="line-item-total text-center"><%= line_item_shipment_price(item, item.quantity) %></td>
38
38
  <td class="cart-line-item-delete actions actions-4 text-center" data-hook="cart_line_item_delete">
39
39
  <% if can? :update, item %>
40
- <%= link_to_with_icon 'arrow-left', Spree.t('actions.cancel'), "#", class: 'cancel-line-item btn btn-default btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
40
+ <%= link_to_with_icon 'arrow-left', Spree.t('actions.cancel'), "#", class: 'cancel-line-item btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
41
41
  <%= link_to_with_icon 'save', Spree.t('actions.save'), "#", class: 'save-line-item btn btn-success btn-sm', no_text: true, data: { :'line-item-id' => item.id, action: 'save'}, title: Spree.t('actions.save'), style: 'display: none' %>
42
42
  <%= link_to_with_icon 'edit', Spree.t('edit'), "#", class: 'edit-line-item btn btn-primary btn-sm', data: {action: 'edit'}, title: Spree.t('edit'), no_text: true %>
43
43
  <%= link_to_with_icon 'delete', Spree.t('delete'), "#", class: 'delete-line-item btn btn-danger btn-sm', data: { 'line-item-id' => item.id, action: 'remove'}, title: Spree.t('delete'), no_text: true %>