spree_frontend 4.2.0.rc3 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/frontend.js +38 -5
  3. data/app/assets/javascripts/spree/frontend/account.js +1 -1
  4. data/app/assets/javascripts/spree/frontend/cart.js +1 -1
  5. data/app/assets/javascripts/spree/frontend/checkout/address.js +1 -1
  6. data/app/assets/javascripts/spree/frontend/checkout/shipment.js +15 -2
  7. data/app/assets/javascripts/spree/frontend/coupon_manager.js +1 -1
  8. data/app/assets/javascripts/spree/frontend/currency.js +43 -0
  9. data/app/assets/javascripts/spree/frontend/locale.js +13 -0
  10. data/app/assets/stylesheets/spree/frontend/application.scss +0 -3
  11. data/app/assets/stylesheets/spree/frontend/variables/bootstrap-overrides.scss +1 -0
  12. data/app/assets/stylesheets/spree/frontend/variables/helper-variables.scss +1 -0
  13. data/app/assets/stylesheets/spree/frontend/variables/variables.scss +54 -0
  14. data/app/assets/stylesheets/spree/frontend/views/spree/checkout/confirm.scss +27 -22
  15. data/app/assets/stylesheets/spree/frontend/views/spree/orders/show.scss +3 -0
  16. data/app/controllers/concerns/spree/locale_urls.rb +21 -0
  17. data/app/controllers/spree/checkout_controller.rb +8 -8
  18. data/app/controllers/spree/currency_controller.rb +9 -9
  19. data/app/controllers/spree/home_controller.rb +5 -1
  20. data/app/controllers/spree/locale_controller.rb +23 -6
  21. data/app/controllers/spree/orders_controller.rb +2 -2
  22. data/app/controllers/spree/products_controller.rb +6 -5
  23. data/app/controllers/spree/store_controller.rb +11 -15
  24. data/app/controllers/spree/taxons_controller.rb +3 -2
  25. data/app/helpers/spree/addresses_helper.rb +9 -2
  26. data/app/helpers/spree/cache_helper.rb +7 -0
  27. data/app/helpers/spree/frontend_helper.rb +15 -23
  28. data/app/helpers/spree/navigation_helper.rb +6 -1
  29. data/app/helpers/spree/store_helper.rb +39 -0
  30. data/app/helpers/spree/taxons_helper.rb +1 -1
  31. data/app/models/spree/frontend_configuration.rb +2 -1
  32. data/app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb +2 -2
  33. data/app/views/kaminari/twitter-bootstrap-4/_gap.html.erb +2 -2
  34. data/app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb +2 -2
  35. data/app/views/kaminari/twitter-bootstrap-4/_next_page.html.erb +2 -2
  36. data/app/views/kaminari/twitter-bootstrap-4/_page.html.erb +2 -2
  37. data/app/views/kaminari/twitter-bootstrap-4/_paginator.html.erb +2 -2
  38. data/app/views/kaminari/twitter-bootstrap-4/_prev_page.html.erb +2 -2
  39. data/app/views/spree/address/_form.html.erb +15 -16
  40. data/app/views/spree/addresses/edit.html.erb +2 -2
  41. data/app/views/spree/addresses/new.html.erb +2 -2
  42. data/app/views/spree/checkout/_address.html.erb +4 -6
  43. data/app/views/spree/checkout/_confirm.html.erb +1 -33
  44. data/app/views/spree/checkout/_credit_card.html.erb +2 -2
  45. data/app/views/spree/checkout/_delivery_informations.html.erb +43 -36
  46. data/app/views/spree/checkout/_summary.html.erb +3 -5
  47. data/app/views/spree/checkout/payment/_gateway.html.erb +1 -1
  48. data/app/views/spree/home/index.html.erb +21 -22
  49. data/app/views/spree/locale/index.html.erb +1 -0
  50. data/app/views/spree/orders/_coupon_code.html.erb +2 -3
  51. data/app/views/spree/orders/_line_item.html.erb +2 -2
  52. data/app/views/spree/orders/_line_item_data.html.erb +1 -1
  53. data/app/views/spree/orders/edit.html.erb +2 -3
  54. data/app/views/spree/orders/show.html.erb +1 -71
  55. data/app/views/spree/products/_cart_form.html.erb +2 -3
  56. data/app/views/spree/products/_color_option_type.html.erb +2 -3
  57. data/app/views/spree/products/_filters_desktop.html.erb +1 -2
  58. data/app/views/spree/products/_gallery.html.erb +4 -6
  59. data/app/views/spree/products/_gallery_modal.html.erb +3 -5
  60. data/app/views/spree/products/_option_type.html.erb +1 -2
  61. data/app/views/spree/products/_sort_mobile.html.erb +4 -4
  62. data/app/views/spree/products/related.html.erb +11 -5
  63. data/app/views/spree/products/show.html.erb +1 -2
  64. data/app/views/spree/shared/_carousel_4_products.html.erb +6 -12
  65. data/app/views/spree/shared/_color_select.html.erb +3 -3
  66. data/app/views/spree/shared/_currency_dropdown.html.erb +13 -0
  67. data/app/views/spree/shared/_delete_address_popup.html.erb +1 -2
  68. data/app/views/spree/shared/_error_messages.html.erb +2 -2
  69. data/app/views/spree/shared/_footer.html.erb +2 -2
  70. data/app/views/spree/shared/_head.html.erb +2 -1
  71. data/app/views/spree/shared/_header.html.erb +1 -1
  72. data/app/views/spree/shared/_internationalization_options.html.erb +31 -0
  73. data/app/views/spree/shared/_line_item.html.erb +2 -2
  74. data/app/views/spree/shared/_link_to_account.html.erb +5 -5
  75. data/app/views/spree/shared/_locale_and_currency.html.erb +6 -0
  76. data/app/views/spree/shared/_locale_dropdown.html.erb +13 -0
  77. data/app/views/spree/shared/_login.html.erb +1 -1
  78. data/app/views/spree/shared/_main_nav_bar.html.erb +1 -1
  79. data/app/views/spree/shared/_mobile_internationalization_options.html.erb +37 -0
  80. data/app/views/spree/shared/_mobile_navigation.html.erb +3 -6
  81. data/app/views/spree/shared/_nav_bar.html.erb +5 -5
  82. data/app/views/spree/shared/_no_product_available.html.erb +1 -1
  83. data/app/views/spree/shared/_option_values.html.erb +1 -1
  84. data/app/views/spree/shared/_order_details.html.erb +117 -174
  85. data/app/views/spree/shared/_payment.html.erb +2 -2
  86. data/app/views/spree/shared/_payment_sources.html.erb +2 -2
  87. data/app/views/spree/shared/_product_added_modal.html.erb +3 -3
  88. data/app/views/spree/shared/_search.html.erb +1 -2
  89. data/app/views/spree/shared/_translations.html.erb +6 -6
  90. data/app/views/spree/shared/carousel/_single.html.erb +6 -11
  91. data/app/views/spree/shared/carousel/_thumbnails.html.erb +5 -11
  92. data/app/views/spree/users/_address_controls.html.erb +1 -2
  93. data/app/views/spree/users/show.html.erb +4 -4
  94. data/config/initializers/canonical_rails.rb +1 -1
  95. data/config/routes.rb +26 -30
  96. data/lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb +1 -7
  97. data/lib/generators/spree/frontend/install/install_generator.rb +34 -0
  98. data/lib/generators/spree/frontend/install/templates/config/initializers/spree_storefront.rb +1 -0
  99. data/lib/generators/spree/frontend/install/templates/config/spree_storefront.yml +99 -0
  100. data/spree_frontend.gemspec +1 -1
  101. metadata +26 -16
  102. data/app/views/spree/shared/_change_store.html.erb +0 -25
  103. data/app/views/spree/shared/_mobile_change_store.html.erb +0 -30
  104. data/app/views/spree/shared/forbidden.html.erb +0 -0
  105. data/app/views/spree/shared/unauthorized.html.erb +0 -0
