spree_frontend 4.1.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +120 -0
- data/.codeclimate.yml +36 -0
- data/.deepsource.toml +19 -0
- data/.editorconfig +22 -0
- data/.eslintignore +7 -0
- data/.eslintrc +36 -0
- data/.gem_release.yml +7 -0
- data/.github/CONTRIBUTING.md +1 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +47 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/ISSUE_TEMPLATE.md +39 -0
- data/.github/dependabot.yml +32 -0
- data/.gitignore +58 -0
- data/.rubocop.yml +197 -0
- data/.solargraph.yml +20 -0
- data/.stylelintignore +4 -0
- data/.stylelintrc +6 -0
- data/CODE_OF_CONDUCT.md +22 -0
- data/Gemfile +57 -3
- data/LICENSE +1 -1
- data/README.md +89 -0
- data/Rakefile +1 -1
- data/SECURITY.md +1 -0
- data/app/assets/config/spree_frontend_manifest.js +5 -0
- data/app/assets/images/arrow-down.svg +12 -0
- data/app/assets/images/arrow-right-circle-fill.svg +3 -0
- data/app/assets/images/card-image.svg +4 -0
- data/app/assets/images/edit.svg +1 -1
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/file-image.svg +4 -0
- data/app/assets/images/global.svg +1 -0
- data/app/assets/images/image.svg +4 -0
- data/app/assets/images/info.svg +7 -0
- data/app/assets/images/logo/spree_50.png +0 -0
- data/app/assets/images/logo-spree.png +0 -0
- data/app/assets/images/logo.png +0 -0
- data/app/assets/images/logo.svg +10 -1
- data/app/assets/images/logo@2x.png +0 -0
- data/app/assets/images/logo@3x.png +0 -0
- data/app/assets/images/noimage/large.png +0 -0
- data/app/assets/images/noimage/mini.png +0 -0
- data/app/assets/images/noimage/plp.png +0 -0
- data/app/assets/images/noimage/plp.svg +16 -0
- data/app/assets/images/noimage/product.png +0 -0
- data/app/assets/images/noimage/small.png +0 -0
- data/app/assets/images/pagination-arrow-right.svg +3 -10
- data/app/assets/images/pagination-double-arrow-right.svg +6 -13
- data/app/assets/images/plus.svg +1 -1
- data/app/assets/images/search.svg +1 -1
- data/app/assets/javascripts/spree/frontend/account.js +1 -1
- data/app/assets/javascripts/spree/frontend/api/main.js +36 -0
- data/app/assets/javascripts/spree/frontend/api/storefront/cart.js +49 -0
- data/app/assets/javascripts/spree/frontend/cart.js +24 -2
- data/app/assets/javascripts/spree/frontend/checkout/address.js +78 -52
- data/app/assets/javascripts/spree/frontend/checkout/address_book.js +38 -40
- data/app/assets/javascripts/spree/frontend/checkout/payment.js +63 -23
- data/app/assets/javascripts/spree/frontend/checkout/shipment.js +15 -2
- data/app/assets/javascripts/spree/frontend/checkout.js +17 -1
- data/app/assets/javascripts/spree/frontend/coupon_manager.js +1 -1
- data/app/assets/javascripts/spree/frontend/currency.js +44 -0
- data/app/assets/javascripts/spree/frontend/locale.es6 +12 -0
- data/app/assets/javascripts/spree/frontend/login.js +5 -0
- data/app/assets/javascripts/spree/frontend/main.js +78 -0
- data/app/assets/javascripts/spree/frontend/main_nav_bar.js +86 -0
- data/app/assets/javascripts/spree/frontend/{turbolinks_scroll_fix.js → turbo_scroll_fix.js} +3 -3
- data/app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js +4 -4
- data/app/assets/javascripts/spree/frontend/views/spree/product/related.js +3 -3
- data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +67 -18
- data/app/assets/javascripts/spree/frontend/views/spree/products/description.js +1 -1
- data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +76 -15
- data/app/assets/javascripts/spree/frontend/views/spree/products/price_filters.es6 +46 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/mobile_navigation.js +9 -10
- data/app/assets/javascripts/spree/frontend/views/spree/shared/product_added_modal.js +7 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/variant_select.js +93 -0
- data/app/assets/javascripts/spree/frontend.js +68 -11
- data/app/assets/stylesheets/spree/frontend/application.scss +5 -2
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/button.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/carousel.scss +4 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/inputs.scss +80 -1
- data/app/assets/stylesheets/spree/frontend/flags/_flag-icon-base.scss +23 -0
- data/app/assets/stylesheets/spree/frontend/flags/_flag-icon-list.scss +265 -0
- data/app/assets/stylesheets/spree/frontend/flags/_variables.scss +2 -0
- data/app/assets/stylesheets/spree/frontend/flags/flag-icon.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/functions.scss +1 -0
- data/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss +48 -0
- data/app/assets/stylesheets/spree/frontend/variables/bootstrap-overrides.scss +2 -2
- data/app/assets/stylesheets/spree/frontend/variables/helper-variables.scss +1 -0
- data/app/assets/stylesheets/spree/frontend/variables/variables.scss +54 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/confirm.scss +27 -26
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/delivery.scss +6 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/edit.scss +24 -10
- data/app/assets/stylesheets/spree/frontend/views/spree/cms_sections/_index.scss +1 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/cms_sections/product_buy_bar.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/home/index.scss +54 -67
- data/app/assets/stylesheets/spree/frontend/views/spree/orders/edit.scss +4 -3
- data/app/assets/stylesheets/spree/frontend/views/spree/orders/show.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/cart_form.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/gallery_modal.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/index.scss +55 -26
- data/app/assets/stylesheets/spree/frontend/views/spree/products/show.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/_color_select.scss +10 -9
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/single.scss +1 -1
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/thumbnails.scss +1 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/cart.scss +9 -4
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/category_nav_bar.scss +3 -3
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/change_store.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/footer.scss +4 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/main_nav_bar.scss +42 -26
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss +34 -3
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/nav_bar.scss +24 -7
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/quantity_select.scss +9 -12
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/search_form.scss +12 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/users/show.scss +7 -13
- data/app/assets/stylesheets/spree/frontend.css +0 -1
- data/app/controllers/concerns/spree/checkout/address_book.rb +9 -7
- data/app/controllers/concerns/spree/locale_urls.rb +21 -0
- data/app/controllers/spree/addresses_controller.rb +16 -33
- data/app/controllers/spree/checkout_controller.rb +15 -13
- data/app/controllers/spree/cms_pages_controller.rb +29 -0
- data/app/controllers/spree/content_controller.rb +0 -2
- data/app/controllers/spree/currency_controller.rb +17 -0
- data/app/controllers/spree/errors_controller.rb +11 -0
- data/app/controllers/spree/home_controller.rb +38 -1
- data/app/controllers/spree/locale_controller.rb +35 -6
- data/app/controllers/spree/orders_controller.rb +12 -10
- data/app/controllers/spree/products_controller.rb +46 -28
- data/app/controllers/spree/store_controller.rb +77 -12
- data/app/controllers/spree/taxons_controller.rb +16 -8
- data/app/helpers/spree/addresses_helper.rb +64 -12
- data/app/helpers/spree/cache_helper.rb +7 -0
- data/app/helpers/spree/cms_pages_helper.rb +23 -0
- data/app/helpers/spree/frontend_helper.rb +170 -18
- data/app/helpers/spree/navigation_helper.rb +81 -4
- data/app/helpers/spree/products_filters_helper.rb +168 -0
- data/app/helpers/spree/store_helper.rb +41 -0
- data/app/helpers/spree/structured_data_helper.rb +6 -2
- data/app/helpers/spree/taxons_helper.rb +2 -2
- data/app/services/spree/build_localized_redirect_url.rb +141 -0
- data/app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb +3 -3
- data/app/views/kaminari/twitter-bootstrap-4/_gap.html.erb +2 -2
- data/app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb +3 -3
- data/app/views/kaminari/twitter-bootstrap-4/_next_page.html.erb +3 -3
- data/app/views/kaminari/twitter-bootstrap-4/_page.html.erb +2 -2
- data/app/views/kaminari/twitter-bootstrap-4/_paginator.html.erb +2 -2
- data/app/views/kaminari/twitter-bootstrap-4/_prev_page.html.erb +3 -3
- data/app/views/spree/address/_form.html.erb +26 -27
- data/app/views/spree/addresses/_form.html.erb +15 -6
- data/app/views/spree/addresses/edit.html.erb +13 -8
- data/app/views/spree/addresses/new.html.erb +8 -4
- data/app/views/spree/checkout/_address.html.erb +19 -23
- data/app/views/spree/checkout/_confirm.html.erb +1 -75
- data/app/views/spree/checkout/_credit_card.html.erb +3 -2
- data/app/views/spree/checkout/_delivery.html.erb +11 -4
- data/app/views/spree/checkout/_delivery_informations.html.erb +51 -0
- data/app/views/spree/checkout/_payment.html.erb +5 -24
- data/app/views/spree/checkout/_payment_sources.html.erb +17 -0
- data/app/views/spree/checkout/_summary.html.erb +22 -19
- data/app/views/spree/checkout/edit.html.erb +22 -2
- data/app/views/spree/checkout/payment/_gateway.html.erb +2 -2
- data/app/views/spree/checkout/registration.html.erb +3 -3
- data/app/views/spree/cms_pages/show.html.erb +16 -0
- data/app/views/spree/errors/not_found.html.erb +2 -2
- data/app/views/spree/home/index.html.erb +17 -123
- data/app/views/spree/layouts/checkout.html.erb +3 -1
- data/app/views/spree/layouts/spree_application.html.erb +3 -2
- data/app/views/spree/locale/index.html.erb +1 -0
- data/app/views/spree/orders/_coupon_code.html.erb +3 -4
- data/app/views/spree/orders/_line_item.html.erb +4 -4
- data/app/views/spree/orders/_line_item_data.html.erb +3 -3
- data/app/views/spree/orders/edit.html.erb +2 -3
- data/app/views/spree/orders/show.html.erb +2 -72
- data/app/views/spree/products/_cart_form.html.erb +5 -2
- data/app/views/spree/products/_color_option_type.html.erb +14 -14
- data/app/views/spree/products/_description.html.erb +19 -14
- data/app/views/spree/products/_filters_desktop.html.erb +80 -40
- data/app/views/spree/products/_filters_mobile.html.erb +47 -15
- data/app/views/spree/products/_gallery.html.erb +4 -6
- data/app/views/spree/products/_gallery_modal.html.erb +4 -6
- data/app/views/spree/products/_option_type.html.erb +1 -3
- data/app/views/spree/products/_product.html.erb +1 -1
- data/app/views/spree/products/_properties.html.erb +6 -4
- data/app/views/spree/products/_sort_desktop.html.erb +20 -14
- data/app/views/spree/products/_sort_mobile.html.erb +24 -8
- data/app/views/spree/products/_thumbnails.html.erb +2 -2
- data/app/views/spree/products/index.html.erb +7 -4
- data/app/views/spree/products/related.html.erb +11 -5
- data/app/views/spree/products/show.html.erb +2 -3
- data/app/views/spree/shared/_breadcrumbs.html.erb +2 -2
- data/app/views/spree/shared/_carousel_4_products.html.erb +14 -20
- data/app/views/spree/shared/_cart.html.erb +1 -1
- data/app/views/spree/shared/_checkout_header.html.erb +22 -21
- data/app/views/spree/shared/_color_select.html.erb +3 -3
- data/app/views/spree/shared/_copyright.html.erb +1 -10
- data/app/views/spree/shared/_currency_dropdown.html.erb +13 -0
- data/app/views/spree/shared/_delete_address_popup.html.erb +1 -2
- data/app/views/spree/shared/_error_messages.html.erb +2 -2
- data/app/views/spree/shared/_footer.html.erb +31 -21
- data/app/views/spree/shared/_get_started.html.erb +32 -0
- data/app/views/spree/shared/_head.html.erb +8 -5
- data/app/views/spree/shared/_header.html.erb +4 -4
- data/app/views/spree/shared/_internationalization_options.html.erb +31 -0
- data/app/views/spree/shared/_line_item.html.erb +3 -3
- data/app/views/spree/shared/_link_to_account.html.erb +7 -4
- data/app/views/spree/shared/_link_to_cart.html.erb +1 -2
- data/app/views/spree/shared/_locale_and_currency.html.erb +6 -0
- data/app/views/spree/shared/_locale_dropdown.html.erb +13 -0
- data/app/views/spree/shared/_login.html.erb +5 -5
- data/app/views/spree/shared/_main_nav_bar.html.erb +69 -45
- data/app/views/spree/shared/_mobile_internationalization_options.html.erb +37 -0
- data/app/views/spree/shared/_mobile_navigation.html.erb +48 -63
- data/app/views/spree/shared/_nav_bar.html.erb +9 -19
- data/app/views/spree/shared/_no_product_available.html.erb +1 -1
- data/app/views/spree/shared/_option_values.html.erb +2 -21
- data/app/views/spree/shared/_order_details.html.erb +117 -174
- data/app/views/spree/shared/_paths.html.erb +8 -0
- data/app/views/spree/shared/_payment.html.erb +2 -2
- data/app/views/spree/shared/_payment_sources.html.erb +2 -2
- data/app/views/spree/shared/_product_added_modal.html.erb +3 -3
- data/app/views/spree/shared/_properties.html.erb +4 -0
- data/app/views/spree/shared/_quantity_select.html.erb +2 -2
- data/app/views/spree/shared/_search.html.erb +9 -13
- data/app/views/spree/shared/_translations.html.erb +8 -7
- data/app/views/spree/shared/carousel/_single.html.erb +9 -14
- data/app/views/spree/shared/carousel/_thumbnails.html.erb +35 -39
- data/app/views/spree/shared/cms/pages/_edit_mode.html.erb +13 -0
- data/app/views/spree/shared/cms/sections/_featured_article.html.erb +27 -0
- data/app/views/spree/shared/cms/sections/_hero_image.html.erb +60 -0
- data/app/views/spree/shared/cms/sections/_image_gallery.html.erb +171 -0
- data/app/views/spree/shared/cms/sections/_product_carousel.html.erb +5 -0
- data/app/views/spree/shared/cms/sections/_rich_text_content.html.erb +3 -0
- data/app/views/spree/shared/cms/sections/_side_by_side_images.html.erb +118 -0
- data/app/views/spree/taxons/_header.html.erb +7 -2
- data/app/views/spree/users/_address.html.erb +16 -24
- data/app/views/spree/users/_address_controls.html.erb +10 -0
- data/app/views/spree/users/show.html.erb +21 -16
- data/config/initializers/admin_actions.rb +18 -0
- data/config/initializers/assets.rb +4 -13
- data/config/initializers/canonical_rails.rb +1 -1
- data/config/routes.rb +30 -26
- data/lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb +1 -7
- data/lib/generators/spree/frontend/install/install_generator.rb +34 -0
- data/lib/generators/spree/frontend/install/templates/app/assets/config/manifest.js +2 -0
- data/lib/generators/spree/frontend/install/templates/vendor/assets/javascripts/spree/frontend/all.js +8 -0
- data/lib/generators/spree/frontend/install/templates/vendor/assets/stylesheets/spree/frontend/all.css +9 -0
- data/lib/spree/frontend/configuration.rb +18 -0
- data/lib/spree/frontend/engine.rb +3 -1
- data/lib/spree/frontend/version.rb +9 -0
- data/lib/spree/frontend.rb +8 -4
- data/license.md +13 -0
- data/spec/fixtures/files/store_favicon.ico +0 -0
- data/spree_frontend.gemspec +26 -14
- data/vendor/assets/javascripts/cleave.js +8 -0
- data/vendor/assets/javascripts/fetch.umd.js +531 -0
- data/vendor/assets/javascripts/jquery.payment.js +652 -0
- data/vendor/assets/javascripts/jsuri.js +458 -0
- data/vendor/assets/javascripts/polyfill.min.js +1 -0
- metadata +224 -86
- data/app/assets/images/homepage/big_category_banner.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_mobile.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_mobile.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_mobile.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/main_banner.jpg +0 -0
- data/app/assets/images/homepage/main_banner_mobile.jpg +0 -0
- data/app/assets/images/homepage/main_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/main_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_mobile.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_mobile.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_tablet_portrait.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_left-first-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_left-second-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_left-third-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-first-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-second-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-third-category.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/category_banner.jpg +0 -0
- data/app/assets/images/noimage/category_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/category_banner_plp.jpg +0 -0
- data/app/assets/images/noimage/category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/main_banner.jpg +0 -0
- data/app/assets/images/noimage/main_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/main_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/main_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/product_photo.jpg +0 -0
- data/app/assets/images/noimage/promo_banner.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_megamenu.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/spark-logo@3x.png +0 -0
- data/app/assets/stylesheets/spree/frontend/_glyphicons_urls_fix.scss +0 -10
- data/app/assets/stylesheets/spree/frontend/address_book.scss +0 -8
- data/app/models/spree/frontend_configuration.rb +0 -7
- data/app/views/spree/shared/_taxonomies.html.erb +0 -16
- /data/app/views/spree/{shared → errors}/forbidden.html.erb +0 -0
- /data/app/views/spree/{shared → errors}/unauthorized.html.erb +0 -0
@@ -11,14 +11,14 @@
|
|
11
11
|
<% options_hash = Rails.env.production? ? {autocomplete: 'off'} : {} %>
|
12
12
|
<%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(id: 'card_number', class: 'spree-flat-input cardNumber', size: 19, maxlength: 19, autocomplete: "off", placeholder: Spree.t(:card_number)) %>
|
13
13
|
<span id="card_type" style="display:none;">
|
14
|
-
( <span id="looks_like"
|
14
|
+
( <span id="looks_like"><%= Spree.t(:card_type_is) %> <span id="type"></span></span>
|
15
15
|
<span id="unrecognized"><%= Spree.t(:unrecognized_card_type) %></span>
|
16
16
|
)
|
17
17
|
</span>
|
18
18
|
</div>
|
19
19
|
<div class="payment-gateway-half-fields d-flex justify-content-between">
|
20
20
|
<div class="payment-gateway-field checkout-content-inner-field" data-hook="card_expiration">
|
21
|
-
<%= text_field_tag "#{param_prefix}[expiry]", '', id: 'card_expiry', class: 'spree-flat-input cardExpiry', placeholder: "MM
|
21
|
+
<%= text_field_tag "#{param_prefix}[expiry]", '', id: 'card_expiry', class: 'spree-flat-input cardExpiry', placeholder: "MM/YYYY" %>
|
22
22
|
</div>
|
23
23
|
<div class="payment-gateway-field checkout-content-inner-field" data-hook="card_code">
|
24
24
|
<%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(id: 'card_code', class: 'spree-flat-input cardCode', size: 5, placeholder: Spree.t(:cvv)) %>
|
@@ -15,13 +15,13 @@
|
|
15
15
|
</div>
|
16
16
|
<% path = spree.respond_to?(:update_checkout_registration_path) ? spree.update_checkout_registration_path : spree_signup_path %>
|
17
17
|
|
18
|
-
<%= form_for @order, url: path, method: :put, html: { id: 'checkout_form_registration' } do |f| %>
|
18
|
+
<%= form_for @order, url: path, method: :put, html: { id: 'checkout_form_registration', data: { turbo: false } } do |f| %>
|
19
19
|
<div class="form-group">
|
20
20
|
<p class="form-group checkout-content-inner-field">
|
21
|
-
<%= f.email_field :email, class: 'spree-flat-input', placeholder: Spree.t(:email)
|
21
|
+
<%= f.email_field :email, class: 'spree-flat-input', placeholder: Spree.t(:email) %>
|
22
22
|
</p>
|
23
23
|
</div>
|
24
|
-
<%= f.submit Spree.t(:continue_as_guest), class: 'btn btn-block btn-outline-primary spree-btn'
|
24
|
+
<%= f.submit Spree.t(:continue_as_guest), class: 'btn btn-block btn-outline-primary spree-btn' %>
|
25
25
|
<% end %>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<% if @cms_page %>
|
2
|
+
<% if simple_page?(@cms_page) %>
|
3
|
+
<div class="container">
|
4
|
+
<div class="row my-5">
|
5
|
+
<div class="col-12">
|
6
|
+
<%= @cms_page.content.html_safe %>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<% else %>
|
11
|
+
<% @cms_page.cms_sections.each do |section| %>
|
12
|
+
<%= build_section(section) %>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
16
|
+
<%= render "spree/shared/cms/pages/edit_mode", edit_mode: @edit_mode %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div class="container">
|
2
2
|
<div class="not-found-page text-center pt-5">
|
3
3
|
<h1 class="display-1 text-primary">404</h1>
|
4
|
-
<p><strong
|
5
|
-
<p
|
4
|
+
<p><strong><%= Spree.t(:page_not_found) %></strong></p>
|
5
|
+
<p><%= Spree.t(:get_back_to_the) %> <%= link_to Spree.t(:home_page), spree.root_url %></p>
|
6
6
|
</div>
|
7
7
|
</div>
|
@@ -1,128 +1,22 @@
|
|
1
|
-
<% @
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
</div>
|
13
|
-
<div>
|
14
|
-
<%= link_to Spree.t('homepage.shop_now'), spree.products_path, class: 'btn btn-primary spree-btn px-5' %>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class="container">
|
20
|
-
<div class="row">
|
21
|
-
<div class="col-6">
|
22
|
-
|
23
|
-
<div class="homepage-taxon-box mb-3">
|
24
|
-
<%= link_to spree.nested_taxons_path('men') do %>
|
25
|
-
<img class="w-100 lazyload"
|
26
|
-
data-src="<%= asset_path('homepage/category_banner_upper.jpg') %>"
|
27
|
-
data-srcset="<%= image_source_set('homepage/category_banner_upper') %>"
|
28
|
-
alt="<%= Spree.t('homepage.men')%>" />
|
29
|
-
|
30
|
-
<div class="homepage-taxon-box-text">
|
31
|
-
<h3><%= Spree.t('homepage.men') %></h3>
|
32
|
-
</div>
|
33
|
-
<% end %>
|
1
|
+
<% if @homepage %>
|
2
|
+
<% @homepage.cms_sections.each do |section| %>
|
3
|
+
<%= build_section(section) %>
|
4
|
+
<% end %>
|
5
|
+
<% else %>
|
6
|
+
<div id="missingHomepage" class="container my-5">
|
7
|
+
<div class="row my-5">
|
8
|
+
<div class="col-12">
|
9
|
+
<figure class="logo mx-auto missing-homepage-logo-container">
|
10
|
+
<%= logo %>
|
11
|
+
</figure>
|
34
12
|
</div>
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
data-src="<%= asset_path('homepage/category_banner_lower.jpg') %>"
|
40
|
-
data-srcset="<%= image_source_set('homepage/category_banner_lower') %>"
|
41
|
-
alt="<%= Spree.t('homepage.sportswear')%>" />
|
42
|
-
|
43
|
-
<div class="homepage-taxon-box-text" role="img" aria-label="<%= Spree.t('homepage.sportswear') %>">
|
44
|
-
<h3><%= Spree.t('homepage.sportswear') %></h3>
|
45
|
-
</div>
|
46
|
-
<% end %>
|
13
|
+
<div class="col-12 mb-5 text-center">
|
14
|
+
<h1 class="mb-3"><%= Spree.t('we_will_be_back') %></h1>
|
15
|
+
<h4 class="text-dark"><%= Spree.t('we_are_busy_updating', store_name: current_store.name) %></h4>
|
16
|
+
<h4 class="text-dark"><%= Spree.t('please_check_back_soon') %></h4>
|
47
17
|
</div>
|
48
|
-
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<div class="col-6 d-flex flex-column">
|
52
|
-
|
53
|
-
<div class="homepage-taxon-box flex-grow-1">
|
54
|
-
<%= link_to spree.nested_taxons_path('women') do %>
|
55
|
-
<img class="w-100 lazyload"
|
56
|
-
data-src="<%= asset_path('homepage/big_category_banner.jpg') %>"
|
57
|
-
data-srcset="<%= image_source_set('homepage/big_category_banner') %>"
|
58
|
-
alt="<%= Spree.t('homepage.women')%>" />
|
59
|
-
|
60
|
-
<div class="homepage-taxon-box-text">
|
61
|
-
<h3><%= Spree.t('homepage.women') %></h3>
|
62
|
-
</div>
|
63
|
-
<% end %>
|
64
|
-
</div>
|
65
|
-
|
66
18
|
</div>
|
67
19
|
</div>
|
68
|
-
|
69
|
-
|
70
|
-
<div data-product-carousel data-product-carousel-taxon-id='bestsellers' class="my-3"></div>
|
71
|
-
|
72
|
-
<div class="homepage-fashion-trends-box mb-3">
|
73
|
-
<div class="text-center">
|
74
|
-
<div class="homepage-fashion-trends-box-summer-text mb-1"><%= Spree.t('homepage.summer_2019') %></div>
|
75
|
-
<div class="homepage-fashion-trends-box-fashion-trends-text mb-2"><%= Spree.t('homepage.fashion_trends') %></div>
|
76
|
-
<div class="homepage-fashion-trends-box-description-text text-center mb-3">
|
77
|
-
<%= Spree.t('homepage.fashion_trends_note') %>
|
78
|
-
</div>
|
79
|
-
<%= link_to Spree.t('homepage.read_more'), spree.nested_taxons_path('trending'), class: 'btn px-5 spree-btn btn-outline-primary' %>
|
80
|
-
</div>
|
81
|
-
</div>
|
82
|
-
|
20
|
+
<% end %>
|
83
21
|
|
84
|
-
|
85
|
-
|
86
|
-
<div class="container">
|
87
|
-
<div class="row">
|
88
|
-
<div class="col-12 col-lg-6">
|
89
|
-
<%= link_to spree.nested_taxons_path('streetstyle') do %>
|
90
|
-
<div class="homepage-bottom-box text-center mb-3">
|
91
|
-
<img class="w-100 lazyload"
|
92
|
-
data-src="<%= asset_path('homepage/promo_banner_left.jpg') %>"
|
93
|
-
data-srcset="<%= image_source_set('homepage/promo_banner_left') %>"
|
94
|
-
alt="<%= Spree.t('homepage.new_collection')%>" />
|
95
|
-
|
96
|
-
<div class="homepage-bottom-box-inner" role="img" aria-label="<%= Spree.t('homepage.new_collection') %>">
|
97
|
-
<div class="homepage-bottom-box-inner-small-text">
|
98
|
-
<%= Spree.t('homepage.new_collection') %>
|
99
|
-
</div>
|
100
|
-
<div class="homepage-bottom-box-inner-big-text">
|
101
|
-
<%= Spree.t('homepage.streetstyle') %>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
</div>
|
105
|
-
<% end %>
|
106
|
-
</div>
|
107
|
-
|
108
|
-
<div class="col-12 col-lg-6">
|
109
|
-
<%= link_to spree.nested_taxons_path('summer-sale') do %>
|
110
|
-
<div class="homepage-bottom-box text-center mb-3">
|
111
|
-
<img class="w-100 lazyload"
|
112
|
-
data-src="<%= asset_path('homepage/promo_banner_right.jpg') %>"
|
113
|
-
data-srcset="<%= image_source_set('homepage/promo_banner_right') %>"
|
114
|
-
alt="<%= Spree.t('homepage.summer_sale')%>" />
|
115
|
-
|
116
|
-
<div class="homepage-bottom-box-inner">
|
117
|
-
<div class="homepage-bottom-box-inner-small-text">
|
118
|
-
<%= Spree.t('homepage.summer_sale') %>
|
119
|
-
</div>
|
120
|
-
<div class="homepage-bottom-box-inner-big-text">
|
121
|
-
<%= Spree.t('homepage.up_to_60') %>
|
122
|
-
</div>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
<% end %>
|
126
|
-
</div>
|
127
|
-
</div>
|
128
|
-
</div>
|
22
|
+
<%= render "spree/shared/cms/pages/edit_mode", edit_mode: @edit_mode %>
|
@@ -8,12 +8,13 @@
|
|
8
8
|
<%= render partial: 'spree/shared/head' %>
|
9
9
|
</head>
|
10
10
|
<body class="<%= body_class %>" id="<%= @body_id || 'default' %>" data-hook="body">
|
11
|
+
<%= render partial: 'spree/shared/get_started' %>
|
11
12
|
<%= render partial: 'spree/shared/header' %>
|
12
13
|
<div id="overlay" class="overlay hide-on-esc"></div>
|
13
14
|
|
14
15
|
<div data-hook>
|
15
|
-
|
16
|
-
|
16
|
+
<%= flash_messages %>
|
17
|
+
<main class="col-12" id="content" data-hook>
|
17
18
|
<%= yield %>
|
18
19
|
</main>
|
19
20
|
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'spree/shared/locale_dropdown' %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if promotion.nil? %>
|
2
2
|
<div class='shopping-cart-coupon-code <%= classes %>' data-hook='coupon_code'>
|
3
3
|
<div class="input-group">
|
4
|
-
<%= order_form.text_field :coupon_code, size: '30', class: 'form-control border-right-0', placeholder: Spree.t('cart_page.add_promo_code') %>
|
4
|
+
<%= order_form.text_field :coupon_code, size: '30', class: 'form-control border-right-0', placeholder: Spree.t('cart_page.add_promo_code'), aria: { label: Spree.t('cart_page.add_promo_code') } %>
|
5
5
|
<div class="input-group-append">
|
6
6
|
<%= button_tag '+', name: '', id: 'shopping-cart-coupon-code-button', class: 'btn border-left-0' %>
|
7
7
|
</div>
|
@@ -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,20 +3,20 @@
|
|
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) %> <br
|
12
|
+
<%= Spree.t(:out_of_stock) %> <br>
|
13
13
|
</span>
|
14
14
|
<% end %>
|
15
15
|
<ul class="item-details-list" data-hook="line_item_description">
|
16
16
|
<% variant.option_values.sort { |ov| ov.option_type.position }.each do |ov| %>
|
17
17
|
<li class="item-details">
|
18
18
|
<% # TODO: rework option values so options_text method can be used here %>
|
19
|
-
<%= "#{ov.option_type.presentation}: #{ov.
|
19
|
+
<%= "#{ov.option_type.presentation}: #{ov.presentation}" %>
|
20
20
|
</li>
|
21
21
|
<% end %>
|
22
22
|
</ul>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<div class="shopping-cart-item-quantity <%= additional_classes %>" data-hook="cart_item_quantity">
|
11
11
|
<div class="d-flex align-items-center">
|
12
12
|
<%= button_tag '-', type: 'button', class: "border-right-0 shopping-cart-item-quantity-decrease-btn", data: { id: dom_id(line_item) } %>
|
13
|
-
<%= item_form.number_field :quantity, min: 0, class: "form-control text-center border-left-0 border-right-0 shopping-cart-item-quantity-input", size: 5, data: { id: dom_id(line_item) } %>
|
13
|
+
<%= item_form.number_field :quantity, min: 0, class: "form-control text-center border-left-0 border-right-0 shopping-cart-item-quantity-input", size: 5, data: { id: dom_id(line_item) }, aria: { label: Spree.t('cart_page.change_quantity') } %>
|
14
14
|
<%= button_tag '+', type: 'button', class: "border-left-0 shopping-cart-item-quantity-increase-btn", data: { id: dom_id(line_item) } %>
|
15
15
|
</div>
|
16
16
|
</div>
|
@@ -22,10 +22,10 @@
|
|
22
22
|
<% end %>
|
23
23
|
|
24
24
|
<div class="shopping-cart-item-delete <%= additional_classes %>" data-hook="cart_item_delete">
|
25
|
-
<%= link_to '#', class: 'delete', id: "delete_#{dom_id(line_item)}", data: {
|
25
|
+
<%= link_to '#', class: 'delete', id: "delete_#{dom_id(line_item)}", data: { turbo: false, id: dom_id(line_item), variant_sku: line_item.sku, variant_name: line_item.name, variant_price: line_item.price, variant_options: line_item.options_text }, aria: { label: Spree.t('cart_page.remove_from_cart') } do %>
|
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">
|
@@ -13,77 +13,7 @@
|
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<p class="order-show-number text-uppercase w-100 text-center">
|
16
|
-
<%= accurate_title %> / <%= @order.completed_at
|
16
|
+
<%= accurate_title %> / <%= pretty_date(@order.completed_at) %>
|
17
17
|
</p>
|
18
|
-
|
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>
|
@@ -27,6 +27,9 @@
|
|
27
27
|
<div id="inside-product-cart-form" data-hook="inside_product_cart_form">
|
28
28
|
<% if is_product_available_in_currency %>
|
29
29
|
<div id="product-price" class="mb-2 text-center text-md-left add-to-cart-form-price" data-hook="product_price">
|
30
|
+
<% if should_display_compare_at_price?(default_variant) %>
|
31
|
+
<span class="compare-at-price mr-3"><%= display_compare_at_price(default_variant) %></span>
|
32
|
+
<% end %>
|
30
33
|
<span class="price selling" content="<%= @product_price.to_d %>">
|
31
34
|
<%= display_price(default_variant) %>
|
32
35
|
</span>
|
@@ -52,7 +55,7 @@
|
|
52
55
|
<ul id="product-variants" class="product-variants">
|
53
56
|
<% used_variants_options(@variants, @product).each_with_index do |option_type, index| %>
|
54
57
|
<li>
|
55
|
-
<% if option_type[:name]
|
58
|
+
<% if color_option_type_name.present? && color_option_type_name == option_type[:name] %>
|
56
59
|
<%= render "color_option_type", option_type: option_type, index: index %>
|
57
60
|
<% else %>
|
58
61
|
<%= render "option_type", option_type: option_type, index: index %>
|
@@ -67,7 +70,7 @@
|
|
67
70
|
|
68
71
|
<hr>
|
69
72
|
<div>
|
70
|
-
<div class="mb-5 mt-4">
|
73
|
+
<div class="mb-5 mt-4 text-center text-md-left">
|
71
74
|
<%= render 'spree/shared/quantity_select', input_name: :quantity %>
|
72
75
|
</div>
|
73
76
|
|
@@ -7,22 +7,22 @@
|
|
7
7
|
<ol class="d-flex flex-wrap product-variants-variant-values">
|
8
8
|
<% option_type[:option_values].each do |option_value| %>
|
9
9
|
<li>
|
10
|
-
<%= radio_button_tag "variant_option_value_id_#{option_type[:id]}",
|
11
|
-
option_value[:id],
|
12
|
-
option_value[:is_default] && index == 0,
|
13
|
-
class: "product-variants-variant-values-radio",
|
14
|
-
data: {
|
15
|
-
"option-type-index" => index,
|
16
|
-
"presentation" => option_value[:presentation],
|
17
|
-
"variant-id" => option_value[:variant_id],
|
18
|
-
"is-color" => true
|
19
|
-
}
|
20
|
-
%>
|
21
|
-
|
22
10
|
<%= label_tag "variant_option_value_id_#{option_type[:id]}_#{option_value[:id]}",
|
23
11
|
class: "m-1 m-sm-2 m-md-1 color-select-label",
|
24
|
-
|
25
|
-
"
|
12
|
+
title: option_value[:presentation],
|
13
|
+
data: { toggle: "tooltip", placement: "bottom" } do %>
|
14
|
+
|
15
|
+
<%= radio_button_tag "variant_option_value_id_#{option_type[:id]}",
|
16
|
+
option_value[:id],
|
17
|
+
option_value[:is_default] && index == 0,
|
18
|
+
class: "product-variants-variant-values-radio",
|
19
|
+
aria: { label: option_value[:presentation] },
|
20
|
+
data: {
|
21
|
+
"option-type-index" => index,
|
22
|
+
"presentation" => option_value[:presentation],
|
23
|
+
"variant-id" => option_value[:variant_id],
|
24
|
+
"is-color" => true
|
25
|
+
} %>
|
26
26
|
|
27
27
|
<%= render partial: "spree/shared/color_select", locals: {
|
28
28
|
color: option_value[:presentation],
|
@@ -1,17 +1,22 @@
|
|
1
1
|
<h3 class="pt-4 font-weight-bold text-uppercase product-details-subtitle"><%= Spree.t(:description) %></h3>
|
2
|
-
<div id="product-description-short" class="m-0 text-break product-description" data-hook="description">
|
3
|
-
<%= sanitize product_description(@product).truncate(450) %>
|
4
|
-
</div>
|
5
2
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<%
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
</
|
3
|
+
<% if Spree::Frontend::Config[:show_raw_product_description] || product_wysiwyg_editor_enabled? %>
|
4
|
+
<div id="product-description-long" class="m-0 text-break product-description" data-hook="description">
|
5
|
+
<%= raw product_description(@product) %>
|
6
|
+
</div>
|
7
|
+
<% else %>
|
8
|
+
<div id="product-description-short" class="m-0 text-break product-description" data-hook="short-description">
|
9
|
+
<%= sanitize product_description(@product).truncate(450) %>
|
10
|
+
</div>
|
11
|
+
<div id="product-description-long" class="m-0 text-break product-description d-none" data-hook="description">
|
12
|
+
<%= sanitize product_description(@product) %>
|
13
|
+
</div>
|
14
|
+
<% if product_description(@product).length > 450 %>
|
15
|
+
<span id="product-description-arrow" class="d-flex justify-content-center align-items-center mt-3 mx-auto product-description-arrow" aria-hidden="true">
|
16
|
+
<%= icon(name: 'arrow-right',
|
17
|
+
classes: 'spree-icon-arrow spree-icon-arrow-down',
|
18
|
+
width: 20,
|
19
|
+
height: 20) %>
|
20
|
+
</span>
|
21
|
+
<% end %>
|
17
22
|
<% end %>
|