workarea-one_theme 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +20 -0
- data/.eslintignore +1 -0
- data/.eslintrc +25 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/ci.yml +60 -0
- data/.gitignore +21 -0
- data/.rubocop.yml +3 -0
- data/.stylelintrc.json +8 -0
- data/CHANGELOG.md +267 -0
- data/CODE_OF_CONDUCT.md +3 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +20 -0
- data/LICENSE.md +3 -0
- data/README.md +173 -0
- data/Rakefile +63 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff2 +0 -0
- data/app/assets/images/workarea/admin/content_block_types/hero_slider.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_category_summary.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_products.svg +1 -0
- data/app/assets/images/workarea/storefront/dialog_close.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/account.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrow_left.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrow_right.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/cart.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/chevron_down.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/chevron_right.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/search.svg +1 -0
- data/app/assets/images/workarea/storefront/logo.png +0 -0
- data/app/assets/javascripts/workarea/storefront/application.js.erb +147 -0
- data/app/assets/javascripts/workarea/storefront/clothing/modules/product_details_color_buttons.js +86 -0
- data/app/assets/javascripts/workarea/storefront/dependencies/jquery.payment.js +655 -0
- data/app/assets/javascripts/workarea/storefront/modules/address_region_fields.js +93 -0
- data/app/assets/javascripts/workarea/storefront/modules/cart_indicator.js +35 -0
- data/app/assets/javascripts/workarea/storefront/modules/checkout_primary_payments.js +136 -0
- data/app/assets/javascripts/workarea/storefront/modules/header_search_ui.js +64 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_filters.js +79 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +137 -0
- data/app/assets/javascripts/workarea/storefront/modules/quantity_control.js +56 -0
- data/app/assets/javascripts/workarea/storefront/modules/utility_nav_dropdown.js +43 -0
- data/app/assets/javascripts/workarea/storefront/one_theme/config.js +20 -0
- data/app/assets/javascripts/workarea/storefront/product_quickview/templates/quickview_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/reviews/modules/product_reviews_sort_menus.js +82 -0
- data/app/assets/javascripts/workarea/storefront/reviews/templates/sort_by_property.jst.ejs +19 -0
- data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +23 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss +17 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +150 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss +42 -0
- data/app/assets/stylesheets/one_theme/.keep +0 -0
- data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +197 -0
- data/app/assets/stylesheets/workarea/storefront/base/_tables.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry.scss +139 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry_summary.scss +90 -0
- data/app/assets/stylesheets/workarea/storefront/clothing/components/_color_options.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/clothing/components/_size_options.scss +123 -0
- data/app/assets/stylesheets/workarea/storefront/components/_account_dashboard.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/components/_box.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button.scss +72 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +41 -0
- data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/components/_category_summary_content_block.scss +78 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +58 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +47 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +47 -0
- data/app/assets/stylesheets/workarea/storefront/components/_color_box.scss +48 -0
- data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +70 -0
- data/app/assets/stylesheets/workarea/storefront/components/_hamburger.scss +107 -0
- data/app/assets/stylesheets/workarea/storefront/components/_header.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_hero_slider_content_block.scss +75 -0
- data/app/assets/stylesheets/workarea/storefront/components/_loading.scss +92 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters.scss +42 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +146 -0
- data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_summary.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_container.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +96 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +188 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_messages.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_sub_footer.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_payment_icon.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +99 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +94 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +182 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list_content_block.scss +20 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_media.scss +109 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +92 -0
- data/app/assets/stylesheets/workarea/storefront/components/_promo_code_accordion.scss +13 -0
- data/app/assets/stylesheets/workarea/storefront/components/_property.scss +68 -0
- data/app/assets/stylesheets/workarea/storefront/components/_quantity_control.scss +77 -0
- data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_select_menu.scss +68 -0
- data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +78 -0
- data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +173 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_utility_nav.scss +49 -0
- data/app/assets/stylesheets/workarea/storefront/components/_value.scss +51 -0
- data/app/assets/stylesheets/workarea/storefront/email/_settings.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss.erb +11 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_content_wrapper.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/product_quickview/components/_quickview_button.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews.scss +66 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_write_review.scss +71 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss.erb +21 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_font_families.scss.erb +6 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +8 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +43 -0
- data/app/assets/stylesheets/workarea/storefront/share/components/_share_buttons.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/slick_slider/components/_slick_slider.scss +171 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_facet.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_options.scss +55 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_midnight_color_scheme.scss +110 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_one_color_scheme.scss +104 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_workarea_color_scheme.scss +105 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_hind.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_lora.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_muli.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_playfair_display.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_roboto.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_source_serif_pro.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_checkout_section.scss +12 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_full_bleed_container.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +81 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +30 -0
- data/app/helpers/workarea/storefront/one_theme_helper.rb +71 -0
- data/app/seeds/workarea/browse_navigation_seeds.rb +35 -0
- data/app/seeds/workarea/content_block_page_seeds.rb +22 -0
- data/app/seeds/workarea/theme_home_page_seeds.rb +58 -0
- data/app/seeds/workarea/theme_layout_content_seeds.rb +41 -0
- data/app/view_models/workarea/storefront/content_blocks/category_summary_view_model.decorator +21 -0
- data/app/view_models/workarea/storefront/content_blocks/hero_slider_block_view_model.rb +44 -0
- data/app/view_models/workarea/storefront/content_blocks/product_list_view_model.decorator +50 -0
- data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_category_view_model.rb +49 -0
- data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_products_view_model.rb +21 -0
- data/app/view_models/workarea/storefront/product_view_model.decorator +11 -0
- data/app/views/layouts/workarea/storefront/_wish_lists_link.html.haml +4 -0
- data/app/views/layouts/workarea/storefront/application.html.haml +211 -0
- data/app/views/layouts/workarea/storefront/checkout.html.haml +97 -0
- data/app/views/workarea/storefront/blog_comments/index.html.haml +31 -0
- data/app/views/workarea/storefront/blog_entries/_summary.html.haml +26 -0
- data/app/views/workarea/storefront/blog_entries/show.html.haml +85 -0
- data/app/views/workarea/storefront/blogs/_blog_navigation.html.haml +7 -0
- data/app/views/workarea/storefront/blogs/index.html.haml +47 -0
- data/app/views/workarea/storefront/cart_items/create.html.haml +66 -0
- data/app/views/workarea/storefront/carts/show.html.haml +175 -0
- data/app/views/workarea/storefront/categories/show.html.haml +105 -0
- data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +38 -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 +58 -0
- data/app/views/workarea/storefront/checkouts/payment.html.haml +186 -0
- data/app/views/workarea/storefront/checkouts/shipping.html.haml +38 -0
- data/app/views/workarea/storefront/content_blocks/_blog_entry.html.haml +19 -0
- data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +20 -0
- data/app/views/workarea/storefront/content_blocks/_hero_slider.html.haml +15 -0
- data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +11 -0
- data/app/views/workarea/storefront/content_blocks/_social_networks.html.haml +17 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy_with_category_summary.html.haml +26 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy_with_products.html.haml +26 -0
- data/app/views/workarea/storefront/menus/index.html.haml +17 -0
- data/app/views/workarea/storefront/orders/_summary.html.haml +286 -0
- data/app/views/workarea/storefront/products/_media.html.haml +22 -0
- data/app/views/workarea/storefront/products/_media_carousel.html.haml +25 -0
- data/app/views/workarea/storefront/products/_pricing.html.haml +40 -0
- data/app/views/workarea/storefront/products/_reviews.html.haml +27 -0
- data/app/views/workarea/storefront/products/_subscription_fields.html.haml +15 -0
- data/app/views/workarea/storefront/products/_summary.html.haml +16 -0
- data/app/views/workarea/storefront/products/_swatch_summary.html.haml +17 -0
- data/app/views/workarea/storefront/products/package_show.html.haml +46 -0
- data/app/views/workarea/storefront/products/show.html.haml +53 -0
- data/app/views/workarea/storefront/products/templates/_generic.html.haml +61 -0
- data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +68 -0
- data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +61 -0
- data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +67 -0
- data/app/views/workarea/storefront/products/templates/_swatches.html.haml +78 -0
- data/app/views/workarea/storefront/reviews/new.html.haml +72 -0
- data/app/views/workarea/storefront/searches/content.html.haml +78 -0
- data/app/views/workarea/storefront/searches/show.html.haml +97 -0
- data/app/views/workarea/storefront/shared/_address_fields.html.haml +109 -0
- data/app/views/workarea/storefront/shares/_share_buttons.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +91 -0
- data/app/views/workarea/storefront/style_guides/components/_breadcrumbs.html.haml +13 -0
- data/app/views/workarea/storefront/style_guides/components/_button.html.haml +69 -0
- data/app/views/workarea/storefront/style_guides/components/_category_summary_content_block.html.haml +54 -0
- data/app/views/workarea/storefront/style_guides/components/_header.html.haml +18 -0
- data/app/views/workarea/storefront/style_guides/components/_hero_slider_content_block.html.haml +46 -0
- data/app/views/workarea/storefront/style_guides/components/_mobile_filters.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +46 -0
- data/app/views/workarea/storefront/style_guides/components/_product_summary.html.haml +47 -0
- data/app/views/workarea/storefront/style_guides/components/_svg_icon.html.haml +63 -0
- data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_category_summary_content_block.html.haml +33 -0
- data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_products_content_block.html.haml +33 -0
- data/app/views/workarea/storefront/style_guides/components/_text_box.html.haml +63 -0
- data/app/views/workarea/storefront/style_guides/settings/_color_variables.html.haml +79 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_midnight_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_one_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_workarea_color_scheme.html.haml +8 -0
- data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +47 -0
- data/app/views/workarea/storefront/style_guides/typography/_links.html.haml +27 -0
- data/app/views/workarea/storefront/users/accounts/_wish_list_summary.html.haml +16 -0
- data/app/views/workarea/storefront/users/accounts/edit.html.haml +41 -0
- data/app/views/workarea/storefront/users/accounts/show.html.haml +118 -0
- data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +74 -0
- data/app/views/workarea/storefront/users/credit_cards/new.html.haml +66 -0
- data/app/views/workarea/storefront/users/orders/index.html.haml +22 -0
- data/app/views/workarea/storefront/users/orders/show.html.haml +31 -0
- data/app/views/workarea/storefront/users/wish_lists/show.html.haml +136 -0
- data/app/views/workarea/storefront/wish_lists/show.html.haml +99 -0
- data/bin/rails +20 -0
- data/config/initializers/appends.rb +62 -0
- data/config/initializers/configuration.rb +9 -0
- data/config/initializers/content_block_types.rb +91 -0
- data/config/initializers/dragonfly.rb +50 -0
- data/config/initializers/seeds.rb +5 -0
- data/config/initializers/theme.rb +16 -0
- data/config/initializers/workarea.rb +3 -0
- data/config/locales/en.yml +26 -0
- data/config/routes.rb +2 -0
- data/lib/tasks/one_theme_tasks.rake +4 -0
- data/lib/workarea/one_theme.rb +24 -0
- data/lib/workarea/one_theme/engine.rb +13 -0
- data/lib/workarea/one_theme/version.rb +5 -0
- data/package.json +9 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -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 +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +38 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +29 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +54 -0
- data/test/dummy/config/environments/production.rb +91 -0
- data/test/dummy/config/environments/test.rb +44 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/test/dummy/config/initializers/assets.rb +14 -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/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +33 -0
- data/test/dummy/config/puma.rb +56 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +32 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +2 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/package.json +5 -0
- data/test/helpers/workarea/storefront/reviews_helper_test.decorator +11 -0
- data/test/integration/workarea/blog/wordpress_import_integration_test.decorator +27 -0
- data/test/integration/workarea/storefront/sharing_integration_test.decorator +40 -0
- data/test/integration/workarea/storefront/swatches_integration_test.decorator +28 -0
- data/test/system/workarea/admin/guest_browsing_system_test.decorator +40 -0
- data/test/system/workarea/storefront/analytics_system_test.decorator +51 -0
- data/test/system/workarea/storefront/browse_swatches_system_test.decorator +48 -0
- data/test/system/workarea/storefront/cart_items_system_test.decorator +98 -0
- data/test/system/workarea/storefront/categories_system_test.decorator +100 -0
- data/test/system/workarea/storefront/content_search_autocomplete_system_test.decorator +33 -0
- data/test/system/workarea/storefront/content_search_system_test.decorator +21 -0
- data/test/system/workarea/storefront/content_system_test.decorator +21 -0
- data/test/system/workarea/storefront/guest_checkout_system_test.decorator +37 -0
- data/test/system/workarea/storefront/logged_in_checkout_system_test.decorator +34 -0
- data/test/system/workarea/storefront/login_system_test.decorator +94 -0
- data/test/system/workarea/storefront/navigation_system_test.decorator +28 -0
- data/test/system/workarea/storefront/passwords_system_test.decorator +59 -0
- data/test/system/workarea/storefront/review_system_test.decorator +23 -0
- data/test/system/workarea/storefront/search_autocomplete_system_test.decorator +46 -0
- data/test/system/workarea/storefront/search_system_test.decorator +71 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +10 -0
- data/test/view_models/workarea/storefront/taxonomy_with_category_view_model_test.rb +35 -0
- data/test/view_models/workarea/storefront/taxonomy_with_products_view_model_test.rb +28 -0
- data/workarea-one_theme.gemspec +33 -0
- data/yarn.lock +3290 -0
- metadata +582 -0
@@ -0,0 +1,38 @@
|
|
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.checkout-shipping__heading= t('workarea.storefront.checkouts.shipping_service')
|
19
|
+
|
20
|
+
- @cart.shipping_options.each do |option|
|
21
|
+
.button-property{ data: { checkout_shipping_service: '' } }
|
22
|
+
.value= radio_button_tag :shipping_service, option.name, @cart.shipping_service == option.name, data: { analytics: checkout_shipping_service_selected_analytics_data(option).to_json }
|
23
|
+
= label_tag "shipping_service_#{option.name}", nil, class: 'button-property__name' do
|
24
|
+
%span.button-property__text #{option.name} #{number_to_currency(option.price)}
|
25
|
+
|
26
|
+
.checkout-shipping__section
|
27
|
+
= optional_field(t('workarea.storefront.checkouts.shipping_instructions_prompt'), @cart.shipping_instructions) do
|
28
|
+
.property
|
29
|
+
= label_tag :shipping_instructions, nil, class: 'property__name' do
|
30
|
+
%span.property__text= t('workarea.storefront.checkouts.shipping_instructions')
|
31
|
+
.value
|
32
|
+
= 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')
|
33
|
+
|
34
|
+
= append_partials('storefront.checkout_shipping_fields', step: @step, cart: @cart)
|
35
|
+
|
36
|
+
= append_partials('storefront.checkout_shipping_step_form', step: @step, cart: @cart)
|
37
|
+
|
38
|
+
%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'), 'light') }
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.featured-entry-content-block
|
2
|
+
- if local_assigns[:entries].present?
|
3
|
+
- local_assigns[:entries].each do |entry|
|
4
|
+
- if entry.active
|
5
|
+
.featured-entry-content-block__banner
|
6
|
+
- if entry.thumbnail_image.present?
|
7
|
+
= link_to image_tag(entry.thumbnail_image_url, alt: 'Blog entry featured image', class: 'featured-entry-content-block__image'), blog_entry_path(entry)
|
8
|
+
%div.featured-entry-content-block__content{ class: ('featured-entry-content-block__content--static' unless entry.thumbnail_image.present?) }
|
9
|
+
- if entry.blog.present?
|
10
|
+
= link_to entry.blog.name, blog_path(entry.blog), class: 'featured-entry-content-block__category-tag'
|
11
|
+
- if entry.name.present?
|
12
|
+
%h3.featured-entry-content-block__heading
|
13
|
+
= link_to entry.name.titleize, blog_entry_path(entry)
|
14
|
+
- if entry.author.present?
|
15
|
+
.featured-entry-content-block__byline= t('workarea.storefront.blogs.byline', author: entry.author)
|
16
|
+
- if entry.summary.present?
|
17
|
+
.featured-entry-content-block__body
|
18
|
+
%p= truncate(entry.summary, length: 150, separator: ' ')
|
19
|
+
= link_to t('workarea.storefront.blogs.read_more'), blog_entry_path(entry), class: 'featured-entry-content-block__read-more text-button text-button--large text-button--caret'
|
@@ -0,0 +1,20 @@
|
|
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
|
+
= link_to view_model.data[:content_link].presence || category_path(category), class: 'category-summary-content-block__content', style: view_model.content_background_style do
|
4
|
+
%span.category-summary-content-block__content-container
|
5
|
+
%span.category-summary-content-block__heading= view_model.title
|
6
|
+
%span.category-summary-content-block__call-to-action= view_model.call_to_action_text
|
7
|
+
|
8
|
+
.category-summary-content-block__products
|
9
|
+
.grid.grid--flush
|
10
|
+
- if products.empty?
|
11
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-wide
|
12
|
+
%p.category-summary-content-block__empty-message= t('workarea.storefront.content_blocks.category_summary.empty', name: category.name)
|
13
|
+
|
14
|
+
- else
|
15
|
+
- products.each do |product|
|
16
|
+
= render_schema_org(product_schema(product))
|
17
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-wide
|
18
|
+
%div.product-summary.product-summary--small
|
19
|
+
= render 'workarea/storefront/products/summary', product: product
|
20
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.hero-slider-content-block{ class: ('hero-slider-content-block--full-bleed' if view_model.data[:full_bleed]), data: { slick_slider: view_model.content_block_options } }
|
2
|
+
- view_model.series.each_with_index do |slide, i|
|
3
|
+
- if slide.data[:image].present?
|
4
|
+
.hero-slider-content-block__slide
|
5
|
+
= image_tag view_model.find_asset(slide.data[:image]).url, class: 'hero-slider-content-block__slide-image', alt: slide.data[:alt_text].presence
|
6
|
+
- if slide.has_content?
|
7
|
+
- slide_content = capture_haml do
|
8
|
+
%div{ class: ('content-wrapper' if view_model.data[:full_bleed]) }
|
9
|
+
.hero-slider-content-block__slide-content
|
10
|
+
- if slide.data[:heading].present?
|
11
|
+
.hero-slider-content-block__slide-heading= slide.data[:heading]
|
12
|
+
- if slide.data[:sub_heading].present?
|
13
|
+
.hero-slider-content-block__slide-sub-heading= slide.data[:sub_heading]
|
14
|
+
|
15
|
+
= link_to_if slide.data[:url].present?, slide_content, slide.data[:url]
|
@@ -0,0 +1,11 @@
|
|
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.grid--flush{ data: { analytics: product_list_analytics_data("Custom product list").to_json, slick_slider: view_model.slider_config } }
|
7
|
+
- products.each do |product|
|
8
|
+
= render_schema_org(product_schema(product))
|
9
|
+
.grid__cell{ class: view_model.product_cell_size }
|
10
|
+
%div.product-summary.product-summary--small
|
11
|
+
= render 'workarea/storefront/products/summary', product: product
|
@@ -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--gray svg-icon--hover-primary-color')
|
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--gray svg-icon--hover-primary-color')
|
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--gray svg-icon--hover-primary-color')
|
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--gray svg-icon--hover-primary-color')
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.taxonomy-content-block.taxonomy-content-block--with-products
|
2
|
+
.taxonomy-content-block__container{ class: ('taxonomy-content-block__container--without-products' unless view_model.products.present? )}
|
3
|
+
- if view_model.data[:header].present?
|
4
|
+
%span.taxonomy-content-block__menu-heading= view_model.data[:header]
|
5
|
+
|
6
|
+
%ul.taxonomy-content-block__menu
|
7
|
+
- if view_model.show_starting_taxon?
|
8
|
+
%li.taxonomy-content-block__menu-item.taxonomy-content-block__menu-item--start
|
9
|
+
- if view_model.starting_taxon.placeholder?
|
10
|
+
= view_model.starting_taxon.name
|
11
|
+
- else
|
12
|
+
= 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'
|
13
|
+
- view_model.taxons.each do |taxon|
|
14
|
+
%li.taxonomy-content-block__menu-item
|
15
|
+
- if taxon.placeholder?
|
16
|
+
= taxon.name
|
17
|
+
- else
|
18
|
+
= link_to taxon.name, storefront_path_for(taxon), data: { analytics: primary_navigation_analytics_data(taxon).to_json }, class: 'taxonomy-content-block__menu-link'
|
19
|
+
|
20
|
+
- if view_model.products.present?
|
21
|
+
.taxonomy-content-block__products
|
22
|
+
.grid.grid--flush{ data: { analytics: product_list_analytics_data("Custom product list").to_json } }
|
23
|
+
- view_model.products.each do |product|
|
24
|
+
.grid__cell.grid__cell--50{ class: view_model.product_width_class }
|
25
|
+
%div.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
|
26
|
+
= render 'workarea/storefront/products/summary', product: product
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.taxonomy-content-block.taxonomy-content-block--with-products
|
2
|
+
.taxonomy-content-block__container{ class: ('taxonomy-content-block__container--without-products' unless view_model.products.present? )}
|
3
|
+
- if view_model.data[:header].present?
|
4
|
+
%span.taxonomy-content-block__menu-heading= view_model.data[:header]
|
5
|
+
|
6
|
+
%ul.taxonomy-content-block__menu
|
7
|
+
- if view_model.show_starting_taxon?
|
8
|
+
%li.taxonomy-content-block__menu-item.taxonomy-content-block__menu-item--start
|
9
|
+
- if view_model.starting_taxon.placeholder?
|
10
|
+
= view_model.starting_taxon.name
|
11
|
+
- else
|
12
|
+
= 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'
|
13
|
+
- view_model.taxons.each do |taxon|
|
14
|
+
%li.taxonomy-content-block__menu-item
|
15
|
+
- if taxon.placeholder?
|
16
|
+
= taxon.name
|
17
|
+
- else
|
18
|
+
= link_to taxon.name, storefront_path_for(taxon), data: { analytics: primary_navigation_analytics_data(taxon).to_json }, class: 'taxonomy-content-block__menu-link'
|
19
|
+
|
20
|
+
- if view_model.products.present?
|
21
|
+
.taxonomy-content-block__products
|
22
|
+
.grid.grid--flush{ data: { analytics: product_list_analytics_data("Custom product list").to_json } }
|
23
|
+
- view_model.products.each do |product|
|
24
|
+
.grid__cell.grid__cell--50{ class: view_model.product_width_class }
|
25
|
+
%div.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
|
26
|
+
= render 'workarea/storefront/products/summary', product: product
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.mobile-nav__search
|
2
|
+
= form_tag search_path, method: 'get', class: 'mobile-nav__search-form', role: 'search' do
|
3
|
+
.mobile-nav__search-value= search_field_tag :q, params[:q], id: 'mobile_navigation_search', class: 'text-box', title: t('workarea.storefront.searches.search'), placeholder: t('workarea.storefront.searches.search'), tabindex: 1, required: true, data: { search_field: '' }
|
4
|
+
.mobile-nav__search-button
|
5
|
+
= button_tag value: 'search', class: 'button button--small button--full-height button--transparent', tabindex: 2 do
|
6
|
+
= inline_svg('workarea/storefront/icons/search.svg', class: 'page-header__cart-icon svg-icon svg-icon--black', title: t('workarea.storefront.forms.go'))
|
7
|
+
|
8
|
+
%ul.mobile-nav__menu{ role: 'navigation' }
|
9
|
+
- @menus.each do |menu|
|
10
|
+
- styles = link_selected?(menu.taxon) ? 'mobile-nav__link mobile-nav__link--selected' : 'mobile-nav__link'
|
11
|
+
%li.mobile-nav__item{ class: ('mobile-nav__item--has-children' if menu.content_blocks.present?)}
|
12
|
+
- if menu.content_blocks.present?
|
13
|
+
= link_to menu.name, menu_path(menu, return_to: mobile_nav_return_path, mobile_nav: true), class: styles
|
14
|
+
- elsif menu.taxon.present?
|
15
|
+
= link_to menu.taxon.name, storefront_path_for(menu.taxon), class: styles
|
16
|
+
- else
|
17
|
+
%span{ class: styles }= menu.name
|
@@ -0,0 +1,286 @@
|
|
1
|
+
.order-summary
|
2
|
+
|
3
|
+
= append_partials('storefront.orders_summary_top', order: order)
|
4
|
+
.order-summary__section
|
5
|
+
.box
|
6
|
+
.box__header
|
7
|
+
.grid.grid--middle.grid--auto.grid--large
|
8
|
+
.grid__cell
|
9
|
+
%h2.heading.heading--3.box__heading #{t('workarea.storefront.orders.order')} ##{order.id}
|
10
|
+
.grid__cell
|
11
|
+
%strong
|
12
|
+
#{t('workarea.storefront.orders.placed_at')}:
|
13
|
+
= local_time(order.placed_at, '%B %e, %Y')
|
14
|
+
.grid__cell
|
15
|
+
%strong
|
16
|
+
#{t('workarea.storefront.orders.status')}:
|
17
|
+
= order.fulfillment_status || order.status
|
18
|
+
= append_partials('storefront.order_summary_header', order: order, show_fullfillment: local_assigns[:show_fullfillment])
|
19
|
+
|
20
|
+
.box__body
|
21
|
+
.grid
|
22
|
+
.grid__cell.grid__cell--25-at-medium
|
23
|
+
%h3.heading.heading--4= t('workarea.storefront.orders.billing_address')
|
24
|
+
%address
|
25
|
+
= order.billing_address.first_name
|
26
|
+
= order.billing_address.last_name
|
27
|
+
- if order.billing_address.company.present?
|
28
|
+
%br
|
29
|
+
= order.billing_address.company
|
30
|
+
%br
|
31
|
+
= order.billing_address.street
|
32
|
+
- if order.billing_address.street_2.present?
|
33
|
+
%br
|
34
|
+
= order.billing_address.street_2
|
35
|
+
%br
|
36
|
+
= order.billing_address.city
|
37
|
+
= order.billing_address.region
|
38
|
+
= order.billing_address.postal_code
|
39
|
+
%br
|
40
|
+
= order.billing_address.country
|
41
|
+
%br
|
42
|
+
= number_to_phone order.billing_address.phone_number, extension: order.billing_address.phone_extension
|
43
|
+
|
44
|
+
.grid__cell.grid__cell--25-at-medium
|
45
|
+
%h3.heading.heading--4= t('workarea.storefront.orders.payment_method')
|
46
|
+
- order.tenders.each do |tender|
|
47
|
+
= render "workarea/storefront/orders/tenders/#{tender.slug}", tender: tender
|
48
|
+
|
49
|
+
.grid__cell.grid__cell--25-at-medium
|
50
|
+
%h3.heading.heading--4= t('workarea.storefront.orders.items')
|
51
|
+
%ol
|
52
|
+
- order.items.each do |item|
|
53
|
+
%li
|
54
|
+
%p
|
55
|
+
= link_to item.product_name, product_path(item.product, sku: item.sku)
|
56
|
+
- if item.quantity > 1
|
57
|
+
%br
|
58
|
+
%strong #{t('workarea.storefront.orders.quantity')}: #{item.quantity}
|
59
|
+
%br
|
60
|
+
%strong= number_to_currency(item.total_price)
|
61
|
+
%br
|
62
|
+
= item.sku
|
63
|
+
%br
|
64
|
+
- if item.has_options?
|
65
|
+
- item.details.each do |name, value|
|
66
|
+
#{name.titleize}: #{value}
|
67
|
+
%br
|
68
|
+
- item.customizations.each do |name, value|
|
69
|
+
#{name.titleize}: #{value}
|
70
|
+
%br
|
71
|
+
- if item.token&.enabled?
|
72
|
+
= link_to t('workarea.storefront.orders.download'), download_path(item.token)
|
73
|
+
= append_partials('storefront.order_summary_item_details', item: item)
|
74
|
+
|
75
|
+
.grid__cell.grid__cell--25-at-medium
|
76
|
+
%h3.heading.heading--4= t('workarea.storefront.orders.totals')
|
77
|
+
%table.table.table--totals
|
78
|
+
%tbody
|
79
|
+
%tr
|
80
|
+
%th
|
81
|
+
%span #{t('workarea.storefront.orders.subtotal')}:
|
82
|
+
%td= number_to_currency(order.subtotal_price)
|
83
|
+
|
84
|
+
- if order.total_adjustments.any?
|
85
|
+
- order.total_adjustments.each do |adjustment|
|
86
|
+
%tr
|
87
|
+
%th
|
88
|
+
%span= adjustment.description
|
89
|
+
%td
|
90
|
+
- if adjustment.discount?
|
91
|
+
%strong.table__price-discount= number_to_currency(adjustment.amount)
|
92
|
+
- else
|
93
|
+
%span= number_to_currency(adjustment.amount)
|
94
|
+
|
95
|
+
- if order.requires_shipping?
|
96
|
+
%tr
|
97
|
+
%th
|
98
|
+
%span #{t('workarea.storefront.orders.shipping')}:
|
99
|
+
%td= number_to_currency(order.shipping_total)
|
100
|
+
|
101
|
+
%tr
|
102
|
+
%th
|
103
|
+
%span #{t('workarea.storefront.orders.tax')}:
|
104
|
+
%td= number_to_currency(order.tax_total)
|
105
|
+
|
106
|
+
- if order.store_credit_amount > 0
|
107
|
+
%tr
|
108
|
+
%th
|
109
|
+
%span= t('workarea.storefront.orders.store_credit')
|
110
|
+
%td
|
111
|
+
%strong.table__price-discount −#{number_to_currency(order.store_credit_amount)}
|
112
|
+
|
113
|
+
= append_partials('storefront.order_summary_payment', order: order)
|
114
|
+
|
115
|
+
%tr.table__total
|
116
|
+
%th
|
117
|
+
%span
|
118
|
+
%strong #{t('workarea.storefront.orders.total')}:
|
119
|
+
%td
|
120
|
+
%strong= number_to_currency(order.paid_amount)
|
121
|
+
|
122
|
+
- if order.requires_shipping?
|
123
|
+
.order-summary__section
|
124
|
+
.box
|
125
|
+
.box__header
|
126
|
+
%h2.heading.heading--3.box__heading= t('workarea.storefront.orders.shipping')
|
127
|
+
.box__body
|
128
|
+
.grid
|
129
|
+
- order.shippings.each do |shipping|
|
130
|
+
.grid__cell.grid__cell--33-at-medium
|
131
|
+
%address
|
132
|
+
= shipping.address.first_name
|
133
|
+
= shipping.address.last_name
|
134
|
+
- if shipping.address.company.present?
|
135
|
+
%br
|
136
|
+
= shipping.address.company
|
137
|
+
%br
|
138
|
+
= shipping.address.street
|
139
|
+
- if shipping.address.street_2.present?
|
140
|
+
%br
|
141
|
+
= shipping.address.street_2
|
142
|
+
%br
|
143
|
+
= shipping.address.city
|
144
|
+
= shipping.address.region
|
145
|
+
= shipping.address.postal_code
|
146
|
+
%br
|
147
|
+
= shipping.address.country
|
148
|
+
%br
|
149
|
+
= number_to_phone shipping.address.phone_number, extension: shipping.address.phone_extension
|
150
|
+
|
151
|
+
%p
|
152
|
+
%strong= shipping.try(:shipping_service).try(:name)
|
153
|
+
- if shipping.instructions.present?
|
154
|
+
%p
|
155
|
+
%strong= t('workarea.storefront.orders.shipping_instructions')
|
156
|
+
%br
|
157
|
+
= shipping.instructions
|
158
|
+
|
159
|
+
.grid__cell.grid__cell--66-at-medium
|
160
|
+
- if shipping.partial?
|
161
|
+
%ul.product-list
|
162
|
+
- shipping.items.each do |item|
|
163
|
+
%li.product-list__item
|
164
|
+
.product-list__item-cell
|
165
|
+
.product-list__summary
|
166
|
+
%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'
|
167
|
+
.product-list__info
|
168
|
+
%p.product-list__name= link_to item.product_name, product_path(item.product, sku: item.sku)
|
169
|
+
%p.product-list__id= item.sku_name
|
170
|
+
- if item.has_options?
|
171
|
+
.product-list__option-group
|
172
|
+
- item.details.each do |name, value|
|
173
|
+
%p.product-list__option #{name.titleize}: #{value}
|
174
|
+
- item.customizations.each do |name, value|
|
175
|
+
%p.product-list__customization #{name.titleize}: #{value}
|
176
|
+
= append_partials('storefront.order_summary_item_details', item: item)
|
177
|
+
.product-list__item-cell
|
178
|
+
%table.table
|
179
|
+
%thead
|
180
|
+
%tr
|
181
|
+
%th.table__quantity= t('workarea.storefront.orders.quantity')
|
182
|
+
%tbody
|
183
|
+
%tr
|
184
|
+
%td.table__quantity
|
185
|
+
%p= item.quantity
|
186
|
+
|
187
|
+
- if order.packages.any?
|
188
|
+
.box
|
189
|
+
.box__body
|
190
|
+
.grid
|
191
|
+
- order.packages.each_with_index do |package, index|
|
192
|
+
.grid__cell.grid__cell--50-at-medium
|
193
|
+
.box
|
194
|
+
.box__header
|
195
|
+
%h3.box__heading= "#{t('workarea.storefront.orders.package')} #{index + 1}"
|
196
|
+
.box__body
|
197
|
+
%ul.product-list
|
198
|
+
- package.items.each do |item|
|
199
|
+
%li.product-list__item
|
200
|
+
.product-list__item-cell
|
201
|
+
.product-list__summary
|
202
|
+
%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'
|
203
|
+
.product-list__info
|
204
|
+
%p.product-list__name= link_to item.product_name, product_path(item.product, sku: item.sku)
|
205
|
+
%p.product-list__id= item.sku
|
206
|
+
|
207
|
+
.grid__cell.grid__cell--50-at-medium
|
208
|
+
- if !package.tracking_number.present?
|
209
|
+
%p= t('workarea.storefront.orders.no_tracking')
|
210
|
+
- else
|
211
|
+
%p= link_to t('workarea.storefront.orders.track_package'), package.tracking_link, target: '_blank', rel: 'noopener', class: 'button button--full'
|
212
|
+
= append_partials('storefront.order_summary_package_actions', package: package)
|
213
|
+
|
214
|
+
= append_partials('storefront.order_summary_shipping', shipping: shipping)
|
215
|
+
|
216
|
+
- if order.pending_items.any? && (!local_assigns.key?(:show_fullfillment) || show_fullfillment)
|
217
|
+
.order-summary__section
|
218
|
+
.box
|
219
|
+
.box__header
|
220
|
+
%h2.heading.heading--3.box__heading= t('workarea.storefront.orders.pending')
|
221
|
+
.box__body
|
222
|
+
%ul.product-list
|
223
|
+
- order.pending_items.each do |item|
|
224
|
+
%li.product-list__item
|
225
|
+
.product-list__item-cell
|
226
|
+
.product-list__summary
|
227
|
+
%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'
|
228
|
+
.product-list__info
|
229
|
+
%p.product-list__name= link_to item.product_name, product_path(item.product, sku: item.sku)
|
230
|
+
%p.product-list__id= item.sku
|
231
|
+
%p.product-list__quantity #{t('workarea.storefront.orders.quantity')}: #{item.quantity}
|
232
|
+
|
233
|
+
- if order.refunds.any? && (!local_assigns.key?(:show_fullfillment) || show_fullfillment)
|
234
|
+
.order-summary__section
|
235
|
+
.box
|
236
|
+
.box__header
|
237
|
+
%h2.heading.heading--3.box__heading= t('workarea.storefront.orders.refunds')
|
238
|
+
.box__body
|
239
|
+
- order.refunds.each do |refund|
|
240
|
+
%ul
|
241
|
+
- refund.tenders.each do |tender, amount|
|
242
|
+
%li
|
243
|
+
= t('workarea.storefront.orders.issued')
|
244
|
+
= local_time(refund.created_at, :short_date_at_time)
|
245
|
+
= t('workarea.storefront.orders.refund_description_html', type: tender.name.downcase, amount: number_to_currency(amount))
|
246
|
+
|
247
|
+
- if order.canceled_items.any? && (!local_assigns.key?(:show_fullfillment) || show_fullfillment)
|
248
|
+
.order-summary__section
|
249
|
+
.box
|
250
|
+
.box__header
|
251
|
+
%h2.heading.heading--3.box__heading= t('workarea.storefront.orders.cancelations')
|
252
|
+
.box__body
|
253
|
+
%ul.product-list
|
254
|
+
- order.canceled_items.each do |item|
|
255
|
+
%li.product-list__item
|
256
|
+
.product-list__item-cell
|
257
|
+
.product-list__summary
|
258
|
+
%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'
|
259
|
+
.product-list__info
|
260
|
+
%p.product-list__name= link_to item.product_name, product_path(item.product, sku: item.sku)
|
261
|
+
%p.product-list__id= item.sku
|
262
|
+
%p.product-list__quantity #{t('workarea.storefront.orders.quantity')}: #{item.quantity}
|
263
|
+
|
264
|
+
= append_partials('storefront.orders_summary_bottom', order: order)
|
265
|
+
|
266
|
+
- if local_assigns[:recommendations].present?
|
267
|
+
.hidden.hidden--for-small-only
|
268
|
+
.order-summary__section
|
269
|
+
.recommendations
|
270
|
+
%h2.recommendations__heading.heading.heading--3= t('workarea.storefront.recommendations.you_may_also_like')
|
271
|
+
.recommendations__products
|
272
|
+
.grid
|
273
|
+
- recommendations.each do |product|
|
274
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
275
|
+
.product-summary.product-summary--small
|
276
|
+
= render 'workarea/storefront/products/summary', product: product
|
277
|
+
|
278
|
+
%ul.order-help-menu
|
279
|
+
%li.order-help-menu__item
|
280
|
+
= link_to t('workarea.storefront.layouts.contact_us'), contact_path, data: { dialog_button: '' }
|
281
|
+
%li.order-help-menu__item
|
282
|
+
= link_to page_path('shipping-information'), target: '_blank', rel: 'noopener', data: { dialog_button: '' } do
|
283
|
+
= t('workarea.storefront.layouts.shipping_policy')
|
284
|
+
%li.order-help-menu__item
|
285
|
+
= link_to page_path('return-information'), target: '_blank', rel: 'noopener', data: { dialog_button: '' } do
|
286
|
+
= t('workarea.storefront.layouts.returns')
|