@@ -0,0 +1 @@
1
+ <%= render 'spree/shared/locale_dropdown' %>
@@ -12,11 +12,10 @@
12
12
  <div class="input-group">
13
13
  <%= order_form.text_field :applied_coupon_code, name: '', size: '30', class: 'form-control border-right-0 disabled',
14
14
  value: Spree.t(:promotion_label, name: promotion.name),
15
- data: { code: promotion.code }
16
- %>
15
+ data: { code: promotion.code } %>
17
16
  <div class="input-group-append">
18
17
  <%= button_tag name: '', id: 'shopping-cart-remove-coupon-code-button', class: 'btn border-left-0 remove' do %>
19
- <%= icon(name: 'close', width: 15, height: 14) %>
18
+ <%= icon(name: 'close', width: 15, height: 14) %>
20
19
  <% end %>
21
20
  </div>
22
21
  </div>
@@ -3,13 +3,13 @@
3
3
  <%= order_form.fields_for :line_items, line_item do |item_form| %>
4
4
  <div class="d-table-row shopping-cart-item">
5
5
  <div class="d-table-cell shopping-cart-item-image" data-hook="cart_item_image">
6
- <%= link_to product_image(variant), variant.product %>
6
+ <%= link_to product_image(variant), spree.product_path(variant.product) %>
7
7
  </div>
