workarea-storefront 3.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +52 -0
- data/README.md +19 -0
- data/Rakefile +23 -0
- data/app/assets/fonts/.keep +0 -0
- data/app/assets/images/workarea/core/test.jpg +0 -0
- data/app/assets/images/workarea/storefront/default_card.svg +1 -0
- data/app/assets/images/workarea/storefront/dialog_close.svg +1 -0
- data/app/assets/images/workarea/storefront/email/banner.png +0 -0
- data/app/assets/images/workarea/storefront/icons/facebook.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/google_plus.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/menu.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/pinterest.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/twitter.svg +1 -0
- data/app/assets/images/workarea/storefront/logo.png +0 -0
- data/app/assets/images/workarea/storefront/message_dismiss.svg +1 -0
- data/app/assets/images/workarea/storefront/message_error.svg +1 -0
- data/app/assets/images/workarea/storefront/message_info.svg +1 -0
- data/app/assets/images/workarea/storefront/message_success.svg +1 -0
- data/app/assets/images/workarea/storefront/message_warning.svg +1 -0
- data/app/assets/images/workarea/storefront/payment_icons/american_express.svg +1 -0
- data/app/assets/images/workarea/storefront/payment_icons/diner_s_club.svg +1 -0
- data/app/assets/images/workarea/storefront/payment_icons/discover.svg +1 -0
- data/app/assets/images/workarea/storefront/payment_icons/mastercard.svg +1 -0
- data/app/assets/images/workarea/storefront/payment_icons/visa.svg +1 -0
- data/app/assets/images/workarea/storefront/payment_method_icons.png +0 -0
- data/app/assets/images/workarea/storefront/style_guide_light_banner.png +0 -0
- data/app/assets/images/workarea/storefront/style_guide_product.jpg +0 -0
- data/app/assets/javascripts/jquery_ui/storefront/categorized_autocomplete.js +53 -0
- data/app/assets/javascripts/workarea/storefront/application.js.erb +162 -0
- data/app/assets/javascripts/workarea/storefront/config.js.erb +153 -0
- data/app/assets/javascripts/workarea/storefront/head.js.erb +18 -0
- data/app/assets/javascripts/workarea/storefront/modules/address_region_fields.js +91 -0
- data/app/assets/javascripts/workarea/storefront/modules/admin_toolbar.js +105 -0
- data/app/assets/javascripts/workarea/storefront/modules/alternate_image_buttons.js +78 -0
- data/app/assets/javascripts/workarea/storefront/modules/analytics.js +285 -0
- data/app/assets/javascripts/workarea/storefront/modules/authenticity_token.js +27 -0
- data/app/assets/javascripts/workarea/storefront/modules/back_to_top_button.js +47 -0
- data/app/assets/javascripts/workarea/storefront/modules/break_points.js +67 -0
- data/app/assets/javascripts/workarea/storefront/modules/cart_count.js +51 -0
- data/app/assets/javascripts/workarea/storefront/modules/checkout_addresses_forms.js +222 -0
- data/app/assets/javascripts/workarea/storefront/modules/checkout_primary_payments.js +66 -0
- data/app/assets/javascripts/workarea/storefront/modules/checkout_shipping_services.js +53 -0
- data/app/assets/javascripts/workarea/storefront/modules/current_user.js +28 -0
- data/app/assets/javascripts/workarea/storefront/modules/dialog.js +284 -0
- data/app/assets/javascripts/workarea/storefront/modules/dialog_buttons.js +78 -0
- data/app/assets/javascripts/workarea/storefront/modules/dialog_close_buttons.js +29 -0
- data/app/assets/javascripts/workarea/storefront/modules/dialog_forms.js +47 -0
- data/app/assets/javascripts/workarea/storefront/modules/forms.js +94 -0
- data/app/assets/javascripts/workarea/storefront/modules/loading.js +81 -0
- data/app/assets/javascripts/workarea/storefront/modules/log_out_link_placeholders.js +36 -0
- data/app/assets/javascripts/workarea/storefront/modules/messages.js +179 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_filter_buttons.js +87 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +100 -0
- data/app/assets/javascripts/workarea/storefront/modules/option_buttons.js +40 -0
- data/app/assets/javascripts/workarea/storefront/modules/optional_fields.js +49 -0
- data/app/assets/javascripts/workarea/storefront/modules/pagination.js +284 -0
- data/app/assets/javascripts/workarea/storefront/modules/popup_buttons.js +42 -0
- data/app/assets/javascripts/workarea/storefront/modules/primary_nav_content.js +77 -0
- data/app/assets/javascripts/workarea/storefront/modules/product_details_sku_selects.js +94 -0
- data/app/assets/javascripts/workarea/storefront/modules/recent_views.js +25 -0
- data/app/assets/javascripts/workarea/storefront/modules/recommendations_placeholders.js +33 -0
- data/app/assets/javascripts/workarea/storefront/modules/scroll_to_buttons.js +37 -0
- data/app/assets/javascripts/workarea/storefront/modules/search_fields.js +59 -0
- data/app/assets/javascripts/workarea/storefront/modules/single_submit_forms.js +35 -0
- data/app/assets/javascripts/workarea/storefront/modules/traffic_referrer.js +33 -0
- data/app/assets/javascripts/workarea/storefront/modules/workarea_analytics.js +54 -0
- data/app/assets/javascripts/workarea/storefront/routes.js.erb +16 -0
- data/app/assets/javascripts/workarea/storefront/serviceworkers/pwa_cache.js.erb +31 -0
- data/app/assets/javascripts/workarea/storefront/serviceworkers/register_pwa_cache.js +5 -0
- data/app/assets/javascripts/workarea/storefront/templates/authenticity_token.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/back_to_top_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/templates/button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/templates/loading.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/message.jst.ejs +10 -0
- data/app/assets/javascripts/workarea/storefront/templates/message_dismiss_action.jst.ejs +5 -0
- data/app/assets/javascripts/workarea/storefront/templates/mobile_filters_nav_close_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/templates/optional_field_prompt.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/page_header_cart_count.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/pagination_button.jst.ejs +11 -0
- data/app/assets/javascripts/workarea/storefront/templates/same_as_shipping_button_property.jst.ejs +8 -0
- data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +21 -0
- data/app/assets/javascripts/workarea/storefront/templates/ui_menu_heading.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/ui_menu_item.jst.ejs +8 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss +17 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +158 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_helper_hidden_accessible.scss +7 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss +40 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_state_focus.scss +10 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_widget_overlay.scss +11 -0
- data/app/assets/stylesheets/workarea/storefront/application.scss.erb +138 -0
- data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +113 -0
- data/app/assets/stylesheets/workarea/storefront/base/_images.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/base/_lists.scss +8 -0
- data/app/assets/stylesheets/workarea/storefront/base/_page.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/base/_tables.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/components/_admin_toolbar.scss +34 -0
- data/app/assets/stylesheets/workarea/storefront/components/_back_to_top_button.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/components/_box.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button.scss +47 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button_content_block.scss +9 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +40 -0
- data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_category_summary_content_block.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +17 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +48 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +42 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +11 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_content_block.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +68 -0
- data/app/assets/stylesheets/workarea/storefront/components/_divider_content_block.scss +38 -0
- data/app/assets/stylesheets/workarea/storefront/components/_email_signup.scss +9 -0
- data/app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss +77 -0
- data/app/assets/stylesheets/workarea/storefront/components/_html_content_block.scss +5 -0
- data/app/assets/stylesheets/workarea/storefront/components/_image_and_text_content_block.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_image_content_block.scss +16 -0
- data/app/assets/stylesheets/workarea/storefront/components/_image_group_content_block.scss +9 -0
- data/app/assets/stylesheets/workarea/storefront/components/_inline_form.scss +11 -0
- data/app/assets/stylesheets/workarea/storefront/components/_loading.scss +92 -0
- data/app/assets/stylesheets/workarea/storefront/components/_message.scss +120 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters.scss +25 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters_nav.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +67 -0
- data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_summary.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_container.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +79 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_messages.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +9 -0
- data/app/assets/stylesheets/workarea/storefront/components/_payment_icon.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_personalized_recommendations_content_block.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +54 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +13 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +84 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_insights_content_block.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +160 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list_content_block.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +53 -0
- data/app/assets/stylesheets/workarea/storefront/components/_property.scss +67 -0
- data/app/assets/stylesheets/workarea/storefront/components/_quote_content_block.scss +38 -0
- data/app/assets/stylesheets/workarea/storefront/components/_recent_views.scss +28 -0
- data/app/assets/stylesheets/workarea/storefront/components/_recommendations.scss +9 -0
- data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/components/_search_no_results.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_search_results.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/components/_secondary_nav.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/components/_sitemap.scss +9 -0
- data/app/assets/stylesheets/workarea/storefront/components/_sitemap_pagination.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/components/_social_networks_content_block.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/components/_style_guide.scss +140 -0
- data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_table.scss +50 -0
- data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +87 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +17 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_content_block.scss +5 -0
- data/app/assets/stylesheets/workarea/storefront/components/_value.scss +46 -0
- data/app/assets/stylesheets/workarea/storefront/components/_video_and_text_content_block.scss +44 -0
- data/app/assets/stylesheets/workarea/storefront/components/_video_content_block.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_view.scss +12 -0
- data/app/assets/stylesheets/workarea/storefront/email.scss +4 -0
- data/app/assets/stylesheets/workarea/storefront/email/_base.scss +52 -0
- data/app/assets/stylesheets/workarea/storefront/email/_components.scss +91 -0
- data/app/assets/stylesheets/workarea/storefront/email/_helpers.scss +69 -0
- data/app/assets/stylesheets/workarea/storefront/email/_settings.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_box_sizing.scss +20 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss +24 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_reset.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_button_reset.scss +17 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_content_preview_visibility.scss +93 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_content_wrapper.scss +18 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_inline_list.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_list_reset.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_text_field_reset.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_breakpoints.scss.erb +8 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +25 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_grid.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +18 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_center.scss +34 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_respond_to.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_svg.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_break_word.scss +9 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_clearfix.scss +13 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_hidden.scss +71 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_hidden_if_js_enabled.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_image_replacement.scss +11 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_truncate.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_visible.scss +70 -0
- data/app/assets/stylesheets/workarea/storefront/trumps/_visually_hidden.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_align.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +62 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +26 -0
- data/app/controllers/workarea/storefront/analytics_controller.rb +45 -0
- data/app/controllers/workarea/storefront/application_controller.rb +50 -0
- data/app/controllers/workarea/storefront/cart_items_controller.rb +99 -0
- data/app/controllers/workarea/storefront/carts_controller.rb +61 -0
- data/app/controllers/workarea/storefront/categories_controller.rb +11 -0
- data/app/controllers/workarea/storefront/check_inventory.rb +10 -0
- data/app/controllers/workarea/storefront/check_pricing_override.rb +17 -0
- data/app/controllers/workarea/storefront/checkout/addresses_controller.rb +58 -0
- data/app/controllers/workarea/storefront/checkout/payment_controller.rb +21 -0
- data/app/controllers/workarea/storefront/checkout/place_order_controller.rb +65 -0
- data/app/controllers/workarea/storefront/checkout/shipping_controller.rb +53 -0
- data/app/controllers/workarea/storefront/checkouts_controller.rb +102 -0
- data/app/controllers/workarea/storefront/contacts_controller.rb +28 -0
- data/app/controllers/workarea/storefront/content_areas_controller.rb +15 -0
- data/app/controllers/workarea/storefront/content_blocks_controller.rb +51 -0
- data/app/controllers/workarea/storefront/current_checkout.rb +114 -0
- data/app/controllers/workarea/storefront/email_signups_controller.rb +19 -0
- data/app/controllers/workarea/storefront/errors_controller.rb +58 -0
- data/app/controllers/workarea/storefront/http_caching.rb +33 -0
- data/app/controllers/workarea/storefront/menus_controller.rb +25 -0
- data/app/controllers/workarea/storefront/order_lookup.rb +20 -0
- data/app/controllers/workarea/storefront/orders_controller.rb +29 -0
- data/app/controllers/workarea/storefront/pages_controller.rb +23 -0
- data/app/controllers/workarea/storefront/products_controller.rb +25 -0
- data/app/controllers/workarea/storefront/recent_views_controller.rb +51 -0
- data/app/controllers/workarea/storefront/recommendations_controller.rb +11 -0
- data/app/controllers/workarea/storefront/searches_controller.rb +47 -0
- data/app/controllers/workarea/storefront/sitemaps_controller.rb +11 -0
- data/app/controllers/workarea/storefront/style_guides_controller.rb +6 -0
- data/app/controllers/workarea/storefront/user_activity.rb +17 -0
- data/app/controllers/workarea/storefront/users/accounts_controller.rb +91 -0
- data/app/controllers/workarea/storefront/users/addresses_controller.rb +49 -0
- data/app/controllers/workarea/storefront/users/credit_cards_controller.rb +75 -0
- data/app/controllers/workarea/storefront/users/logins_controller.rb +47 -0
- data/app/controllers/workarea/storefront/users/orders_controller.rb +30 -0
- data/app/controllers/workarea/storefront/users/passwords_controller.rb +65 -0
- data/app/helpers/workarea/storefront/admin_helper.rb +13 -0
- data/app/helpers/workarea/storefront/analytics_helper.rb +230 -0
- data/app/helpers/workarea/storefront/application_helper.rb +79 -0
- data/app/helpers/workarea/storefront/content_helper.rb +71 -0
- data/app/helpers/workarea/storefront/credit_cards_helper.rb +38 -0
- data/app/helpers/workarea/storefront/favicons_helper.rb +25 -0
- data/app/helpers/workarea/storefront/locales_helper.rb +27 -0
- data/app/helpers/workarea/storefront/navigation_helper.rb +97 -0
- data/app/helpers/workarea/storefront/pagination_helper.rb +22 -0
- data/app/helpers/workarea/storefront/products_helper.rb +43 -0
- data/app/helpers/workarea/storefront/recent_views_helper.rb +9 -0
- data/app/helpers/workarea/storefront/users_helper.rb +9 -0
- data/app/mailers/workarea/storefront/account_mailer.rb +21 -0
- data/app/mailers/workarea/storefront/application_mailer.rb +23 -0
- data/app/mailers/workarea/storefront/fulfillment_mailer.rb +47 -0
- data/app/mailers/workarea/storefront/inquiry_mailer.rb +10 -0
- data/app/mailers/workarea/storefront/order_mailer.rb +31 -0
- data/app/mailers/workarea/storefront/payment_mailer.rb +23 -0
- data/app/mailers/workarea/storefront/transactional_mailer.rb +17 -0
- data/app/view_models/workarea/storefront/cart_item_view_model.rb +11 -0
- data/app/view_models/workarea/storefront/cart_recommendations_view_model.rb +13 -0
- data/app/view_models/workarea/storefront/cart_view_model.rb +95 -0
- data/app/view_models/workarea/storefront/category_view_model.rb +119 -0
- data/app/view_models/workarea/storefront/checkout/addresses_view_model.rb +73 -0
- data/app/view_models/workarea/storefront/checkout/confirmation_view_model.rb +14 -0
- data/app/view_models/workarea/storefront/checkout/payment_view_model.rb +103 -0
- data/app/view_models/workarea/storefront/checkout/shipping_view_model.rb +13 -0
- data/app/view_models/workarea/storefront/checkout/summary_view_model.rb +89 -0
- data/app/view_models/workarea/storefront/checkout_content.rb +11 -0
- data/app/view_models/workarea/storefront/content_block_view_model.rb +62 -0
- data/app/view_models/workarea/storefront/content_blocks/category_summary_view_model.rb +52 -0
- data/app/view_models/workarea/storefront/content_blocks/hero_view_model.rb +23 -0
- data/app/view_models/workarea/storefront/content_blocks/image_group_view_model.rb +24 -0
- data/app/view_models/workarea/storefront/content_blocks/navigation_view_model.rb +32 -0
- data/app/view_models/workarea/storefront/content_blocks/product_insights_view_model.rb +46 -0
- data/app/view_models/workarea/storefront/content_blocks/product_list_view_model.rb +20 -0
- data/app/view_models/workarea/storefront/content_blocks/taxonomy_view_model.rb +17 -0
- data/app/view_models/workarea/storefront/content_blocks/video_view_model.rb +58 -0
- data/app/view_models/workarea/storefront/content_view_model.rb +11 -0
- data/app/view_models/workarea/storefront/credit_card_view_model.rb +7 -0
- data/app/view_models/workarea/storefront/detail_page_recommendations_view_model.rb +13 -0
- data/app/view_models/workarea/storefront/display_content.rb +56 -0
- data/app/view_models/workarea/storefront/email_recommendations_view_model.rb +13 -0
- data/app/view_models/workarea/storefront/email_signups_view_model.rb +18 -0
- data/app/view_models/workarea/storefront/fulfillment_item_view_model.rb +13 -0
- data/app/view_models/workarea/storefront/inquiry_view_model.rb +22 -0
- data/app/view_models/workarea/storefront/inventory_status_view_model.rb +27 -0
- data/app/view_models/workarea/storefront/menu_view_model.rb +7 -0
- data/app/view_models/workarea/storefront/option_set_view_model.rb +59 -0
- data/app/view_models/workarea/storefront/order_item_view_model.rb +83 -0
- data/app/view_models/workarea/storefront/order_pricing.rb +37 -0
- data/app/view_models/workarea/storefront/order_view_model.rb +144 -0
- data/app/view_models/workarea/storefront/package_view_model.rb +20 -0
- data/app/view_models/workarea/storefront/page_view_model.rb +11 -0
- data/app/view_models/workarea/storefront/pagination.rb +42 -0
- data/app/view_models/workarea/storefront/personalized_recommendations_view_model.rb +13 -0
- data/app/view_models/workarea/storefront/product_browsing.rb +33 -0
- data/app/view_models/workarea/storefront/product_templates/option_selects_view_model.rb +7 -0
- data/app/view_models/workarea/storefront/product_templates/option_thumbnails_view_model.rb +15 -0
- data/app/view_models/workarea/storefront/product_view_model.rb +183 -0
- data/app/view_models/workarea/storefront/product_view_model/cache_key.rb +44 -0
- data/app/view_models/workarea/storefront/product_view_model/image_collection.rb +58 -0
- data/app/view_models/workarea/storefront/product_view_model/option.rb +24 -0
- data/app/view_models/workarea/storefront/product_view_model/option_set.rb +97 -0
- data/app/view_models/workarea/storefront/product_view_model/sku_options.rb +53 -0
- data/app/view_models/workarea/storefront/recommendations_view_model.rb +39 -0
- data/app/view_models/workarea/storefront/refund_view_model.rb +16 -0
- data/app/view_models/workarea/storefront/search_content.rb +19 -0
- data/app/view_models/workarea/storefront/search_customization_content.rb +15 -0
- data/app/view_models/workarea/storefront/search_customization_view_model.rb +7 -0
- data/app/view_models/workarea/storefront/search_suggestion_view_model.rb +87 -0
- data/app/view_models/workarea/storefront/search_view_model.rb +50 -0
- data/app/view_models/workarea/storefront/shipping_view_model.rb +27 -0
- data/app/view_models/workarea/storefront/taxon_lookup.rb +37 -0
- data/app/view_models/workarea/storefront/user_activity_view_model.rb +41 -0
- data/app/view_models/workarea/storefront/user_view_model.rb +55 -0
- data/app/views/layouts/workarea/storefront/application.html.haml +175 -0
- data/app/views/layouts/workarea/storefront/checkout.html.haml +89 -0
- data/app/views/layouts/workarea/storefront/content_preview.html.haml +46 -0
- data/app/views/layouts/workarea/storefront/email.html.haml +193 -0
- data/app/views/layouts/workarea/storefront/empty.html.haml +48 -0
- data/app/views/layouts/workarea/storefront/navigation.html.haml +48 -0
- data/app/views/workarea/storefront/account_mailer/creation.html.haml +15 -0
- data/app/views/workarea/storefront/account_mailer/password_reset.html.haml +12 -0
- data/app/views/workarea/storefront/cart_items/create.html.haml +71 -0
- data/app/views/workarea/storefront/carts/_pricing.html.haml +14 -0
- data/app/views/workarea/storefront/carts/show.html.haml +183 -0
- data/app/views/workarea/storefront/categories/show.html.haml +103 -0
- data/app/views/workarea/storefront/checkouts/_checkout_progress.html.haml +6 -0
- data/app/views/workarea/storefront/checkouts/_summary.html.haml +102 -0
- data/app/views/workarea/storefront/checkouts/addresses.html.haml +56 -0
- data/app/views/workarea/storefront/checkouts/confirmation.html.haml +37 -0
- data/app/views/workarea/storefront/checkouts/payment.html.haml +184 -0
- data/app/views/workarea/storefront/checkouts/shipping.html.haml +39 -0
- data/app/views/workarea/storefront/checkouts/summary.html.haml +1 -0
- data/app/views/workarea/storefront/contacts/show.html.haml +41 -0
- data/app/views/workarea/storefront/content_areas/show.html.haml +6 -0
- data/app/views/workarea/storefront/content_blocks/_button.html.haml +5 -0
- data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +15 -0
- data/app/views/workarea/storefront/content_blocks/_divider.html.haml +2 -0
- data/app/views/workarea/storefront/content_blocks/_hero.html.haml +3 -0
- data/app/views/workarea/storefront/content_blocks/_html.html.haml +1 -0
- data/app/views/workarea/storefront/content_blocks/_image.html.haml +2 -0
- data/app/views/workarea/storefront/content_blocks/_image_and_text.html.haml +4 -0
- data/app/views/workarea/storefront/content_blocks/_image_group.html.haml +10 -0
- data/app/views/workarea/storefront/content_blocks/_product_insights.html.haml +10 -0
- data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +10 -0
- data/app/views/workarea/storefront/content_blocks/_quote.html.haml +4 -0
- data/app/views/workarea/storefront/content_blocks/_recommendations.html.haml +1 -0
- data/app/views/workarea/storefront/content_blocks/_social_networks.html.haml +17 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy.html.haml +27 -0
- data/app/views/workarea/storefront/content_blocks/_text.html.haml +1 -0
- data/app/views/workarea/storefront/content_blocks/_three_column_taxonomy.html.haml +28 -0
- data/app/views/workarea/storefront/content_blocks/_two_column_taxonomy.html.haml +28 -0
- data/app/views/workarea/storefront/content_blocks/_video.html.haml +2 -0
- data/app/views/workarea/storefront/content_blocks/_video_and_text.html.haml +4 -0
- data/app/views/workarea/storefront/content_blocks/show.html.haml +1 -0
- data/app/views/workarea/storefront/email_signups/show.html.haml +12 -0
- data/app/views/workarea/storefront/errors/show.html.haml +12 -0
- data/app/views/workarea/storefront/facets/_range.html.haml +11 -0
- data/app/views/workarea/storefront/facets/_terms.html.haml +11 -0
- data/app/views/workarea/storefront/favicons/_tags.html.haml +8 -0
- data/app/views/workarea/storefront/fulfillment_mailer/canceled.html.haml +34 -0
- data/app/views/workarea/storefront/fulfillment_mailer/shipped.html.haml +92 -0
- data/app/views/workarea/storefront/inquiry_mailer/created.html.haml +27 -0
- data/app/views/workarea/storefront/mailers/_recommendations.html.haml +22 -0
- data/app/views/workarea/storefront/menus/index.html.haml +12 -0
- data/app/views/workarea/storefront/menus/show.html.haml +6 -0
- data/app/views/workarea/storefront/order_mailer/_summary.html.haml +209 -0
- data/app/views/workarea/storefront/order_mailer/confirmation.html.haml +15 -0
- data/app/views/workarea/storefront/order_mailer/reminder.html.haml +34 -0
- data/app/views/workarea/storefront/order_mailer/tenders/_credit_card.html.haml +4 -0
- data/app/views/workarea/storefront/order_mailer/tenders/_store_credit.html.haml +2 -0
- data/app/views/workarea/storefront/orders/_summary.html.haml +274 -0
- data/app/views/workarea/storefront/orders/index.html.haml +40 -0
- data/app/views/workarea/storefront/orders/show.html.haml +16 -0
- data/app/views/workarea/storefront/orders/tenders/_credit_card.html.haml +9 -0
- data/app/views/workarea/storefront/orders/tenders/_store_credit.html.haml +6 -0
- data/app/views/workarea/storefront/pages/accessibility.html.haml +53 -0
- data/app/views/workarea/storefront/pages/browser_config.xml.builder +9 -0
- data/app/views/workarea/storefront/pages/home_page.html.haml +20 -0
- data/app/views/workarea/storefront/pages/robots.text.erb +17 -0
- data/app/views/workarea/storefront/pages/show.html.haml +28 -0
- data/app/views/workarea/storefront/pages/templates/_generic.html.haml +1 -0
- data/app/views/workarea/storefront/pages/templates/_test.html.haml +1 -0
- data/app/views/workarea/storefront/pages/web_manifest.json.jbuilder +11 -0
- data/app/views/workarea/storefront/payment_mailer/refunded.html.haml +13 -0
- data/app/views/workarea/storefront/products/_price.html.haml +4 -0
- data/app/views/workarea/storefront/products/_pricing.html.haml +34 -0
- data/app/views/workarea/storefront/products/_summary.html.haml +12 -0
- data/app/views/workarea/storefront/products/details.html.haml +2 -0
- data/app/views/workarea/storefront/products/show.html.haml +48 -0
- data/app/views/workarea/storefront/products/templates/_generic.html.haml +69 -0
- data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +70 -0
- data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +76 -0
- data/app/views/workarea/storefront/products/templates/_test.html.haml +1 -0
- data/app/views/workarea/storefront/recent_views/aside.html.haml +25 -0
- data/app/views/workarea/storefront/recent_views/narrow.html.haml +25 -0
- data/app/views/workarea/storefront/recent_views/show.html.haml +27 -0
- data/app/views/workarea/storefront/recommendations/show.html.haml +12 -0
- data/app/views/workarea/storefront/searches/index.json.jbuilder +1 -0
- data/app/views/workarea/storefront/searches/no_results.html.haml +31 -0
- data/app/views/workarea/storefront/searches/show.html.haml +99 -0
- data/app/views/workarea/storefront/shared/_address_fields.html.haml +105 -0
- data/app/views/workarea/storefront/shared/_left_navigation.html.haml +24 -0
- data/app/views/workarea/storefront/shared/_message.html.haml +4 -0
- data/app/views/workarea/storefront/sitemaps/_pagination.html.haml +37 -0
- data/app/views/workarea/storefront/sitemaps/show.html.haml +36 -0
- data/app/views/workarea/storefront/style_guides/_navigation.html.haml +11 -0
- data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +82 -0
- data/app/views/workarea/storefront/style_guides/base/_tables.html.haml +63 -0
- data/app/views/workarea/storefront/style_guides/components/_box.html.haml +26 -0
- data/app/views/workarea/storefront/style_guides/components/_breadcrumbs.html.haml +12 -0
- data/app/views/workarea/storefront/style_guides/components/_button.html.haml +50 -0
- data/app/views/workarea/storefront/style_guides/components/_button_content_block.html.haml +20 -0
- data/app/views/workarea/storefront/style_guides/components/_button_property.html.haml +83 -0
- data/app/views/workarea/storefront/style_guides/components/_category_summary_content_block.html.haml +29 -0
- data/app/views/workarea/storefront/style_guides/components/_data_card.html.haml +215 -0
- data/app/views/workarea/storefront/style_guides/components/_divider_content_block.html.haml +40 -0
- data/app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml +29 -0
- data/app/views/workarea/storefront/style_guides/components/_html_content_block.html.haml +10 -0
- data/app/views/workarea/storefront/style_guides/components/_image_and_text_content_block.html.haml +28 -0
- data/app/views/workarea/storefront/style_guides/components/_image_content_block.html.haml +38 -0
- data/app/views/workarea/storefront/style_guides/components/_image_group_content_block.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/components/_inline_form.html.haml +18 -0
- data/app/views/workarea/storefront/style_guides/components/_loading.html.haml +106 -0
- data/app/views/workarea/storefront/style_guides/components/_message.html.haml +45 -0
- data/app/views/workarea/storefront/style_guides/components/_mobile_filters.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/components/_pagination.html.haml +24 -0
- data/app/views/workarea/storefront/style_guides/components/_payment_icon.html.haml +19 -0
- data/app/views/workarea/storefront/style_guides/components/_personalized_recommendations_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_product_insights_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_product_list.html.haml +302 -0
- data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_product_prices.html.haml +79 -0
- data/app/views/workarea/storefront/style_guides/components/_product_summary.html.haml +35 -0
- data/app/views/workarea/storefront/style_guides/components/_property.html.haml +93 -0
- data/app/views/workarea/storefront/style_guides/components/_quote_content_block.html.haml +18 -0
- data/app/views/workarea/storefront/style_guides/components/_recommendations.html.haml +34 -0
- data/app/views/workarea/storefront/style_guides/components/_social_networks_content_block.html.haml +20 -0
- data/app/views/workarea/storefront/style_guides/components/_svg_icon.html.haml +51 -0
- data/app/views/workarea/storefront/style_guides/components/_table.html.haml +112 -0
- data/app/views/workarea/storefront/style_guides/components/_taxonomy_content_block.html.haml +205 -0
- data/app/views/workarea/storefront/style_guides/components/_text_box.html.haml +73 -0
- data/app/views/workarea/storefront/style_guides/components/_text_button.html.haml +26 -0
- data/app/views/workarea/storefront/style_guides/components/_text_content_block.html.haml +10 -0
- data/app/views/workarea/storefront/style_guides/components/_ui_autocomplete.html.haml +11 -0
- data/app/views/workarea/storefront/style_guides/components/_ui_dialog.html.haml +5 -0
- data/app/views/workarea/storefront/style_guides/components/_ui_dialog_image.html.haml +5 -0
- data/app/views/workarea/storefront/style_guides/components/_ui_helper_hidden_accessible.html.haml +6 -0
- data/app/views/workarea/storefront/style_guides/components/_value.html.haml +70 -0
- data/app/views/workarea/storefront/style_guides/components/_video_and_text_content_block.html.haml +21 -0
- data/app/views/workarea/storefront/style_guides/components/_video_content_block.html.haml +11 -0
- data/app/views/workarea/storefront/style_guides/index.html.haml +87 -0
- data/app/views/workarea/storefront/style_guides/objects/_button_reset.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/objects/_inline_list.html.haml +20 -0
- data/app/views/workarea/storefront/style_guides/objects/_list_reset.html.haml +20 -0
- data/app/views/workarea/storefront/style_guides/objects/_text_field_reset.html.haml +11 -0
- data/app/views/workarea/storefront/style_guides/settings/_color_variables.html.haml +21 -0
- data/app/views/workarea/storefront/style_guides/show.html.haml +10 -0
- data/app/views/workarea/storefront/style_guides/trumps/_break_word.html.haml +15 -0
- data/app/views/workarea/storefront/style_guides/trumps/_clearfix.html.haml +21 -0
- data/app/views/workarea/storefront/style_guides/trumps/_hidden.html.haml +97 -0
- data/app/views/workarea/storefront/style_guides/trumps/_hidden_if_js_enabled.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/trumps/_image_replacement.html.haml +13 -0
- data/app/views/workarea/storefront/style_guides/trumps/_truncate.html.haml +13 -0
- data/app/views/workarea/storefront/style_guides/trumps/_visible.html.haml +97 -0
- data/app/views/workarea/storefront/style_guides/trumps/_visually_hidden.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/typography/_align.html.haml +25 -0
- data/app/views/workarea/storefront/style_guides/typography/_fonts.html.haml +9 -0
- data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +25 -0
- data/app/views/workarea/storefront/style_guides/typography/_links.html.haml +13 -0
- data/app/views/workarea/storefront/style_guides/typography/_text.html.haml +23 -0
- data/app/views/workarea/storefront/users/accounts/edit.html.haml +42 -0
- data/app/views/workarea/storefront/users/accounts/show.html.haml +118 -0
- data/app/views/workarea/storefront/users/addresses/edit.html.haml +24 -0
- data/app/views/workarea/storefront/users/addresses/new.html.haml +24 -0
- data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +65 -0
- data/app/views/workarea/storefront/users/credit_cards/new.html.haml +58 -0
- data/app/views/workarea/storefront/users/current_user.json.jbuilder +8 -0
- data/app/views/workarea/storefront/users/logins/new.html.haml +51 -0
- data/app/views/workarea/storefront/users/orders/_summary.html.haml +23 -0
- data/app/views/workarea/storefront/users/orders/index.html.haml +21 -0
- data/app/views/workarea/storefront/users/orders/show.html.haml +19 -0
- data/app/views/workarea/storefront/users/passwords/change.html.haml +21 -0
- data/app/views/workarea/storefront/users/passwords/edit.html.haml +13 -0
- data/app/views/workarea/storefront/users/passwords/new.html.haml +24 -0
- data/bin/rails +18 -0
- data/config/locales/en.yml +403 -0
- data/config/routes.rb +110 -0
- data/lib/workarea/mailer_previews/storefront/account_mailer_preview.rb +16 -0
- data/lib/workarea/mailer_previews/storefront/fulfillment_mailer_preview.rb +27 -0
- data/lib/workarea/mailer_previews/storefront/inquiry_mailer_preview.rb +9 -0
- data/lib/workarea/mailer_previews/storefront/order_mailer_preview.rb +16 -0
- data/lib/workarea/mailer_previews/storefront/payment_mailer_preview.rb +9 -0
- data/lib/workarea/storefront.rb +7 -0
- data/lib/workarea/storefront/engine.rb +8 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +5 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +22 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +51 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +43 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +17 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/workarea.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +8 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +10 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +1 -0
- data/test/helpers/workarea/storefront/application_helper_test.rb +25 -0
- data/test/helpers/workarea/storefront/content_helper_test.rb +50 -0
- data/test/helpers/workarea/storefront/credit_cards_helper_test.rb +29 -0
- data/test/helpers/workarea/storefront/navigation_helper_test.rb +85 -0
- data/test/helpers/workarea/storefront/pagination_helper_test.rb +27 -0
- data/test/helpers/workarea/storefront/products_helper_test.rb +43 -0
- data/test/integration/workarea/storefront/accounts_integration_test.rb +128 -0
- data/test/integration/workarea/storefront/analytics_integration_test.rb +32 -0
- data/test/integration/workarea/storefront/browse_images_integration_test.rb +71 -0
- data/test/integration/workarea/storefront/cart_integration_test.rb +109 -0
- data/test/integration/workarea/storefront/cart_items_integration_test.rb +330 -0
- data/test/integration/workarea/storefront/categories_integration_test.rb +21 -0
- data/test/integration/workarea/storefront/checkout_side_effects_integration_test.rb +214 -0
- data/test/integration/workarea/storefront/checkout_with_pricing_override_integration_test.rb +168 -0
- data/test/integration/workarea/storefront/checkouts_integration_test.rb +267 -0
- data/test/integration/workarea/storefront/contact_form_integration_test.rb +33 -0
- data/test/integration/workarea/storefront/content_blocks_integration_test.rb +71 -0
- data/test/integration/workarea/storefront/current_checkout_integration_test.rb +30 -0
- data/test/integration/workarea/storefront/current_user_integration_test.rb +28 -0
- data/test/integration/workarea/storefront/email_signups_integration_test.rb +25 -0
- data/test/integration/workarea/storefront/errors_integration_test.rb +137 -0
- data/test/integration/workarea/storefront/favicons_integration_test.rb +16 -0
- data/test/integration/workarea/storefront/guest_browsing_integration_test.rb +24 -0
- data/test/integration/workarea/storefront/head_tags_integration_test.rb +127 -0
- data/test/integration/workarea/storefront/health_check_integration_test.rb +13 -0
- data/test/integration/workarea/storefront/host_integration_test.rb +32 -0
- data/test/integration/workarea/storefront/impersonations_integration_test.rb +128 -0
- data/test/integration/workarea/storefront/layout_integration_test.rb +29 -0
- data/test/integration/workarea/storefront/login_integration_test.rb +157 -0
- data/test/integration/workarea/storefront/order_data_integration_test.rb +264 -0
- data/test/integration/workarea/storefront/order_lookup_integration_test.rb +117 -0
- data/test/integration/workarea/storefront/pages_integration_test.rb +56 -0
- data/test/integration/workarea/storefront/place_order_integration_test.rb +140 -0
- data/test/integration/workarea/storefront/placing_order_integration_test.rb +92 -0
- data/test/integration/workarea/storefront/products_integration_test.rb +36 -0
- data/test/integration/workarea/storefront/search_integration_test.rb +128 -0
- data/test/integration/workarea/storefront/store_credit_integration_test.rb +121 -0
- data/test/integration/workarea/storefront/users/addresses_integration_test.rb +136 -0
- data/test/integration/workarea/storefront/users/credit_cards_integration_test.rb +96 -0
- data/test/integration/workarea/storefront/users/orders_integration_test.rb +15 -0
- data/test/integration/workarea/storefront/users/passwords_integration_test.rb +48 -0
- data/test/javascripts/address_region_fields_spec.js +46 -0
- data/test/javascripts/analytics_spec.js +91 -0
- data/test/javascripts/authenticity_token_spec.js +26 -0
- data/test/javascripts/back_to_top_button_spec.js +41 -0
- data/test/javascripts/break_points_spec.js +41 -0
- data/test/javascripts/checkout_primary_payments_spec.js +32 -0
- data/test/javascripts/dialog_spec.js +347 -0
- data/test/javascripts/fixtures/address_region_fields.html.haml +17 -0
- data/test/javascripts/fixtures/analytics_add_to_cart_form.html.haml +12 -0
- data/test/javascripts/fixtures/analytics_product_click.html.haml +7 -0
- data/test/javascripts/fixtures/authenticity_token.html.haml +2 -0
- data/test/javascripts/fixtures/back_to_top_button.html.haml +2 -0
- data/test/javascripts/fixtures/checkout_primary_payments.html.haml +12 -0
- data/test/javascripts/fixtures/dialog.html.haml +16 -0
- data/test/javascripts/fixtures/form.html.haml +10 -0
- data/test/javascripts/fixtures/optional_fields.html.haml +4 -0
- data/test/javascripts/fixtures/popup_button.html.haml +1 -0
- data/test/javascripts/fixtures/product_details_sku_select.html.haml +8 -0
- data/test/javascripts/fixtures/product_details_sku_select_without_sku_option_details.html.haml +7 -0
- data/test/javascripts/fixtures/scroll_to_element.html.haml +19 -0
- data/test/javascripts/forms_spec.js +85 -0
- data/test/javascripts/messages_spec.js +50 -0
- data/test/javascripts/optional_fields_spec.js +20 -0
- data/test/javascripts/popup_button_spec.js +19 -0
- data/test/javascripts/product_details_sku_selects_spec.js +154 -0
- data/test/javascripts/scroll_to_buttons_spec.js +46 -0
- data/test/javascripts/spec_helper.js +2 -0
- data/test/javascripts/traffic_referrer_spec.js +33 -0
- data/test/mailers/workarea/storefront/transactional_mailer_test.rb +29 -0
- data/test/performance/workarea/storefront/cart_performance_test.rb +52 -0
- data/test/performance/workarea/storefront/categories_performance_test.rb +26 -0
- data/test/performance/workarea/storefront/pages_performance_test.rb +31 -0
- data/test/performance/workarea/storefront/products_performance_test.rb +19 -0
- data/test/performance/workarea/storefront/search_performance_test.rb +27 -0
- data/test/system/workarea/storefront/accounts_system_test.rb +97 -0
- data/test/system/workarea/storefront/addresses_system_test.rb +60 -0
- data/test/system/workarea/storefront/analytics_system_test.rb +725 -0
- data/test/system/workarea/storefront/cart_items_system_test.rb +117 -0
- data/test/system/workarea/storefront/cart_system_test.rb +93 -0
- data/test/system/workarea/storefront/categories_system_test.rb +258 -0
- data/test/system/workarea/storefront/content_system_test.rb +114 -0
- data/test/system/workarea/storefront/credit_cards_system_test.rb +77 -0
- data/test/system/workarea/storefront/customer_service_system_test.rb +21 -0
- data/test/system/workarea/storefront/digital_products_system_test.rb +140 -0
- data/test/system/workarea/storefront/discounting_multiple_system_test.rb +87 -0
- data/test/system/workarea/storefront/discounting_system_test.rb +292 -0
- data/test/system/workarea/storefront/email_signup_system_test.rb +19 -0
- data/test/system/workarea/storefront/fulfillment_system_test.rb +78 -0
- data/test/system/workarea/storefront/guest_checkout_system_test.rb +426 -0
- data/test/system/workarea/storefront/logged_in_checkout_system_test.rb +336 -0
- data/test/system/workarea/storefront/login_system_test.rb +157 -0
- data/test/system/workarea/storefront/navigation_system_test.rb +73 -0
- data/test/system/workarea/storefront/no_js_system_test.rb +84 -0
- data/test/system/workarea/storefront/orders_system_test.rb +84 -0
- data/test/system/workarea/storefront/pages_system_test.rb +61 -0
- data/test/system/workarea/storefront/pagination_system_test.rb +129 -0
- data/test/system/workarea/storefront/passwords_system_test.rb +158 -0
- data/test/system/workarea/storefront/pricing_overrides_system_test.rb +45 -0
- data/test/system/workarea/storefront/products_system_test.rb +241 -0
- data/test/system/workarea/storefront/recommendations_system_test.rb +85 -0
- data/test/system/workarea/storefront/release_browsing_system_test.rb +73 -0
- data/test/system/workarea/storefront/search_system_test.rb +267 -0
- data/test/system/workarea/storefront/sitemap_system_test.rb +57 -0
- data/test/system/workarea/storefront/store_credit_system_test.rb +166 -0
- data/test/system/workarea/storefront/style_guides_system_test.rb +16 -0
- data/test/teaspoon_env.rb +10 -0
- data/test/test_helper.rb +10 -0
- data/test/view_models/workarea/storefront/cart_view_model_test.rb +36 -0
- data/test/view_models/workarea/storefront/category_view_model_test.rb +59 -0
- data/test/view_models/workarea/storefront/checkout/addresses_view_model_test.rb +16 -0
- data/test/view_models/workarea/storefront/checkout/payment_view_model_test.rb +76 -0
- data/test/view_models/workarea/storefront/checkout/summary_view_model_test.rb +29 -0
- data/test/view_models/workarea/storefront/content_block_view_model_test.rb +86 -0
- data/test/view_models/workarea/storefront/content_blocks/category_summary_view_model_test.rb +35 -0
- data/test/view_models/workarea/storefront/content_blocks/navigation_view_model_test.rb +53 -0
- data/test/view_models/workarea/storefront/content_blocks/product_insights_view_model_test.rb +73 -0
- data/test/view_models/workarea/storefront/content_blocks/product_list_view_model_test.rb +24 -0
- data/test/view_models/workarea/storefront/content_blocks/taxonomy_view_model_test.rb +81 -0
- data/test/view_models/workarea/storefront/content_blocks/video_view_model_test.rb +89 -0
- data/test/view_models/workarea/storefront/display_content_test.rb +105 -0
- data/test/view_models/workarea/storefront/fulfillment_item_view_model_test.rb +18 -0
- data/test/view_models/workarea/storefront/inventory_status_view_model_test.rb +39 -0
- data/test/view_models/workarea/storefront/option_set_view_model_test.rb +158 -0
- data/test/view_models/workarea/storefront/order_item_view_model_test.rb +49 -0
- data/test/view_models/workarea/storefront/order_view_model_test.rb +84 -0
- data/test/view_models/workarea/storefront/package_view_model_test.rb +32 -0
- data/test/view_models/workarea/storefront/product_templates/option_thumbnails_view_model_test.rb +25 -0
- data/test/view_models/workarea/storefront/product_view_model/cache_key_test.rb +16 -0
- data/test/view_models/workarea/storefront/product_view_model/image_collection_test.rb +93 -0
- data/test/view_models/workarea/storefront/product_view_model/option_set_test.rb +379 -0
- data/test/view_models/workarea/storefront/product_view_model/sku_options_test.rb +35 -0
- data/test/view_models/workarea/storefront/product_view_model_test.rb +235 -0
- data/test/view_models/workarea/storefront/recommendations_view_model_test.rb +62 -0
- data/test/view_models/workarea/storefront/refund_view_model_test.rb +23 -0
- data/test/view_models/workarea/storefront/search_suggestion_view_model_test.rb +42 -0
- data/test/view_models/workarea/storefront/search_view_model_test.rb +57 -0
- data/test/view_models/workarea/storefront/shipping_view_model_test.rb +29 -0
- data/test/view_models/workarea/storefront/user_activity_view_model_test.rb +65 -0
- data/test/view_models/workarea/storefront/user_view_model_test.rb +35 -0
- data/workarea-storefront.gemspec +16 -0
- metadata +742 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
- @title = @content.title
|
2
|
+
|
3
|
+
.view{ data: { analytics: checkout_order_placed_analytics_data(@order).to_json } }
|
4
|
+
|
5
|
+
%h1= @content.title
|
6
|
+
|
7
|
+
- if @content.content_blocks_for('confirmation').present?
|
8
|
+
= render_content_blocks(@content.content_blocks_for('confirmation'))
|
9
|
+
|
10
|
+
%p= t('workarea.storefront.checkouts.confirmation_text', email: @order.email)
|
11
|
+
|
12
|
+
- if @order.user.present?
|
13
|
+
|
14
|
+
%p= link_to t('workarea.storefront.checkouts.go_to_account'), users_account_path, class: 'button'
|
15
|
+
|
16
|
+
- elsif @order.render_signup_form?
|
17
|
+
|
18
|
+
- if @content.content_blocks_for('confirmation_signup').present?
|
19
|
+
= render_content_blocks(@content.content_blocks_for('confirmation_signup'))
|
20
|
+
|
21
|
+
= form_tag users_account_path, id: 'signup_form', method: :post, data: { analytics: checkout_signup_analytics_data.to_json } do
|
22
|
+
= hidden_field_tag :email, @order.email
|
23
|
+
= hidden_field_tag :first_name, @order.billing_address.first_name
|
24
|
+
= hidden_field_tag :last_name, @order.billing_address.last_name
|
25
|
+
.property
|
26
|
+
= label_tag :password, nil, class: 'property__name' do
|
27
|
+
%span.property__requirement.property__requirement--required= t('workarea.storefront.forms.required')
|
28
|
+
%span.property__text= t('workarea.storefront.users.password')
|
29
|
+
.value= password_field_tag :password, nil, class: 'text-box', required: true, minlength: minimum_password_length, autocomplete: 'off'
|
30
|
+
.button-property
|
31
|
+
.value= check_box_tag :email_signup, true, params[:email_signup]
|
32
|
+
= label_tag :email_signup, nil, class: 'button-property__name' do
|
33
|
+
%span.button-property__text= t('workarea.storefront.users.sign_up_for_email')
|
34
|
+
%p= button_tag t('workarea.storefront.users.create_account'), value: 'sign_up', class: 'button', data: { disable_with: loading_indicator(t('workarea.storefront.users.create_account_disabled_text')) }
|
35
|
+
|
36
|
+
= render 'workarea/storefront/orders/summary', order: @order, recommendations: @order.recommendations, show_fulfillment: false
|
37
|
+
= append_partials('storefront.checkout_confirmation')
|
@@ -0,0 +1,184 @@
|
|
1
|
+
- @title = t('workarea.storefront.checkouts.payment_title')
|
2
|
+
- @checkout_step = 'payment'
|
3
|
+
|
4
|
+
- content_for :page_aside do
|
5
|
+
%h1.visually-hidden= t('workarea.storefront.checkouts.payment_title')
|
6
|
+
= render 'summary', cart: @cart, summary: @summary
|
7
|
+
|
8
|
+
.checkout-payment.view{ data: { analytics: checkout_payment_view_analytics_data(@cart).to_json } }
|
9
|
+
= append_partials('storefront.checkout_payment_top', step: @step)
|
10
|
+
|
11
|
+
- unless request.get?
|
12
|
+
- if @step.payment.errors.any?
|
13
|
+
- @step.payment.errors.full_messages.each do |message|
|
14
|
+
= render_message 'error', message, data: { analytics: validation_error_analytics_data('payment').to_json }
|
15
|
+
- if @step.credit_card? && @step.credit_card.errors.any?
|
16
|
+
- @step.credit_card.errors.full_messages.each do |message|
|
17
|
+
= render_message 'error', message, data: { analytics: validation_error_analytics_data('credit_card').to_json }
|
18
|
+
= append_partials('storefront.payment_error', step: @step)
|
19
|
+
|
20
|
+
.checkout-payment__section
|
21
|
+
|
22
|
+
.checkout-payment__secondary.checkout-payment__secondary--promo-code
|
23
|
+
|
24
|
+
= optional_field(t('workarea.storefront.carts.enter_promo_code_prompt'), params[:promo_code]) do
|
25
|
+
.checkout-payment__secondary-method
|
26
|
+
%h2= t('workarea.storefront.orders.promo_code')
|
27
|
+
= form_tag add_promo_code_to_cart_path, id: 'promo_code_form', class: 'inline-form', method: 'post' do
|
28
|
+
.inline-form__cell
|
29
|
+
.value
|
30
|
+
= text_field_tag :promo_code, params[:promo_code], class: 'text-box', autocomplete: 'off', autocorrect: 'off', autocapitalize: 'off', required: true, placeholder: t('workarea.storefront.orders.promo_code'), title: t('workarea.storefront.orders.promo_code'), aria: { label: t('workarea.storefront.orders.promo_code') }
|
31
|
+
|
32
|
+
.inline-form__cell
|
33
|
+
%p= button_tag t('workarea.storefront.carts.add'), value: 'add_promo_code', class: 'button'
|
34
|
+
|
35
|
+
= append_partials('storefront.secondary_payment', step: @step)
|
36
|
+
|
37
|
+
.checkout-payment__section
|
38
|
+
.checkout-payment__primary{ data: { checkout_primary_payment: '' } }
|
39
|
+
|
40
|
+
%h2#aria_payment_radiogroup= t('workarea.storefront.checkouts.payment_method')
|
41
|
+
|
42
|
+
- if @step.store_credit?
|
43
|
+
= render_message 'success' do
|
44
|
+
= t('workarea.storefront.checkouts.store_credit_applied', amount: number_to_currency(@step.store_credit_amount))
|
45
|
+
- if @step.order_covered_by_store_credit?
|
46
|
+
= t('workarea.storefront.checkouts.store_credit_balance', amount: number_to_currency(@step.store_credit_balance))
|
47
|
+
|
48
|
+
= form_tag checkout_place_order_path, method: :patch, id: 'checkout_form', data: { single_submit_form: '' } do
|
49
|
+
- unless @step.order_covered_by_advance_payments?
|
50
|
+
.checkout-payment__primary-method-group
|
51
|
+
|
52
|
+
-# Saved Cards
|
53
|
+
- if @step.credit_cards.present?
|
54
|
+
%div{ role: 'radiogroup', aria: { labelledby: 'aria_payment_radiogroup' } }
|
55
|
+
- @step.credit_cards.each do |card|
|
56
|
+
.checkout-payment__primary-method.checkout-payment__primary-method--credit_card{ class: card.selected? ? 'checkout-payment__primary-method--selected': nil }
|
57
|
+
.button-property
|
58
|
+
.value= radio_button_tag 'payment', card.id, card.selected?, data: { analytics: checkout_payment_selected_analytics_data('saved card').to_json }
|
59
|
+
= label_tag "payment[#{card.id}]", nil, class: 'button-property__name' do
|
60
|
+
%span.button-property__text= t('workarea.storefront.credit_cards.summary', issuer: card.issuer, number: card.display_number.slice(-4, 4))
|
61
|
+
%p.checkout-payment__primary-method-description
|
62
|
+
= credit_card_issuer_icon(card_icon_name(card.issuer))
|
63
|
+
%span= t('workarea.storefront.credit_cards.expires')
|
64
|
+
%span= t('workarea.storefront.credit_cards.expiry', month: card.month, year: card.year)
|
65
|
+
|
66
|
+
-# New Card
|
67
|
+
.checkout-payment__primary-method.checkout-payment__primary-method--credit_card.checkout-payment__primary-method--new{ class: @step.using_new_card? ? 'checkout-payment__primary-method--selected': nil}
|
68
|
+
.button-property
|
69
|
+
.value{ role: 'radiogroup', aria: { labelledby: 'aria_payment_radiogroup' } }
|
70
|
+
= radio_button_tag 'payment', 'new_card', @step.using_new_card?, data: { analytics: checkout_payment_selected_analytics_data('new card').to_json }
|
71
|
+
= label_tag 'payment[new_card]', nil, class: 'button-property__name' do
|
72
|
+
%span.button-property__text= t('workarea.storefront.checkouts.new_credit_card')
|
73
|
+
%p.checkout-payment__primary-method-description
|
74
|
+
= all_payment_icons
|
75
|
+
.checkout-payment__primary-method-edit
|
76
|
+
.grid.grid--auto
|
77
|
+
.grid__cell
|
78
|
+
.property
|
79
|
+
= label_tag 'credit_card[number]', nil, class: 'property__name' do
|
80
|
+
%span.property__requirement.property__requirement--required= t('workarea.storefront.forms.required')
|
81
|
+
%span.property__text= t('workarea.storefront.credit_cards.card_number')
|
82
|
+
.value
|
83
|
+
= text_field_tag 'credit_card[number]', nil, class: 'text-box', inputmode: 'numeric', pattern: '[0-9]*', required: true, autocorrect: 'off', autocomplete: 'cc-number'
|
84
|
+
- if @step.credit_card? && @step.credit_card.errors[:number].present?
|
85
|
+
%span.value__error= @step.credit_card.errors[:number].first
|
86
|
+
.grid__cell
|
87
|
+
.property
|
88
|
+
%strong.property__name
|
89
|
+
%span= t('workarea.storefront.credit_cards.expiration_date')
|
90
|
+
.value
|
91
|
+
= select_tag 'credit_card[month]', options_for_select(1..12, @step.credit_card.try(:month)), title: t('workarea.storefront.credit_cards.expiration_month'), aria: { label: t('workarea.storefront.credit_cards.expiration_month') }
|
92
|
+
= select_tag 'credit_card[year]', options_for_select(Time.current.year..Time.current.year + 10, @step.credit_card.try(:year)), title: t('workarea.storefront.credit_cards.expiration_year'), aria: { label: t('workarea.storefront.credit_cards.expiration_year') }
|
93
|
+
- if @step.credit_card? && @step.credit_card.errors[:year].present?
|
94
|
+
%span.value__error= @step.credit_card.errors[:year].first
|
95
|
+
.grid__cell
|
96
|
+
.property
|
97
|
+
= label_tag 'credit_card[cvv]', nil, class: 'property__name' do
|
98
|
+
%span.property__requirement.property__requirement--required
|
99
|
+
= t('workarea.storefront.forms.required')
|
100
|
+
%span.property__text
|
101
|
+
= t('workarea.storefront.credit_cards.security_code')
|
102
|
+
.value
|
103
|
+
= text_field_tag 'credit_card[cvv]', nil, class: 'text-box text-box--small', required: true, inputmode: 'numeric', pattern: '[0-9]*', autocorrect: 'off', autocomplete: 'cc-csc'
|
104
|
+
- if @step.saved_card_id.blank? && @step.credit_card && @step.credit_card.errors[:cvv].present?
|
105
|
+
%span.value__error= @step.credit_card.errors[:cvv].first
|
106
|
+
%span.value__note= link_to t('workarea.storefront.credit_cards.whats_this'), page_path('credit-card-security-code'), data: { dialog_button: '' }
|
107
|
+
|
108
|
+
= append_partials('storefront.payment_method', step: @step)
|
109
|
+
|
110
|
+
.checkout-payment__section
|
111
|
+
.checkout-payment__cart-items
|
112
|
+
%h2= t('workarea.storefront.orders.items')
|
113
|
+
%ul.product-list
|
114
|
+
- @cart.items.each do |item|
|
115
|
+
%li.product-list__item
|
116
|
+
.product-list__item-cell
|
117
|
+
.product-list__summary
|
118
|
+
%p.product-list__media= link_to image_tag(product_image_url(item.image, :small_thumb), alt: item.product_name, class: 'product-list__media-image'), product_url(item.product, sku: item.sku), class: 'product-list__media-link'
|
119
|
+
.product-list__info
|
120
|
+
%p.product-list__name= link_to item.product_name, product_path(item.product, sku: item.sku)
|
121
|
+
%p.product-list__id= item.sku_name
|
122
|
+
%p.product-list__inventory-status= item.inventory_status
|
123
|
+
- if item.has_options?
|
124
|
+
.product-list__option-group
|
125
|
+
- item.details.each do |name, value|
|
126
|
+
%p.product-list__option #{name.titleize}: #{value}
|
127
|
+
= append_partials('storefront.checkout_cart_summary_item_details', item: item)
|
128
|
+
.product-list__item-cell
|
129
|
+
%table.table
|
130
|
+
%thead
|
131
|
+
%tr
|
132
|
+
%th.table__prices= t('workarea.storefront.orders.price')
|
133
|
+
%th.table__quantity= t('workarea.storefront.orders.quantity')
|
134
|
+
%th.table__prices= t('workarea.storefront.orders.total')
|
135
|
+
%tbody
|
136
|
+
%tr
|
137
|
+
%td.table__prices
|
138
|
+
= render 'workarea/storefront/carts/pricing', item: item, css_block: 'table'
|
139
|
+
%td.table__quantity
|
140
|
+
%p= item.quantity
|
141
|
+
%td.table__prices
|
142
|
+
- item.total_adjustments.each do |adjustment|
|
143
|
+
%p.table__price
|
144
|
+
- if item.total_adjustments.many?
|
145
|
+
%span.table__price-label= adjustment.description
|
146
|
+
|
147
|
+
- if adjustment.discount?
|
148
|
+
%strong.table__price-discount= number_to_currency(adjustment.amount)
|
149
|
+
- else
|
150
|
+
%span= number_to_currency(adjustment.amount)
|
151
|
+
|
152
|
+
- if item.total_adjustments.many?
|
153
|
+
%p.table__price
|
154
|
+
%span.table__price-label= t('workarea.storefront.orders.item_total')
|
155
|
+
%span= number_to_currency(item.total_price)
|
156
|
+
|
157
|
+
- @cart.free_gifts.each do |item|
|
158
|
+
%li.product-list__item
|
159
|
+
.product-list__item-cell
|
160
|
+
.product-list__summary
|
161
|
+
%p.product-list__media= link_to image_tag(product_image_url(item.image, :small_thumb), alt: item.product_name, class: 'product-list__media-image'), product_url(item.product, sku: item.sku), class: 'product-list__media-link'
|
162
|
+
.product-list__info
|
163
|
+
%p.product-list__name= link_to item.product_name, product_path(item.product, sku: item.sku)
|
164
|
+
%p.product-list__id= item.sku
|
165
|
+
.product-list__item-cell
|
166
|
+
%table.table
|
167
|
+
%thead
|
168
|
+
%tr
|
169
|
+
%th.table__prices= t('workarea.storefront.orders.price')
|
170
|
+
%th.table__quantity= t('workarea.storefront.orders.quantity')
|
171
|
+
%th.table__prices= t('workarea.storefront.orders.total')
|
172
|
+
%tbody
|
173
|
+
%tr
|
174
|
+
%td.table__prices
|
175
|
+
%p.table__price
|
176
|
+
%span= t('workarea.storefront.carts.free_gift')
|
177
|
+
%td.table__quantity
|
178
|
+
%p= item.quantity
|
179
|
+
%td.table__prices
|
180
|
+
%p.table__price
|
181
|
+
%span= t('workarea.storefront.carts.free_gift')
|
182
|
+
|
183
|
+
.checkout-payment__section
|
184
|
+
%p.checkout-payment__place-order= button_tag t('workarea.storefront.checkouts.place_order'), value: 'place_order', class: 'button button--large', data: { disable_with: loading_indicator(t('workarea.storefront.checkouts.place_order_disabled_text')) }
|
@@ -0,0 +1,39 @@
|
|
1
|
+
- @title = t('workarea.storefront.checkouts.shipping_title')
|
2
|
+
- @checkout_step = 'shipping'
|
3
|
+
|
4
|
+
- content_for :page_aside do
|
5
|
+
%h1.visually-hidden= t('workarea.storefront.checkouts.shipping_title')
|
6
|
+
= render 'summary', cart: @cart, summary: @summary
|
7
|
+
|
8
|
+
.checkout-shipping.view{ data: { analytics: checkout_shipping_view_analytics_data(@cart).to_json } }
|
9
|
+
|
10
|
+
- unless request.get?
|
11
|
+
- if @step.order.errors.any?
|
12
|
+
- @step.order.errors.full_messages.each do |message|
|
13
|
+
= render_message 'error', message, data: { analytics: validation_error_analytics_data('order').to_json }
|
14
|
+
|
15
|
+
= form_tag checkout_shipping_path, method: :patch, id: 'checkout_form' do
|
16
|
+
|
17
|
+
.checkout-shipping__section
|
18
|
+
%h2#aria_shipping_radiogroup.checkout-shipping__heading= t('workarea.storefront.checkouts.shipping_service')
|
19
|
+
|
20
|
+
%div{ role: 'radiogroup', aria: { labelledby: 'aria_shipping_radiogroup' } }
|
21
|
+
- @cart.shipping_options.each do |option|
|
22
|
+
.button-property{ data: { checkout_shipping_service: '' } }
|
23
|
+
.value= radio_button_tag :shipping_service, option.name, @cart.shipping_service == option.name, data: { analytics: checkout_shipping_service_selected_analytics_data(option).to_json }
|
24
|
+
= label_tag "shipping_service_#{option.name}", nil, class: 'button-property__name' do
|
25
|
+
%span.button-property__text #{option.name} #{number_to_currency(option.price)}
|
26
|
+
|
27
|
+
.checkout-shipping__section
|
28
|
+
= optional_field(t('workarea.storefront.checkouts.shipping_instructions_prompt'), @cart.shipping_instructions) do
|
29
|
+
.property
|
30
|
+
= label_tag :shipping_instructions, nil, class: 'property__name' do
|
31
|
+
%span.property__text= t('workarea.storefront.checkouts.shipping_instructions')
|
32
|
+
.value
|
33
|
+
= text_field_tag :shipping_instructions, @cart.shipping_instructions, class: 'text-box text-box--wide', title: t('workarea.storefront.checkouts.shipping_instructions_title'), placeholder: t('workarea.storefront.checkouts.shipping_instructions_placeholder')
|
34
|
+
|
35
|
+
= append_partials('storefront.checkout_shipping_fields', step: @step, cart: @cart)
|
36
|
+
|
37
|
+
= append_partials('storefront.checkout_shipping_step_form', step: @step, cart: @cart)
|
38
|
+
|
39
|
+
%p= button_tag t('workarea.storefront.checkouts.continue_to_payment'), value: 'continue', class: 'button button--large', data: { disable_with: loading_indicator(t('workarea.storefront.checkouts.continue_to_payment_disabled_text')) }
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'summary', cart: @cart, summary: @summary
|
@@ -0,0 +1,41 @@
|
|
1
|
+
- @title = @inquiry.title
|
2
|
+
|
3
|
+
- content_for :head do
|
4
|
+
%link{ href: contact_url, rel: 'canonical' }
|
5
|
+
%meta{ name: :description, content: @inquiry.meta_description }
|
6
|
+
|
7
|
+
- content_for :breadcrumbs do
|
8
|
+
%p.breadcrumbs__node-group
|
9
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
10
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
11
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
12
|
+
%span.breadcrumbs__text= @inquiry.title
|
13
|
+
|
14
|
+
.view
|
15
|
+
|
16
|
+
%h1= @inquiry.title
|
17
|
+
|
18
|
+
= render_content_blocks(@inquiry.content_blocks)
|
19
|
+
|
20
|
+
= form_tag contact_path, method: 'post', id: 'customer_service_form' do
|
21
|
+
.property
|
22
|
+
= label_tag :name, nil, class: 'property__name' do
|
23
|
+
%span.property__text= t('workarea.storefront.contacts.name')
|
24
|
+
.value= text_field_tag :name, params[:name], class: 'text-box', autocomplete: 'name'
|
25
|
+
.property
|
26
|
+
= label_tag :email, nil, class: 'property__name' do
|
27
|
+
%span.property__text= t('workarea.storefront.contacts.email')
|
28
|
+
.value= email_field_tag :email, params[:email], class: 'text-box', required: true, placeholder: t('workarea.storefront.forms.email_placeholder'), autocapitalize: 'off', autocomplete: 'email'
|
29
|
+
.property
|
30
|
+
= label_tag :order_id, nil, class: 'property__name' do
|
31
|
+
%span.property__text= t('workarea.storefront.contacts.order_id')
|
32
|
+
.value= text_field_tag :order_id, params[:order_id], class: 'text-box'
|
33
|
+
.property
|
34
|
+
= label_tag :subject, nil, class: 'property__name' do
|
35
|
+
%span.property__text= t('workarea.storefront.contacts.subject')
|
36
|
+
.value= select_tag :subject, options_for_select(@inquiry.subjects, params[:subject]), required: true
|
37
|
+
.property
|
38
|
+
= label_tag :message, nil, class: 'property__name' do
|
39
|
+
%span.property__text= t('workarea.storefront.contacts.message')
|
40
|
+
.value= text_area_tag :message, params[:message], class: 'text-box text-box--multi-line text-box--wide', required: true
|
41
|
+
= button_tag t('workarea.storefront.forms.send'), value: 'submit', class: 'button'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
- if category.present?
|
2
|
+
.category-summary-content-block{ data: { analytics: product_list_analytics_data(t('workarea.storefront.content_blocks.category_summary.summary_of', name: category.name)).to_json } }
|
3
|
+
|
4
|
+
%span.category-summary-content-block__heading
|
5
|
+
= link_to t('workarea.storefront.content_blocks.category_summary.view_all', name: category.name), category_path(category), class: 'category-summary-content-block__heading-link'
|
6
|
+
|
7
|
+
- if products.empty?
|
8
|
+
%p.category-summary-content-block__empty-message= t('workarea.storefront.content_blocks.category_summary.empty', name: category.name)
|
9
|
+
|
10
|
+
- else
|
11
|
+
.grid
|
12
|
+
- products.each do |product|
|
13
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
14
|
+
%div.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
|
15
|
+
= render 'workarea/storefront/products/summary', product: product
|
@@ -0,0 +1,3 @@
|
|
1
|
+
.hero-content-block
|
2
|
+
.hero-content-block__image-container{ style: intrinsic_ratio_frame_styles(view_model.image) }= image_tag view_model.image.url, alt: local_assigns[:alt_text].presence, class: 'hero-content-block__image'
|
3
|
+
.hero-content-block__button{ class: view_model.button_position_class }= link_to text, local_assigns[:url].presence || '#', class: view_model.button_style_class
|
@@ -0,0 +1 @@
|
|
1
|
+
.html-content-block!= local_assigns[:html]
|
@@ -0,0 +1,4 @@
|
|
1
|
+
.image-and-text-content-block
|
2
|
+
.image-and-text-content-block__image-container{ class: "image-and-text-content-block__image-container--#{image_position.downcase}" }
|
3
|
+
= render_image_with_link(view_model.find_asset(image).url, image_alt, 'image-and-text-content-block', image_link)
|
4
|
+
.image-and-text-content-block__text{ style: "text-align: #{text_alignment.downcase}" }!= text
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.image-group-content-block
|
2
|
+
.grid.grid--flush.grid--center
|
3
|
+
- view_model.series.each_with_index do |image, i|
|
4
|
+
- unless image.asset.image_placeholder?
|
5
|
+
.grid__cell.grid__cell--50-at-medium
|
6
|
+
- if image.link.present?
|
7
|
+
= link_to image.link, class: 'image-group-content-block__link' do
|
8
|
+
= image_tag image.asset.url, alt: image.alt, class: 'image-group-content-block__image'
|
9
|
+
- else
|
10
|
+
= image_tag image.asset.url, alt: image.alt, class: 'image-group-content-block__image'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.product-insights-content-block
|
2
|
+
- if local_assigns[:title].present?
|
3
|
+
.product-insights-content-block__heading= title
|
4
|
+
|
5
|
+
- if view_model.products.present?
|
6
|
+
.grid
|
7
|
+
- view_model.products.each do |product|
|
8
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
9
|
+
.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
|
10
|
+
= render 'workarea/storefront/products/summary', product: product
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.product-list-content-block
|
2
|
+
- if local_assigns[:title].present?
|
3
|
+
%span.product-list-content-block__heading= title
|
4
|
+
|
5
|
+
- if products.present?
|
6
|
+
.grid{ data: { analytics: product_list_analytics_data("Custom product list").to_json } }
|
7
|
+
- products.each do |product|
|
8
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
9
|
+
%div.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
|
10
|
+
= render 'workarea/storefront/products/summary', product: product
|
@@ -0,0 +1 @@
|
|
1
|
+
%div{ data: { recommendations_placeholder: recommendations_path } }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
%ul.social-networks-content-block
|
2
|
+
- if facebook.present?
|
3
|
+
%li.social-networks-content-block__item
|
4
|
+
= link_to facebook, class: 'social-networks-content-block__button', aria: { label: t('workarea.storefront.content_blocks.social_networks.facebook') } do
|
5
|
+
= inline_svg('workarea/storefront/icons/facebook.svg', class: 'svg-icon svg-icon--extra-large svg-icon--blue')
|
6
|
+
- if twitter.present?
|
7
|
+
%li.social-networks-content-block__item
|
8
|
+
= link_to twitter, class: 'social-networks-content-block__button', aria: { label: t('workarea.storefront.content_blocks.social_networks.twitter') } do
|
9
|
+
= inline_svg('workarea/storefront/icons/twitter.svg', class: 'svg-icon svg-icon--extra-large svg-icon--blue')
|
10
|
+
- if google_plus.present?
|
11
|
+
%li.social-networks-content-block__item
|
12
|
+
= link_to google_plus, class: 'social-networks-content-block__button', aria: { label: t('workarea.storefront.content_blocks.social_networks.google_plus') } do
|
13
|
+
= inline_svg('workarea/storefront/icons/google_plus.svg', class: 'svg-icon svg-icon--extra-large svg-icon--blue')
|
14
|
+
- if pinterest.present?
|
15
|
+
%li.social-networks-content-block__item
|
16
|
+
= link_to pinterest, class: 'social-networks-content-block__button', aria: { label: t('workarea.storefront.content_blocks.social_networks.pinterest') } do
|
17
|
+
= inline_svg('workarea/storefront/icons/pinterest.svg', class: 'svg-icon svg-icon--extra-large svg-icon--blue')
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.taxonomy-content-block
|
2
|
+
|
3
|
+
- if view_model.left_image?
|
4
|
+
.taxonomy-content-block__container
|
5
|
+
= render_image_with_link(view_model.find_asset(image).url, image_alt, 'taxonomy-content-block', image_link)
|
6
|
+
|
7
|
+
.taxonomy-content-block__container{ class: ('taxonomy-content-block__container--without-image' unless image.present? )}
|
8
|
+
- if view_model.data[:header].present?
|
9
|
+
%span.taxonomy-content-block__menu-heading= view_model.data[:header]
|
10
|
+
|
11
|
+
%ul.taxonomy-content-block__menu
|
12
|
+
- if view_model.show_starting_taxon?
|
13
|
+
%li.taxonomy-content-block__menu-item.taxonomy-content-block__menu-item--start
|
14
|
+
- if view_model.starting_taxon.placeholder?
|
15
|
+
= view_model.starting_taxon.name
|
16
|
+
- else
|
17
|
+
= link_to view_model.starting_taxon.name, storefront_path_for(view_model.starting_taxon), data: { analytics: primary_navigation_analytics_data(view_model.starting_taxon).to_json }, class: 'taxonomy-content-block__menu-link'
|
18
|
+
- view_model.taxons.each do |taxon|
|
19
|
+
%li.taxonomy-content-block__menu-item
|
20
|
+
- if taxon.placeholder?
|
21
|
+
= taxon.name
|
22
|
+
- else
|
23
|
+
= link_to taxon.name, storefront_path_for(taxon), data: { analytics: primary_navigation_analytics_data(taxon).to_json }, class: 'taxonomy-content-block__menu-link'
|
24
|
+
|
25
|
+
- if view_model.right_image?
|
26
|
+
.taxonomy-content-block__container
|
27
|
+
= render_image_with_link(view_model.find_asset(image).url, image_alt, 'taxonomy-content-block', image_link)
|