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,33 @@
|
|
1
|
+
#taxonomy-with-category-summary-content-block.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'taxonomy_with_category_summary_content_block')
|
4
|
+
|
5
|
+
%p Displays a column of taxonomy with up to 4 products from a specified category
|
6
|
+
|
7
|
+
%p Taxonomy with category summary content block
|
8
|
+
.style-guide__example-block
|
9
|
+
.taxonomy-content-block.taxonomy-content-block--with-products
|
10
|
+
.taxonomy-content-block__container
|
11
|
+
%span.taxonomy-content-block__menu-heading Taxonomy Heading
|
12
|
+
|
13
|
+
%ul.taxonomy-content-block__menu
|
14
|
+
- (1..5).each do |i|
|
15
|
+
%li.taxonomy-content-block__menu-item
|
16
|
+
- if i.even?
|
17
|
+
Taxon #{i}
|
18
|
+
- else
|
19
|
+
= link_to "Taxon #{i}", '#', class: 'taxonomy-content-block__menu-link'
|
20
|
+
|
21
|
+
.taxonomy-content-block__products
|
22
|
+
.grid.grid--flush
|
23
|
+
- 4.times do
|
24
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
25
|
+
.product-summary
|
26
|
+
%p.product-summary__media
|
27
|
+
= link_to('#', class: 'product-summary__media-link') do
|
28
|
+
= image_tag('workarea/storefront/style_guide_product.jpg', alt: 'Product Name', class: 'product-summary__media-image')
|
29
|
+
.product-summary__info
|
30
|
+
%p.product-summary__name= link_to('Product Name', '#')
|
31
|
+
.product-prices.product-prices--summary
|
32
|
+
%p.product-prices__price
|
33
|
+
%span= number_to_currency(109.99)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#taxonomy-with-products-content-block.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'taxonomy_with_products_content_block')
|
4
|
+
|
5
|
+
%p Displays a column of taxonomy with up to 4 manually selected products, similar to product list blocktype.
|
6
|
+
|
7
|
+
%p Taxonomy with products content block
|
8
|
+
.style-guide__example-block
|
9
|
+
.taxonomy-content-block.taxonomy-content-block--with-products
|
10
|
+
.taxonomy-content-block__container
|
11
|
+
%span.taxonomy-content-block__menu-heading Taxonomy Heading
|
12
|
+
|
13
|
+
%ul.taxonomy-content-block__menu
|
14
|
+
- (1..5).each do |i|
|
15
|
+
%li.taxonomy-content-block__menu-item
|
16
|
+
- if i.even?
|
17
|
+
Taxon #{i}
|
18
|
+
- else
|
19
|
+
= link_to "Taxon #{i}", '#', class: 'taxonomy-content-block__menu-link'
|
20
|
+
|
21
|
+
.taxonomy-content-block__products
|
22
|
+
.grid.grid--flush
|
23
|
+
- 2.times do
|
24
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
25
|
+
.product-summary
|
26
|
+
%p.product-summary__media
|
27
|
+
= link_to('#', class: 'product-summary__media-link') do
|
28
|
+
= image_tag('workarea/storefront/style_guide_product.jpg', alt: 'Product Name', class: 'product-summary__media-image')
|
29
|
+
.product-summary__info
|
30
|
+
%p.product-summary__name= link_to('Product Name', '#')
|
31
|
+
.product-prices.product-prices--summary
|
32
|
+
%p.product-prices__price
|
33
|
+
%span= number_to_currency(109.99)
|
@@ -0,0 +1,63 @@
|
|
1
|
+
#text-box.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'text_box')
|
4
|
+
|
5
|
+
%p Provides uniform styling for <code>input</code> elements.
|
6
|
+
|
7
|
+
.style-guide__example-block
|
8
|
+
= text_field_tag 'wl_text_box_blank', nil, class: 'text-box'
|
9
|
+
.style-guide__example-block
|
10
|
+
= text_field_tag 'wl_text_box_placeholder', nil, class: 'text-box', placeholder: 'Placeholder'
|
11
|
+
.style-guide__example-block
|
12
|
+
= text_field_tag 'wl_text_box_value', 'Value', class: 'text-box'
|
13
|
+
.style-guide__example-block
|
14
|
+
= number_field_tag 'wl_text_box_number', 99, class: 'text-box'
|
15
|
+
|
16
|
+
#text-box--multi-line.style-guide__subsection
|
17
|
+
|
18
|
+
%h3= link_to_style_guide('components', 'text_box__multi_line')
|
19
|
+
|
20
|
+
%p Increases the height of a #{link_to_style_guide('components', 'text_box', true)}. Typically used with <code>textarea</code> elements.
|
21
|
+
|
22
|
+
.style-guide__example-block
|
23
|
+
= text_area_tag 'wl_text_box_multi_line_blank', nil, class: 'text-box text-box--multi-line'
|
24
|
+
.style-guide__example-block
|
25
|
+
= text_area_tag 'wl_text_box_multi_line_placeholder', nil, class: 'text-box text-box--multi-line', placeholder: 'Placeholder'
|
26
|
+
.style-guide__example-block
|
27
|
+
= text_area_tag 'wl_text_box_multi_line_value', "Value line 1\nValue line 2\nValue line 3\nValue line 4\nValue line 5\nValue line 6", class: 'text-box text-box--multi-line'
|
28
|
+
|
29
|
+
#text-box--small.style-guide__subsection
|
30
|
+
|
31
|
+
%h3= link_to_style_guide('components', 'text_box__small')
|
32
|
+
|
33
|
+
%p Reduces width of a #{link_to_style_guide('components', 'text_box', true)}. Used mostly for short strings of text, or longer numerical values.
|
34
|
+
|
35
|
+
.style-guide__example-block
|
36
|
+
= text_field_tag 'wl_text_box_small', 19106, class: 'text-box text-box--small'
|
37
|
+
|
38
|
+
#text-box--wide.style-guide__subsection
|
39
|
+
|
40
|
+
%h3= link_to_style_guide('components', 'text_box__wide')
|
41
|
+
|
42
|
+
%p Increases width of a #{link_to_style_guide('components', 'text_box', true)}. Frequently used with #{link_to_style_guide('components', 'text_box__multi_line', true)}.
|
43
|
+
|
44
|
+
.style-guide__example-block
|
45
|
+
= text_field_tag 'wl_text_box_wide', nil, class: 'text-box text-box--wide'
|
46
|
+
|
47
|
+
#text-box--x-small.style-guide__subsection
|
48
|
+
|
49
|
+
%h3= link_to_style_guide('components', 'text_box__x_small')
|
50
|
+
|
51
|
+
%p Reduces width of a #{link_to_style_guide('components', 'text_box', true)}. Used mostly for sort numerical values.
|
52
|
+
|
53
|
+
.style-guide__example-block
|
54
|
+
= number_field_tag 'wl_text_box_x_small', 99, class: 'text-box text-box--x-small'
|
55
|
+
|
56
|
+
#text-box--secondary.style-guide__subsection
|
57
|
+
|
58
|
+
%h3= link_to_style_guide('components', 'text_box__secondary')
|
59
|
+
|
60
|
+
%p Changes styles of a #{link_to_style_guide('components', 'text_box', true)} used primarily in header and footer.
|
61
|
+
|
62
|
+
.style-guide__example-block
|
63
|
+
= text_field_tag 'wl_text_secondary', 99, class: 'text-box text-box--secondary'
|
@@ -0,0 +1,79 @@
|
|
1
|
+
#color-variables.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('settings', 'color_variables')
|
4
|
+
|
5
|
+
%h5 Base colors
|
6
|
+
.grid.grid--auto
|
7
|
+
- colors = %w(red green blue yellow black white black-alpha-15 black-alpha-50 white-alpha-50 transparent)
|
8
|
+
- colors.each do |color|
|
9
|
+
.grid__cell
|
10
|
+
.color-box
|
11
|
+
.color-box__swatch{ class: "style-guide__color-swatch--#{color}" }
|
12
|
+
.color-box__swatch-name $#{color}
|
13
|
+
%br
|
14
|
+
|
15
|
+
%h4 Brand colors
|
16
|
+
|
17
|
+
= render "workarea/storefront/style_guides/settings/color_schemes/#{Workarea.config.theme[:color_scheme].downcase}_color_scheme"
|
18
|
+
|
19
|
+
%h4 Functional Color variables - these should be used in the storefront
|
20
|
+
%br
|
21
|
+
|
22
|
+
%h5 Primary colors
|
23
|
+
.grid.grid--auto
|
24
|
+
- colors = %w(primary-color primary-color-light primary-color-dark)
|
25
|
+
- colors.each do |color|
|
26
|
+
.grid__cell
|
27
|
+
.color-box
|
28
|
+
.color-box__swatch{ class: "color-box__swatch--#{color}" }
|
29
|
+
.color-box__swatch-name $#{color}
|
30
|
+
%br
|
31
|
+
|
32
|
+
%h5 Background colors
|
33
|
+
.grid.grid--auto
|
34
|
+
- colors = %w(background-color background-color-component background-secondary-color)
|
35
|
+
- colors.each do |color|
|
36
|
+
.grid__cell
|
37
|
+
.color-box
|
38
|
+
.color-box__swatch{ class: "color-box__swatch--#{color}" }
|
39
|
+
.color-box__swatch-name $#{color}
|
40
|
+
%br
|
41
|
+
|
42
|
+
%h5 Text colors
|
43
|
+
.grid.grid--auto
|
44
|
+
- colors = %w(font-color heading-color product-name-color)
|
45
|
+
- colors.each do |color|
|
46
|
+
.grid__cell
|
47
|
+
.color-box
|
48
|
+
.color-box__swatch{ class: "color-box__swatch--#{color}" }
|
49
|
+
.color-box__swatch-name $#{color}
|
50
|
+
%br
|
51
|
+
|
52
|
+
%h5 Input colors
|
53
|
+
.grid.grid--auto
|
54
|
+
- colors = %w(input-color input-background-color input-secondary-color input-secondary-bg-color)
|
55
|
+
- colors.each do |color|
|
56
|
+
.grid__cell
|
57
|
+
.color-box
|
58
|
+
.color-box__swatch{ class: "color-box__swatch--#{color}" }
|
59
|
+
.color-box__swatch-name $#{color}
|
60
|
+
%br
|
61
|
+
|
62
|
+
%h5 Header + Navigation colors
|
63
|
+
.grid.grid--auto
|
64
|
+
- colors = %w(header-icon-color utility-nav-background-color primary-nav-links primary-nav-dropdown-links mobile-nav-links)
|
65
|
+
- colors.each do |color|
|
66
|
+
.grid__cell
|
67
|
+
.color-box
|
68
|
+
.color-box__swatch{ class: "color-box__swatch--#{color}" }
|
69
|
+
.color-box__swatch-name $#{color}
|
70
|
+
%br
|
71
|
+
|
72
|
+
%h5 Other colors
|
73
|
+
.grid.grid--auto
|
74
|
+
- colors = %w(border-color highlight-color overlay-shadow-color focus-ring-color)
|
75
|
+
- colors.each do |color|
|
76
|
+
.grid__cell
|
77
|
+
.color-box
|
78
|
+
.color-box__swatch{ class: "color-box__swatch--#{color}" }
|
79
|
+
.color-box__swatch-name $#{color}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
.grid.grid--auto
|
2
|
+
- colors = %w(mustard gray lightest-gray light-gray dark-gray off-black denim lightest-denim light-denim dark-denim)
|
3
|
+
- colors.each do |color|
|
4
|
+
.grid__cell
|
5
|
+
.color-box
|
6
|
+
.color-box__swatch{ class: "color-box__swatch--#{color}" }
|
7
|
+
.color-box__swatch-name $#{color}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#headings.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('typography', 'headings')
|
4
|
+
|
5
|
+
%p Sets up the element to be styled the same as an <code>h1-6</code>, using the <code>heading</code> class in combination with a <code>heading--X</code> modifier, where <code>X</code> is the
|
6
|
+
|
7
|
+
%p Can be used on any inline or block-level element to visually present the element as a heading. Frequently applied when, semantically speaking, using a given <code>h1-6</code> tag wouldn't be appropriate.
|
8
|
+
|
9
|
+
%p In the following examples we have a variety of text-wrapping elements:
|
10
|
+
|
11
|
+
%p should style a variety of elements properly.
|
12
|
+
.style-guide__example-block
|
13
|
+
%h1 Heading 1
|
14
|
+
%span.heading.heading--1 Heading 1
|
15
|
+
%h2 Heading 2
|
16
|
+
%p.heading.heading--2 Heading 2
|
17
|
+
%h3 Heading 3
|
18
|
+
%strong.heading.heading--3 Heading 3
|
19
|
+
%h4 Heading 4
|
20
|
+
%h6.heading.heading--4 Heading 4
|
21
|
+
%h5 Heading 5
|
22
|
+
%h3.heading.heading--5 Heading 5
|
23
|
+
%h6 Heading 6
|
24
|
+
%h1.heading.heading--6 Heading 6
|
25
|
+
|
26
|
+
#heading--fancy.style-guide__subsection
|
27
|
+
|
28
|
+
%h3= link_to_style_guide('components', 'heading__fancy')
|
29
|
+
|
30
|
+
%p Changes heading to use 'fancy' styles, this H1 is fancy by default
|
31
|
+
|
32
|
+
.style-guide__example-block
|
33
|
+
%span.heading.heading--1 Heading 1 -- fancy
|
34
|
+
%p.heading.heading--fancy.heading--2 Heading 2 -- fancy
|
35
|
+
%strong.heading.heading--fancy.heading--3 Heading 3 -- fancy
|
36
|
+
%h6.heading.heading--fancy.heading--4 Heading 4 -- fancy
|
37
|
+
%h3.heading.heading--fancy.heading--5 Heading 5 -- fancy
|
38
|
+
%h1.heading.heading--fancy.heading--6 Heading 6 -- fancy
|
39
|
+
|
40
|
+
#heading--center-at-small.style-guide__subsection
|
41
|
+
|
42
|
+
%h3= link_to_style_guide('components', 'heading__center_at_small')
|
43
|
+
|
44
|
+
%p Center a heading for small devices, left align at medium breakpoint
|
45
|
+
|
46
|
+
.style-guide__example-block
|
47
|
+
%span.heading.heading--center-at-small Heading 1
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#links.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('typography', 'links')
|
4
|
+
|
5
|
+
%p Provides styles for link elements as well as a .link selector which is designed to be a baseline for any link modifiers you may need in your project.
|
6
|
+
|
7
|
+
%p should style <code>a</code> elements.
|
8
|
+
.style-guide__example-block
|
9
|
+
= link_to('A link', 'www.example.com')
|
10
|
+
|
11
|
+
%p should style <code>link</code> classes.
|
12
|
+
.style-guide__example-block
|
13
|
+
%span.link Not really a link
|
14
|
+
|
15
|
+
#link--secondary.style-guide__subsection
|
16
|
+
|
17
|
+
%h3= link_to_style_guide('typography', 'link__secondary')
|
18
|
+
|
19
|
+
%p Secondary link styles, inverted colors used primarily in application header, footer, and filter drawer.
|
20
|
+
|
21
|
+
%p should style <code>a</code> elements.
|
22
|
+
.style-guide__example-block
|
23
|
+
= link_to('A link', 'www.example.com', class: "link link--secondary")
|
24
|
+
|
25
|
+
%p should style <code>link link--secondary</code> classes.
|
26
|
+
.style-guide__example-block
|
27
|
+
%span.link.link--secondary Not really a link
|
@@ -0,0 +1,16 @@
|
|
1
|
+
.grid
|
2
|
+
.grid__cell
|
3
|
+
.box
|
4
|
+
.box__header
|
5
|
+
%span.box__action= link_to t('workarea.storefront.wish_lists.manage'), users_wish_list_path, class: 'button'
|
6
|
+
%h2.box__heading= t('workarea.storefront.wish_lists.wish_list')
|
7
|
+
.box__body
|
8
|
+
- if user.wish_list_items.any?
|
9
|
+
.grid.grid--flush
|
10
|
+
- user.wish_list_items.each do |item|
|
11
|
+
= render_schema_org(product_schema(item.product))
|
12
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
13
|
+
.product-summary.product-summary--small
|
14
|
+
= render 'workarea/storefront/products/summary', product: item.product
|
15
|
+
- else
|
16
|
+
%p= t('workarea.storefront.wish_lists.empty.message', state: t('workarea.storefront.wish_lists.empty.states.unpurchased'))
|
@@ -0,0 +1,41 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.edit_title')
|
2
|
+
|
3
|
+
- content_for :breadcrumbs do
|
4
|
+
%p.breadcrumbs__node-group
|
5
|
+
%span.breadcrumbs__node
|
6
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
7
|
+
%span.breadcrumbs__node
|
8
|
+
= link_to t('workarea.storefront.users.account'), users_account_path, class: 'breadcrumbs__link'
|
9
|
+
%span.breadcrumbs__node
|
10
|
+
%span.breadcrumbs__text= t('workarea.storefront.users.edit_title')
|
11
|
+
|
12
|
+
.view
|
13
|
+
|
14
|
+
%h1= t('workarea.storefront.users.edit_title')
|
15
|
+
|
16
|
+
= form_tag users_account_path, method: :patch, id: 'info_form' do
|
17
|
+
.grid
|
18
|
+
.grid__cell
|
19
|
+
.property
|
20
|
+
= label_tag :email, nil, class: 'property__name' do
|
21
|
+
%span.property__text= t('workarea.storefront.users.email')
|
22
|
+
.value= email_field_tag :email, @user.email, class: 'text-box', autocapitalize: 'off', autocomplete: 'email', required: true, placeholder: t('workarea.storefront.forms.email_placeholder')
|
23
|
+
.grid__cell.grid__cell--50-at-medium
|
24
|
+
.property
|
25
|
+
= label_tag :first_name, nil, class: 'property__name' do
|
26
|
+
%span.property__text= t('workarea.storefront.users.first_name')
|
27
|
+
.value= text_field_tag :first_name, @user.first_name, class: 'text-box', autocomplete: 'given-name'
|
28
|
+
.grid__cell.grid__cell--50-at-medium
|
29
|
+
.property
|
30
|
+
= label_tag :last_name, nil, class: 'property__name' do
|
31
|
+
%span.property__text= t('workarea.storefront.users.last_name')
|
32
|
+
.value= text_field_tag :last_name, @user.last_name, class: 'text-box', autocomplete: 'family-name'
|
33
|
+
.grid__cell
|
34
|
+
.property
|
35
|
+
= label_tag :password, nil, class: 'property__name' do
|
36
|
+
%span.property__text= t('workarea.storefront.users.new_password')
|
37
|
+
.value= password_field_tag :password, nil, class: 'text-box', minlength: minimum_password_length
|
38
|
+
= append_partials('storefront.edit_account_details', user: @user)
|
39
|
+
.grid.grid--auto.grid--right.grid--middle
|
40
|
+
%p.grid__cell= link_to t('workarea.storefront.forms.cancel'), users_account_path, class: "text-button", data: { dialog_close_button: '' }
|
41
|
+
%p.grid__cell= button_tag t('workarea.storefront.forms.save'), value: 'save_info', class: 'button'
|
@@ -0,0 +1,118 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.account')
|
2
|
+
|
3
|
+
- content_for :breadcrumbs do
|
4
|
+
%p.breadcrumbs__node-group
|
5
|
+
%span.breadcrumbs__node
|
6
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
7
|
+
%span.breadcrumbs__node
|
8
|
+
%span.breadcrumbs__text= t('workarea.storefront.users.account')
|
9
|
+
|
10
|
+
.view
|
11
|
+
|
12
|
+
%h1= t('workarea.storefront.users.account')
|
13
|
+
|
14
|
+
.grid.grid--large
|
15
|
+
.grid__cell.grid__cell--50-at-medium
|
16
|
+
.box
|
17
|
+
.box__header
|
18
|
+
.box__action= link_to t('workarea.storefront.forms.update'), edit_users_account_path, class: 'button', data: { dialog_button: '' }
|
19
|
+
%h2.box__heading= t('workarea.storefront.users.details')
|
20
|
+
.box__body
|
21
|
+
%table.table
|
22
|
+
%tbody
|
23
|
+
%tr
|
24
|
+
%th
|
25
|
+
%span= t('workarea.storefront.users.email')
|
26
|
+
%td= @user.email
|
27
|
+
%tr
|
28
|
+
%th
|
29
|
+
%span= t('workarea.storefront.users.name')
|
30
|
+
%td #{@user.first_name} #{@user.last_name}
|
31
|
+
%tr
|
32
|
+
%th
|
33
|
+
%span= t('workarea.storefront.users.password')
|
34
|
+
%td ********
|
35
|
+
= append_partials('storefront.show_account_details', user: @user)
|
36
|
+
|
37
|
+
.box
|
38
|
+
.box__header
|
39
|
+
.box__action= link_to t('workarea.storefront.users.add_credit_card'), new_users_credit_card_path, class: 'button', data: { dialog_button: '' }
|
40
|
+
%h2.box__heading= t('workarea.storefront.users.credit_cards')
|
41
|
+
|
42
|
+
.box__body
|
43
|
+
- unless @user.has_credit_card?
|
44
|
+
= t('workarea.storefront.users.no_saved_credit_cards')
|
45
|
+
- else
|
46
|
+
.grid.grid--large
|
47
|
+
- @user.credit_cards.each do |credit_card|
|
48
|
+
.grid__cell.grid__cell--50-at-medium
|
49
|
+
.data-card
|
50
|
+
.data-card__cell
|
51
|
+
%p.data-card__line.data-card__credit-card{ class: (credit_card.default?) ? 'data-card__credit-card--default' : nil }
|
52
|
+
= credit_card_issuer_icon(card_icon_name(credit_card.issuer))
|
53
|
+
%span.data-card__credit-card-number
|
54
|
+
= t('workarea.storefront.credit_cards.summary', issuer: nil, number: credit_card.display_number.slice(-4..-1))
|
55
|
+
%p.data-card__line
|
56
|
+
%strong= t('workarea.storefront.credit_cards.expires')
|
57
|
+
%span
|
58
|
+
= t('workarea.storefront.credit_cards.expiry', month: credit_card.month, year: credit_card.year)
|
59
|
+
- if credit_card.expired?
|
60
|
+
%strong= t('workarea.storefront.credit_cards.expired')
|
61
|
+
%p.data-card__line
|
62
|
+
%strong= t('workarea.storefront.credit_cards.name_on_card')
|
63
|
+
%span #{credit_card.first_name} #{credit_card.last_name}
|
64
|
+
.data-card__cell
|
65
|
+
.grid.grid--auto
|
66
|
+
.grid__cell= link_to t('workarea.storefront.forms.edit'), edit_users_credit_card_path(credit_card), class: 'button button--small', data: { dialog_button: '' }
|
67
|
+
= form_tag users_credit_card_path(credit_card), method: 'delete', class: 'grid__cell' do
|
68
|
+
= button_tag t('workarea.storefront.forms.delete'), class: 'button button--small'
|
69
|
+
|
70
|
+
.box
|
71
|
+
.box__header
|
72
|
+
.box__action= link_to t('workarea.storefront.users.add_address'), new_users_address_path, class: 'button', data: { dialog_button: '' }
|
73
|
+
%h2.box__heading= t('workarea.storefront.users.addresses')
|
74
|
+
.box__body
|
75
|
+
- unless @user.has_default_addresses?
|
76
|
+
= t('workarea.storefront.users.no_saved_addresses')
|
77
|
+
- else
|
78
|
+
.grid.grid--large
|
79
|
+
- @user.addresses.each do |address|
|
80
|
+
.grid__cell.grid__cell--50-at-medium
|
81
|
+
.data-card
|
82
|
+
.data-card__cell
|
83
|
+
%p.data-card__line= formatted_address(address)
|
84
|
+
|
85
|
+
.data-card__cell
|
86
|
+
.grid.grid--auto
|
87
|
+
.grid__cell= link_to t('workarea.storefront.forms.edit'), edit_users_address_path(address), class: 'button button--small', data: { dialog_button: '' }
|
88
|
+
= form_tag users_address_path(address), method: 'delete', class: 'grid__cell' do
|
89
|
+
= button_tag t('workarea.storefront.forms.delete'), class: 'button button--small'
|
90
|
+
|
91
|
+
= append_partials('storefront.account_section_left', user: @user)
|
92
|
+
|
93
|
+
.grid__cell.grid__cell--50-at-medium
|
94
|
+
|
95
|
+
.box
|
96
|
+
.box__header
|
97
|
+
.box__action= link_to t('workarea.storefront.users.order_history'), users_orders_path, class: 'button'
|
98
|
+
%h2.box__heading= t('workarea.storefront.users.recent_orders')
|
99
|
+
.box__body
|
100
|
+
- unless @user.recent_orders.any?
|
101
|
+
= t('workarea.storefront.users.no_orders')
|
102
|
+
- else
|
103
|
+
- @user.recent_orders.each do |order|
|
104
|
+
= render 'workarea/storefront/users/orders/summary', order: order
|
105
|
+
= append_partials('storefront.account_section_right', user: @user)
|
106
|
+
= append_partials('storefront.account_grid_cell', user: @user)
|
107
|
+
|
108
|
+
= append_partials('storefront.account_section', user: @user)
|
109
|
+
|
110
|
+
- if @recommendations.any?
|
111
|
+
.recommendations
|
112
|
+
%h2.recommendations__heading= t('workarea.storefront.users.recommendations')
|
113
|
+
.recommendations__products
|
114
|
+
.grid.grid--flush
|
115
|
+
- @recommendations.each do |product|
|
116
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
117
|
+
.product-summary.product-summary--small
|
118
|
+
= render 'workarea/storefront/products/summary', product: product
|