8
8
  <div class="d-table-cell shopping-cart-item-description" data-hook="cart_item_description">
9
9
  <h2 class="item-title"><%= link_to line_item.name, spree.product_path(variant.product) %></h2>
10
10
  <% if line_item.insufficient_stock? %>
11
11
  <span class="out-of-stock">
12
- <%= Spree.t(:out_of_stock) %>&nbsp;&nbsp;<br />
12
+ <%= Spree.t(:out_of_stock) %>&nbsp;&nbsp;<br>
13
13
  </span>
14
14
  <% end %>
15
15
  <ul class="item-details-list" data-hook="line_item_description">
@@ -26,6 +26,6 @@
26
26
  <%= icon(name: 'garbage',
27
27
  classes: 'shopping-cart-item-delete-icon',
28
28
  width: 18.9,
29
- height: 17) %>
29
+ height: 17) %>
30
30
  <% end %>
31
31
  </div>
@@ -12,7 +12,7 @@
12
12
  <%= icon(name: 'empty-cart',
13
13
  classes: 'shopping-cart-empty-image',
14
14
  width: 83,
15
- height: 83) %>
15
+ height: 83) %>
16
16
 
17
17
  <p class="text-center shopping-cart-empty-info"><%= Spree.t('cart_page.empty_info').html_safe %></p>
18
18
  </div>
@@ -57,8 +57,7 @@
57
57
  <%= render 'coupon_code',
58
58
  promotion: @order.valid_coupon_promotions.first,
59
59
  order_form: order_form,
60
- classes: ''
61
- %>
60
+ classes: '' %>
62
61
  <% end %>
63
62
 
64
63
  <div class="text-right shopping-cart-total d-lg-none">
@@ -15,75 +15,5 @@
15
15
  <p class="order-show-number text-uppercase w-100 text-center">
16
16
  <%= accurate_title %> / <%= pretty_date(@order.completed_at) %>
17
17
  </p>
18
- <dl class="w-100 d-lg-flex justify-content-lg-between">
19
- <div>
20
- <dt class="text-uppercase text-center text-lg-left"><%= Spree.t(:shipping_address) %></dt>
21
- <dd class="text-center text-lg-left">
22
- <%= render 'spree/shared/address', address: @order.ship_address %>
23
- </dd>
24
- </div>
25
- <div>
26
- <dt class="text-uppercase text-center text-lg-left"><%= Spree.t(:billing_address) %></dt>
27
- <dd class="text-center text-lg-left">
28
- <%= render 'spree/shared/address', address: @order.bill_address %>
29
- </dd>
30
- </div>
31
- <div>
32
- <dt class="text-uppercase text-center text-lg-left"><%= Spree.t(:shipping) %></dt>
33
- <% @order.shipments.valid.each do |shipment| %>
34
- <dd class="text-center text-lg-left">
35
- <%= shipment.shipping_method.name %>
36
- <%= link_to_tracking(shipment) if shipment.shipped? %>
37
- </dd>
38
- <% end %>
39
- </div>
40
- <div>
41
- <dt class="text-uppercase text-center text-lg-left"><%= Spree.t(:payment) %></dt>
42
- <dd class="text-center text-lg-left">
43
- <%= render collection: @order.payments.valid, partial: 'spree/shared/payment' %>
44
- </dd>
45
- </div>
46
- </dl>
47
- <hr class="w-100 mt-0 mb-4 d-sm-none" />
48
- <div class="order-show-line-items d-flex flex-column align-items-center">
49
- <% @order.line_items.each do |item| %>
50
- <div class="order-show-line-items-line-item d-flex w-100">
51
- <%= link_to product_image(item.variant), item.product %>
52
- <div class="order-show-line-items-line-item-desc w-100">
53
- <span class="order-show-line-items-line-item-desc-name">
54
- <%= item.name %>
55
- </span>
56
- <span class="order-show-line-items-line-item-desc-subtitle text-break text-uppercase">
57
- <ul class="list-unstyled mb-0">
58
- <% item.variant.option_values.sort { |ov| ov.option_type.position }.each do |ov| %>
59
- <li><%= "#{ov.option_type.presentation}: #{ov.name.titleize}" %></li>
60
- <% end %>
61
- </ul>
62
- </span>
63
- <div class="order-show-line-items-line-item-desc-price">
64
- <div class="order-show-line-items-line-item-desc-price-attr-name d-inline d-lg-block">
65
- <span><%= Spree.t(:price) %></span>
66
- </div>
67
- <span class="font-weight-bold"><%= item.single_money.to_html %></span>
68
- </div>
69
- <div class="order-show-line-items-line-item-desc-quantity">
70
- <div class="order-show-line-items-line-item-desc-quantity-attr-name d-inline d-lg-block">
71
- <span><%= Spree.t(:quantity) %></span>
72
- </div>
73
- <span class="order-show-line-items-line-item-desc-quantity-val d-lg-block"><%= item.quantity %></span>
74
- </div>
75
- <div class="order-show-line-items-line-item-desc-total">
76
- <div class="order-show-line-items-line-item-desc-total-attr-name d-inline d-lg-block">
77
- <span><%= Spree.t(:total) %></span>
78
- </div>
79
- <span class="font-weight-bold d-lg-block"><%= item.display_total.to_s %></span>
80
- </div>
81
- </div>
82
- </div>
83
- <% end %>
84
- </div>
85
- <hr class="w-100 mt-4 mb-0 d-sm-none" />
86
- <div id="checkout-summary" class="w-100" data-hook="checkout_summary_box">
87
- <%= render partial: 'spree/checkout/summary', locals: { order: @order } %>
88
- </div>
18
+ <%= render partial: 'spree/shared/order_details', locals: { order: @order } %>
89
19
  </div>
@@ -16,7 +16,6 @@
16
16
 
17
17
  <% is_product_available_in_currency = product_available_in_currency? %>
18
18
  <% default_variant = default_variant(@variants, @product) %>
19
- <% should_display_compare_at_price = default_variant.compare_at_price.present? && default_variant.compare_at_price > default_variant.price %>
20
19
 
21
20
  <%= form_for :order, html: {
22
21
  id: 'add-to-cart-form',
@@ -28,7 +27,7 @@
28
27
  <div id="inside-product-cart-form" data-hook="inside_product_cart_form">
29
28
  <% if is_product_available_in_currency %>
30
29
  <div id="product-price" class="mb-2 text-center text-md-left add-to-cart-form-price" data-hook="product_price">
31
- <% if should_display_compare_at_price %>
30
+ <% if should_display_compare_at_price?(default_variant) %>
32
31
  <span class="compare-at-price mr-3"><%= display_compare_at_price(default_variant) %></span>
33
32
  <% end %>
34
33
  <span class="price selling" content="<%= @product_price.to_d %>">
@@ -56,7 +55,7 @@
56
55
  <ul id="product-variants" class="product-variants">
57
56
  <% used_variants_options(@variants, @product).each_with_index do |option_type, index| %>
58
57
  <li>
59
- <% if Spree::OptionType.color&.name == option_type[:name] %>
58
+ <% if color_option_type_name.present? && color_option_type_name == option_type[:name] %>
60
59
  <%= render "color_option_type", option_type: option_type, index: index %>
61
60
  <% else %>
62
61
  <%= render "option_type", option_type: option_type, index: index %>
@@ -9,7 +9,7 @@
9
9
  <li>
10
10
  <%= label_tag "variant_option_value_id_#{option_type[:id]}_#{option_value[:id]}",
11
11
  class: "m-1 m-sm-2 m-md-1 color-select-label",
12
- title: option_value[:name],
12
+ title: option_value[:name]&.humanize,
13
13
  data: { toggle: "tooltip", placement: "bottom" } do %>
14
14
 
15
15
  <%= radio_button_tag "variant_option_value_id_#{option_type[:id]}",
@@ -22,8 +22,7 @@
22
22
  "presentation" => option_value[:presentation],
23
23
  "variant-id" => option_value[:variant_id],
24
24
  "is-color" => true
25
- }
26
- %>
25
+ } %>
27
26
 
28
27
  <%= render partial: "spree/shared/color_select", locals: {
29
28
  color: option_value[:presentation],
@@ -24,8 +24,7 @@
24
24
  params_ot_downcase_name: params[ot_downcase_name],
25
25
  option_type: option_type,
26
26
  permitted_params: permitted_params,
27
- ot_downcase_name: ot_downcase_name
28
- %>
27
+ ot_downcase_name: ot_downcase_name %>
29
28
  </div>
30
29
  </div>
31
30
  </div>
@@ -2,16 +2,15 @@
2
2
  <% if @product_images.size > 0 %>
3
3
  <div
4
4
  class="w-100 d-flex align-self-start justify-content-between product-details-images"
5
- data-hook="product_left_part_wrap"
6
- >
5
+ data-hook="product_left_part_wrap">
6
+
7
7
  <div class="d-none d-md-block product-details-thumbnails" data-hook="product_thumbnails">
8
8
  <%= render 'spree/shared/carousel/thumbnails',
9
9
  images: @product_images,
10
10
  group_id: 'main-product-carousel',
11
11
  id: 'productThumbnailsCarousel',
12
12
  trigger_id: 'productCarousel',
13
- per_page: 5
14
- %>
13
+ per_page: 5 %>
15
14
  </div>
16
15
  <div class="product-details-single" data-hook="product_images">
17
16
  <%= render 'spree/shared/carousel/single',
@@ -19,8 +18,7 @@
19
18
  group_id: 'main-product-carousel',
20
19
  id: 'productCarousel',
21
20
  trigger_id: 'productCarousel',
22
- zoomed: false
23
- %>
21
+ zoomed: false %>
24
22
  </div>
25
23
  </div>
26
24
  <% end %>
@@ -1,5 +1,5 @@
1
1
  <% if @product_images.size > 0 %>
2
- <div class="modal fade" id="picturesModal" tabindex="-1" role="dialog" >
2
+ <div class="modal fade" id="picturesModal" tabindex="-1" role="dialog">
3
3
  <div class="modal-dialog--zoom modal-dialog mw-100 vh-100 mt-0 mb-0" role="document">
4
4
  <div class="modal-content h-100">
5
5
  <div class="modal-body h-100">
@@ -23,8 +23,7 @@
23
23
  group_id: 'main-product-modal-carousel',
24
24
  id: 'productModalThumbnailsCarousel',
25
25
  trigger_id: 'productCarousel',
26
- per_page: 4
27
- %>
26
+ per_page: 4 %>
28
27
  </div>
29
28
  <% end %>
30
29
  <div class="product-details-single">
@@ -33,8 +32,7 @@
33
32
  group_id: 'main-product-modal-carousel',
34
33
  id: 'productModalCarousel',
35
34
  trigger_id: 'productCarousel',
36
- zoomed: true
37
- %>
35
+ zoomed: true %>
38
36
  </div>
39
37
  </div>
40
38
  </div>
@@ -15,8 +15,7 @@
15
15
  "option-type-index" => index,
16
16
  "presentation" => option_value[:presentation],
17
17
  "variant-id" => option_value[:variant_id]
18
- }
19
- %>
18
+ } %>
20
19
 
21
20
  <%= label_tag "variant_option_value_id_#{option_type[:id]}_#{option_value[:id]}",
22
21
  class: "m-1 select-label",
@@ -8,7 +8,7 @@
8
8
  <div class="plp-overlay-header-border"></div>
9
9
  <ul class="pt-1 plp-overlay-ul">
10
10
  <li class="plp-overlay-ul-li <%= 'plp-overlay-ul-li--active' if params[:sort_by].blank? %>">
11
- <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: nil)) %>" >
11
+ <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: nil)) %>">
12
12
  <div class="plp-empty-dot">
13
13
  <div class="filled-dot"></div>
14
14
  </div>
@@ -16,7 +16,7 @@
16
16
  </a>
17
17
  </li>
18
18
  <li class="plp-overlay-ul-li <%= 'plp-overlay-ul-li--active' if params[:sort_by] == 'newest-first' %>">
19
- <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: 'newest-first')) %>" >
19
+ <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: 'newest-first')) %>">
20
20
  <div class="plp-empty-dot">
21
21
  <div class="filled-dot"></div>
22
22
  </div>
@@ -24,7 +24,7 @@
24
24
  </a>
25
25
  </li>
26
26
  <li class="plp-overlay-ul-li <%= 'plp-overlay-ul-li--active' if params[:sort_by] == 'price-high-to-low' %>">
27
- <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: 'price-high-to-low')) %>" >
27
+ <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: 'price-high-to-low')) %>">
28
28
  <div class="plp-empty-dot">
29
29
  <div class="filled-dot"></div>
30
30
  </div>
@@ -32,7 +32,7 @@
32
32
  </a>
33
33
  </li>
34
34
  <li class="plp-overlay-ul-li <%= 'plp-overlay-ul-li--active' if params[:sort_by] == 'price-low-to-high' %>">
35
- <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: 'price-low-to-high')) %>" >
35
+ <a class="p-3 d-block" href="<%= url_for(permitted_params.merge(sort_by: 'price-low-to-high')) %>">
36
36
  <div class="plp-empty-dot">
37
37
  <div class="filled-dot"></div>
38
38
  </div>
@@ -1,8 +1,14 @@
1
- <% if related_products.any? %>
1
+ <% if product_relation_types.any? %>
2
2
  <div id="related-products">
3
- <div class="product-details-related">
4
- <p class="font-weight-bold text-center text-uppercase product-details-carousel-text"><%= Spree.t('pdp.you_may_also_like') %></p>
5
- <%= render 'spree/shared/carousel_4_products', id: 'related-products-carousel', products: @related_products %>
6
- </div>
3
+ <% product_relation_types.each do |relation_type| %>
4
+ <% products = product_relations_by_type(relation_type) %>
5
+
6
+ <% if products.any? %>
7
+ <div class="product-details-related" id="product-details-related-<%= relation_type.id %>">
8
+ <p class="font-weight-bold text-center text-uppercase product-details-carousel-text"><%= relation_type.name %></p>
9
+ <%= render 'spree/shared/carousel_4_products', id: "related-products-carousel-#{relation_type.id}", products: products %>
10
+ </div>
11
+ <% end %>
12
+ <% end %>
7
13
  </div>
8
14
  <% end %>
@@ -48,5 +48,4 @@
48
48
  <div
49
49
  data-related-products
50
50
  data-related-products-id="<%= @product.slug %>"
51
- data-related-products-enabled="<%= @product.respond_to?(:has_related_products?) %>"
52
- />
51
+ data-related-products-enabled="<%= @product.respond_to?(:has_related_products?) %>" />
@@ -20,8 +20,7 @@
20
20
  class="d-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--previous"
21
21
  href="#<%= id %>-mobile"
22
22
  role="button"
23
- data-slide="prev"
24
- >
23
+ data-slide="prev">
25
24
  <span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
26
25
  <%= icon(name: 'arrow-right',
27
26
  classes: 'spree-icon-arrow spree-icon-arrow-left',
@@ -35,8 +34,7 @@
35
34
  class="d-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--next"
36
35
  href="#<%= id %>-mobile"
37
36
  role="button"
38
- data-slide="next"
39
- >
37
+ data-slide="next">
40
38
  <span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
41
39
  <%= icon(name: 'arrow-right',
42
40
  classes: 'spree-icon-arrow spree-icon-arrow-right',
@@ -56,14 +54,12 @@
56
54
  class="d-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--previous"
57
55
  href="#<%= id %>-desktop"
58
56
  role="button"
59
- data-slide="prev"
60
- >
57
+ data-slide="prev">
61
58
  <span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
62
59
  <%= icon(name: 'arrow-right',
63
60
  classes: 'spree-icon-arrow spree-icon-arrow-left',
64
61
  width: 20,
65
- height: 20)
66
- %>
62
+ height: 20) %>
67
63
  </span>
68
64
  <span class="sr-only"><%= Spree.t(:previous) %></span>
69
65
  </a>
@@ -80,14 +76,12 @@
80
76
  class="d-md-flex position-absolute justify-content-center align-items-center carousel-icon-control carousel-icon-control--next"
81
77
  href="#<%= id %>-desktop"
82
78
  role="button"
83
- data-slide="next"
84
- >
79
+ data-slide="next">
85
80
  <span class="d-flex justify-content-center align-items-center carousel-icon-control-rounded" aria-hidden="true">
86
81
  <%= icon(name: 'arrow-right',
87
82
  classes: 'spree-icon-arrow spree-icon-arrow-right',
88
83
  width: 20,
89
- height: 20)
90
- %>
84
+ height: 20) %>
91
85
  </span>
92
86
  <span class="sr-only"><%= Spree.t(:next) %></span>
93
87
  </a>
@@ -1,9 +1,9 @@
1
1
  <svg class="color-select" height="32" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg">
2
2
  <g class="color-select-border" fill="none" fill-rule="evenodd">
3
- <circle class="<%= 'color-select-border--selected' if selected %> plp-overlay-color-item" cx="16" cy="16" r="15" stroke-width="2"/>
3
+ <circle class="<%= 'color-select-border--selected' if selected %> plp-overlay-color-item" cx="16" cy="16" r="15" stroke-width="2" />
4
4
  <g transform="translate(2 2)">
5
- <circle cx="14" cy="14" fill="<%= color %>" fill-rule="evenodd" r="12"/>
6
- <circle cx="14" cy="14" r="13" stroke="#fff" stroke-width="2"/>
5
+ <circle cx="14" cy="14" fill="<%= color %>" fill-rule="evenodd" r="12" />
6
+ <circle cx="14" cy="14" r="13" stroke="#fff" stroke-width="2" />
7
7
  </g>
8
8
  </g>
9
9
  </svg>
@@ -0,0 +1,13 @@
1
+ <% if defined?(should_render_currency_dropdown?) && should_render_currency_dropdown? %>
2
+ <%= form_tag spree.set_currency_path, method: :get, class: 'px-4 py-3 w-100 currency-select' do %>
3
+ <div class="form-group">
4
+ <label for="switch_to_currency" class="dropdown-header text-center">
5
+ <%= Spree.t(:choose_currency) %>
6
+ </label>
7
+ <%= select_tag(:switch_to_currency,
8
+ options_for_select(supported_currency_options, current_currency),
9
+ class: 'custom-select w-100') %>
10
+ <noscript><%= submit_tag %></noscript>
11
+ </div>
12
+ <% end %>
13
+ <% end %>
@@ -18,8 +18,7 @@
18
18
  class="btn btn-primary text-uppercase font-weight-bold delete-address-popup-button"
19
19
  data-method="delete"
20
20
  rel="nofollow"
21
- href="#"
22
- >
21
+ href="#">
23
22
  <%= Spree.t("address_action_popup.delete_button") %>
24
23
  </a>
25
24
  </div>
@@ -1,10 +1,10 @@
1
1
  <% if target && target.errors.any? %>
2
2
  <div id="errorExplanation" class="alert alert-danger d-flex justify-content-center mb-0" data-hook>
3
- <ul class="mb-0 pl-0" style="list-style-type: none;">
3
+ <ul class="mb-0 pl-0" style="list-style-type: none;">
4
4
  <% target.errors.full_messages.each do |msg| %>
5
5
  <li><%= msg %></li>
6
6
  <% end %>
7
7
  </ul>
8
- <br/>
8
+ <br>
9
9
  </div>
10
10
  <% end %>
@@ -33,7 +33,7 @@
33
33
  <div class="d-flex flex-column align-items-center align-items-xl-start pb-3 flex-grow-2 footer-spree-contact-note">
34
34
  <div>
35
35
  <strong><%= current_store.name %></strong>
36
- <br/>
36
+ <br>
37
37
  <% if current_store.address %>
38
38
  <%= current_store.address.html_safe %>
39
39
  <% end %>
@@ -68,7 +68,7 @@
68
68
  <%= Spree.t('nav_bar.my_account') %>
69
69
  </div>
70
70
  <div class="pt-2">
71
- <%= link_to Spree.t('nav_bar.my_orders'), spree.account_path(anchor: "account-my-orders") %>
71
+ <%= link_to Spree.t(:my_orders).upcase, spree.account_path(anchor: "account-my-orders") %>
72
72
  </div>
73
73
  </div>
74
74
  <% end %>