workarea-nvy_theme 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +16 -0
- data/.eslintrc +25 -0
- data/.gitignore +24 -0
- data/.rubocop.yml +8 -0
- data/.scss-lint.yml +192 -0
- data/CHANGELOG.md +82 -0
- data/Gemfile +17 -0
- data/README.md +185 -0
- data/Rakefile +62 -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/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/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/overpass/overpass_bold.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_bold.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_bolditalic.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_bolditalic.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_italic.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_italic.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_regular.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_regular.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/poppins/poppins_300.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_300.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_500.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_500.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_700.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_700.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_regular.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_regular.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_700.woff +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_700.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_regular.woff +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_regular.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/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/images/workarea/storefront/icons/account.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrowfill.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/bag.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/close.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/eye.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/heart.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/minus.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/plus.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/search.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/facebook.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/instagram.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/pinterest.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/tumblr.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/twitter.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/validation_icon.svg +1 -0
- data/app/assets/images/workarea/storefront/logo.png +0 -0
- data/app/assets/images/workarea/storefront/logo.svg +1 -0
- data/app/assets/images/workarea/storefront/logo@3x.png +0 -0
- data/app/assets/images/workarea/storefront/logo_small.png +0 -0
- data/app/assets/images/workarea/storefront/logo_small.svg +1 -0
- data/app/assets/images/workarea/storefront/logo_small@3x.png +0 -0
- data/app/assets/javascripts/nvy_theme/.keep +0 -0
- data/app/assets/javascripts/workarea/storefront/modules/alternate_image_buttons.js +78 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_filter_buttons.js +94 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +104 -0
- data/app/assets/javascripts/workarea/storefront/modules/toggle_class_button.js +44 -0
- data/app/assets/javascripts/workarea/storefront/modules/user_welcome_placeholder.js +38 -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 +15 -0
- data/app/assets/javascripts/workarea/storefront/templates/back_to_top_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/mobile_filters_nav_close_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +23 -0
- data/app/assets/javascripts/workarea/storefront/templates/user_welcome.jst.ejs +7 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +169 -0
- data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +113 -0
- data/app/assets/stylesheets/workarea/storefront/base/_input_checkbox.scss +55 -0
- data/app/assets/stylesheets/workarea/storefront/base/_input_radio.scss +59 -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 +103 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_featured_entry_content_block.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/components/_account_menu.scss +62 -0
- data/app/assets/stylesheets/workarea/storefront/components/_back_to_top_button.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/components/_box.scss +44 -0
- data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_browsing_controls.scss +43 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button.scss +97 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +41 -0
- data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +44 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +25 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +50 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +102 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_color_box.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_content_block.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +65 -0
- data/app/assets/stylesheets/workarea/storefront/components/_login.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters_nav.scss +42 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +111 -0
- data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +48 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +24 -0
- data/app/assets/stylesheets/workarea/storefront/components/_overlay.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +104 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +237 -0
- data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +76 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +16 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +82 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +193 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_media.scss +76 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +46 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +119 -0
- data/app/assets/stylesheets/workarea/storefront/components/_property.scss +70 -0
- data/app/assets/stylesheets/workarea/storefront/components/_recent_views.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/components/_recommendations.scss +40 -0
- data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +93 -0
- data/app/assets/stylesheets/workarea/storefront/components/_secondary_nav.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +56 -0
- data/app/assets/stylesheets/workarea/storefront/components/_table.scss +75 -0
- data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +204 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +62 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/components/_validation_icon.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/components/_value.scss +95 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss.erb +11 -0
- data/app/assets/stylesheets/workarea/storefront/product_quickview/components/_quickview_button.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_rating.scss +28 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews.scss +81 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews_aggregate.scss +43 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_write_review.scss +63 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss.erb +17 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_font_families.scss.erb +6 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +35 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_grid.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +17 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/share/components/_share_buttons.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/slick_slider/components/_slick_slider.scss +137 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_option_button.scss +17 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_facet.scss +24 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_options.scss +63 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/color_schemes/_neutral_color_scheme.scss +195 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/color_schemes/_nvy_color_scheme.scss +196 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/color_schemes/_vermillion_color_scheme.scss +199 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_hind.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_lora.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_muli.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_overpass.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_playfair_display.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_poppins.scss +40 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_pt_serif.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_roboto.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_source_serif_pro.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +153 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/wish_lists/components/_wish_list_form.scss +8 -0
- data/app/assets/stylesheets/workarea/styled_selects/components/_styled_select.scss +71 -0
- data/app/helpers/workarea/storefront/image_helper.rb +10 -0
- data/app/helpers/workarea/storefront/product_media_slider_helper.rb +31 -0
- data/app/views/layouts/workarea/storefront/_wish_lists_link.html.haml +4 -0
- data/app/views/layouts/workarea/storefront/application.html.haml +191 -0
- data/app/views/layouts/workarea/storefront/checkout.html.haml +90 -0
- data/app/views/workarea/storefront/blog_comments/index.html.haml +31 -0
- data/app/views/workarea/storefront/blog_entries/show.html.haml +79 -0
- data/app/views/workarea/storefront/blogs/_blog_navigation.html.haml +6 -0
- data/app/views/workarea/storefront/cart_items/create.html.haml +59 -0
- data/app/views/workarea/storefront/carts/_move_to_wish_list.html.haml +6 -0
- data/app/views/workarea/storefront/carts/show.html.haml +175 -0
- data/app/views/workarea/storefront/categories/show.html.haml +111 -0
- data/app/views/workarea/storefront/checkouts/_checkout_progress.html.haml +25 -0
- data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +28 -0
- data/app/views/workarea/storefront/checkouts/_summary.html.haml +102 -0
- data/app/views/workarea/storefront/checkouts/addresses.html.haml +57 -0
- data/app/views/workarea/storefront/checkouts/confirmation.html.haml +41 -0
- data/app/views/workarea/storefront/checkouts/payment.html.haml +186 -0
- data/app/views/workarea/storefront/checkouts/shipping.html.haml +39 -0
- data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +15 -0
- data/app/views/workarea/storefront/content_blocks/_product_insights.html.haml +10 -0
- data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +10 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy.html.haml +27 -0
- data/app/views/workarea/storefront/content_blocks/_three_column_taxonomy.html.haml +29 -0
- data/app/views/workarea/storefront/content_blocks/_two_column_taxonomy.html.haml +28 -0
- data/app/views/workarea/storefront/facets/_range.html.haml +11 -0
- data/app/views/workarea/storefront/facets/_swatches.html.haml +13 -0
- data/app/views/workarea/storefront/facets/_terms.html.haml +11 -0
- data/app/views/workarea/storefront/menus/index.html.haml +14 -0
- data/app/views/workarea/storefront/menus/show.html.haml +11 -0
- data/app/views/workarea/storefront/orders/_summary.html.haml +271 -0
- data/app/views/workarea/storefront/orders/index.html.haml +42 -0
- data/app/views/workarea/storefront/products/_media.html.haml +14 -0
- data/app/views/workarea/storefront/products/_rating.html.haml +10 -0
- data/app/views/workarea/storefront/products/_reviews.html.haml +22 -0
- data/app/views/workarea/storefront/products/_reviews_aggregate.html.haml +22 -0
- data/app/views/workarea/storefront/products/_reviews_summary.html.haml +2 -0
- data/app/views/workarea/storefront/products/show.html.haml +45 -0
- data/app/views/workarea/storefront/products/templates/_generic.html.haml +54 -0
- data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +67 -0
- data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +57 -0
- data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +62 -0
- data/app/views/workarea/storefront/products/templates/_swatches.html.haml +66 -0
- data/app/views/workarea/storefront/recent_views/show.html.haml +27 -0
- data/app/views/workarea/storefront/recommendations/show.html.haml +9 -0
- data/app/views/workarea/storefront/reviews/new.html.haml +69 -0
- data/app/views/workarea/storefront/searches/show.html.haml +104 -0
- data/app/views/workarea/storefront/shared/_address_fields.html.haml +113 -0
- data/app/views/workarea/storefront/shared/_left_navigation.html.haml +25 -0
- data/app/views/workarea/storefront/shares/_share_buttons.html.haml +19 -0
- data/app/views/workarea/storefront/shares/new.html.haml +50 -0
- data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +88 -0
- data/app/views/workarea/storefront/style_guides/components/_button.html.haml +89 -0
- data/app/views/workarea/storefront/style_guides/components/_personalized_recommendations_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_product_insights_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_styled_select.html.haml +27 -0
- data/app/views/workarea/storefront/style_guides/components/_validation_icon.haml +21 -0
- data/app/views/workarea/storefront/style_guides/components/_value.html.haml +77 -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/_neutral_color_scheme.html.haml +15 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_nvy_color_scheme.html.haml +15 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_vermillion_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/typography/_fonts.html.haml +15 -0
- data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +40 -0
- data/app/views/workarea/storefront/users/_nvy_current_user.json.jbuilder +1 -0
- data/app/views/workarea/storefront/users/accounts/_wish_list_summary.html.haml +15 -0
- data/app/views/workarea/storefront/users/accounts/edit.html.haml +51 -0
- data/app/views/workarea/storefront/users/accounts/show.html.haml +119 -0
- data/app/views/workarea/storefront/users/addresses/edit.html.haml +24 -0
- data/app/views/workarea/storefront/users/addresses/new.html.haml +24 -0
- data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +75 -0
- data/app/views/workarea/storefront/users/credit_cards/new.html.haml +68 -0
- data/app/views/workarea/storefront/users/logins/new.html.haml +55 -0
- data/app/views/workarea/storefront/users/orders/_summary.html.haml +23 -0
- data/app/views/workarea/storefront/users/passwords/change.html.haml +29 -0
- data/app/views/workarea/storefront/users/passwords/edit.html.haml +17 -0
- data/app/views/workarea/storefront/wish_lists/_add_form.html.haml +10 -0
- data/bin/rails +20 -0
- data/config/initializers/appends.rb +40 -0
- data/config/initializers/dragonfly.rb +31 -0
- data/config/initializers/theme.rb +39 -0
- data/config/initializers/workarea.rb +3 -0
- data/config/locales/en.yml +34 -0
- data/config/routes.rb +2 -0
- data/lib/tasks/theme_cleanup.rake +20 -0
- data/lib/workarea/nvy_theme.rb +22 -0
- data/lib/workarea/nvy_theme/engine.rb +16 -0
- data/lib/workarea/nvy_theme/version.rb +5 -0
- data/lib/workarea/theme/override_commit +1 -0
- data/public/screenshots/cart.png +0 -0
- data/public/screenshots/category_browse.png +0 -0
- data/public/screenshots/checkout_addresses.png +0 -0
- data/public/screenshots/checkout_payment.png +0 -0
- data/public/screenshots/homepage.png +0 -0
- data/public/screenshots/order_confirmation.png +0 -0
- data/public/screenshots/product_detail_page.png +0 -0
- data/script/admin_ci +9 -0
- data/script/ci +11 -0
- data/script/core_ci +9 -0
- data/script/plugins_ci +9 -0
- data/script/storefront_ci +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 +28 -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/system/workarea/admin/guest_browsing_system_test.decorator +38 -0
- data/test/system/workarea/storefront/analytics_system_test.decorator +107 -0
- data/test/system/workarea/storefront/categories_system_test.decorator +131 -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/pagination_system_test.decorator +89 -0
- data/test/system/workarea/storefront/passwords_system_test.decorator +59 -0
- data/test/system/workarea/storefront/search_system_test.decorator +105 -0
- data/test/system/workarea/storefront/styled_selects_system_test.decorator +21 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +10 -0
- data/test/view_models/workarea/storefront/content_blocks/product_insights_view_model_test.decorator +43 -0
- data/workarea-nvy_theme.gemspec +30 -0
- metadata +574 -0
@@ -0,0 +1,119 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.account')
|
2
|
+
|
3
|
+
- content_for :breadcrumbs do
|
4
|
+
%p.breadcrumbs__node-group
|
5
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
6
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
7
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
8
|
+
%span.breadcrumbs__text= t('workarea.storefront.users.account')
|
9
|
+
|
10
|
+
.view
|
11
|
+
|
12
|
+
%h1.heading.heading--2= 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.order_history'), users_orders_path, class: 'button'
|
40
|
+
%h2.box__heading= t('workarea.storefront.users.recent_orders')
|
41
|
+
.box__body
|
42
|
+
- unless @user.recent_orders.any?
|
43
|
+
= t('workarea.storefront.users.no_orders')
|
44
|
+
- else
|
45
|
+
- @user.recent_orders.each do |order|
|
46
|
+
= render 'workarea/storefront/users/orders/summary', order: order
|
47
|
+
|
48
|
+
= append_partials('storefront.account_section_left', user: @user)
|
49
|
+
|
50
|
+
.grid__cell.grid__cell--50-at-medium
|
51
|
+
.box
|
52
|
+
.box__header
|
53
|
+
.box__action= link_to t('workarea.storefront.users.add_credit_card'), new_users_credit_card_path, class: 'button', data: { dialog_button: '' }
|
54
|
+
%h2.box__heading= t('workarea.storefront.users.credit_cards')
|
55
|
+
|
56
|
+
.box__body
|
57
|
+
- unless @user.has_credit_card?
|
58
|
+
= t('workarea.storefront.users.no_saved_credit_cards')
|
59
|
+
- else
|
60
|
+
.grid.grid--large
|
61
|
+
- @user.credit_cards.each do |credit_card|
|
62
|
+
.grid__cell.grid__cell--50-at-medium
|
63
|
+
.data-card
|
64
|
+
.data-card__cell
|
65
|
+
%p.data-card__line.data-card__credit-card{ class: (credit_card.default?) ? 'data-card__credit-card--default' : nil }
|
66
|
+
= credit_card_issuer_icon(card_icon_name(credit_card.issuer))
|
67
|
+
%span.data-card__credit-card-number
|
68
|
+
= t('workarea.storefront.credit_cards.summary', issuer: nil, number: credit_card.display_number.slice(-4..-1))
|
69
|
+
%p.data-card__line
|
70
|
+
%strong= t('workarea.storefront.credit_cards.expires')
|
71
|
+
%span
|
72
|
+
= t('workarea.storefront.credit_cards.expiry', month: credit_card.month, year: credit_card.year)
|
73
|
+
- if credit_card.expired?
|
74
|
+
%strong= t('workarea.storefront.credit_cards.expired')
|
75
|
+
%p.data-card__line
|
76
|
+
%strong= t('workarea.storefront.credit_cards.name_on_card')
|
77
|
+
%span #{credit_card.first_name} #{credit_card.last_name}
|
78
|
+
.data-card__cell
|
79
|
+
.grid.grid--auto
|
80
|
+
.grid__cell= link_to t('workarea.storefront.forms.edit'), edit_users_credit_card_path(credit_card), class: 'text-button', data: { dialog_button: '' }
|
81
|
+
= form_tag users_credit_card_path(credit_card), method: 'delete', class: 'grid__cell' do
|
82
|
+
= button_tag t('workarea.storefront.forms.delete'), class: 'text-button'
|
83
|
+
|
84
|
+
.box
|
85
|
+
.box__header
|
86
|
+
.box__action= link_to t('workarea.storefront.users.add_address'), new_users_address_path, class: 'button', data: { dialog_button: '' }
|
87
|
+
%h2.box__heading= t('workarea.storefront.users.addresses')
|
88
|
+
.box__body
|
89
|
+
- unless @user.has_default_addresses?
|
90
|
+
= t('workarea.storefront.users.no_saved_addresses')
|
91
|
+
- else
|
92
|
+
.grid.grid--large
|
93
|
+
- @user.addresses.each do |address|
|
94
|
+
.grid__cell.grid__cell--50-at-medium
|
95
|
+
.data-card
|
96
|
+
.data-card__cell
|
97
|
+
%p.data-card__line= formatted_address(address)
|
98
|
+
|
99
|
+
.data-card__cell
|
100
|
+
.grid.grid--auto
|
101
|
+
.grid__cell= link_to t('workarea.storefront.forms.edit'), edit_users_address_path(address), class: 'text-button', data: { dialog_button: '' }
|
102
|
+
= form_tag users_address_path(address), method: 'delete', class: 'grid__cell' do
|
103
|
+
= button_tag t('workarea.storefront.forms.delete'), class: 'text-button'
|
104
|
+
|
105
|
+
= append_partials('storefront.account_section_right', user: @user)
|
106
|
+
|
107
|
+
= append_partials('storefront.account_grid_cell', user: @user)
|
108
|
+
|
109
|
+
= append_partials('storefront.account_section', user: @user)
|
110
|
+
|
111
|
+
- if @recommendations.any?
|
112
|
+
.recommendations
|
113
|
+
%h2.recommendations__heading= t('workarea.storefront.users.recommendations')
|
114
|
+
.recommendations__products
|
115
|
+
.grid
|
116
|
+
- @recommendations.each do |product|
|
117
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
118
|
+
.product-summary.product-summary--small{ itemscope: true, itemtype: 'http://schema.org/Product' }
|
119
|
+
= render 'workarea/storefront/products/summary', product: product
|
@@ -0,0 +1,24 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.edit_address')
|
2
|
+
|
3
|
+
- content_for :breadcrumbs do
|
4
|
+
%p.breadcrumbs__node-group
|
5
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
6
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
7
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
8
|
+
= link_to t('workarea.storefront.users.account'), users_account_path, class: 'breadcrumbs__link'
|
9
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
10
|
+
%span.breadcrumbs__text= t('workarea.storefront.users.edit_address')
|
11
|
+
|
12
|
+
.view
|
13
|
+
|
14
|
+
%h1= t('workarea.storefront.users.edit_address')
|
15
|
+
|
16
|
+
- if @address.errors.any?
|
17
|
+
- @address.errors.full_messages.each do |message|
|
18
|
+
= render_message 'error', message, data: { analytics: validation_error_analytics_data('users').to_json }
|
19
|
+
|
20
|
+
= form_tag users_address_path(@address.id), method: :patch, id: 'address_form', data: { account_dashboard_ajax: 'addresses' } do
|
21
|
+
= render 'workarea/storefront/shared/address_fields', label: 'address', address: @address
|
22
|
+
.grid.grid--auto.grid--middle.grid--center
|
23
|
+
%p.grid__cell= button_tag t('workarea.storefront.forms.save'), value: 'save_address', class: 'button'
|
24
|
+
%p.grid__cell= link_to t('workarea.storefront.forms.cancel'), users_account_path, class: 'text-button', data: { dialog_close_button: '' }
|
@@ -0,0 +1,24 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.add_address')
|
2
|
+
|
3
|
+
- content_for :breadcrumbs do
|
4
|
+
%p.breadcrumbs__node-group
|
5
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
6
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
7
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
8
|
+
= link_to t('workarea.storefront.users.account'), users_account_path, class: 'breadcrumbs__link'
|
9
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
10
|
+
%span.breadcrumbs__text= t('workarea.storefront.users.add_address')
|
11
|
+
|
12
|
+
.view
|
13
|
+
|
14
|
+
%h1= t('workarea.storefront.users.add_address')
|
15
|
+
|
16
|
+
- if @address.errors.any?
|
17
|
+
- @address.errors.full_messages.each do |message|
|
18
|
+
= render_message 'error', message, data: { analytics: validation_error_analytics_data('users').to_json }
|
19
|
+
|
20
|
+
= form_tag users_addresses_path, method: 'post', id: 'address_form', data: { account_dashboard_ajax: 'addresses' } do
|
21
|
+
= render 'workarea/storefront/shared/address_fields', label: 'address', address: @address
|
22
|
+
.grid.grid--auto.grid--middle.grid--center
|
23
|
+
%p.grid__cell= button_tag t('workarea.storefront.forms.save'), value: 'save_address', class: 'button'
|
24
|
+
%p.grid__cell= link_to t('workarea.storefront.forms.cancel'), users_account_path, class: 'text-button', data: { dialog_close_button: '' }
|
@@ -0,0 +1,75 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.edit_credit_card')
|
2
|
+
|
3
|
+
- content_for :breadcrumbs do
|
4
|
+
%p.breadcrumbs__node-group
|
5
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
6
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
7
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
8
|
+
= link_to t('workarea.storefront.users.account'), users_account_path, class: 'breadcrumbs__link'
|
9
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
10
|
+
%span.breadcrumbs__text= t('workarea.storefront.users.edit_credit_card')
|
11
|
+
|
12
|
+
.view
|
13
|
+
|
14
|
+
%h1= t('workarea.storefront.users.edit_credit_card')
|
15
|
+
|
16
|
+
- if @credit_card.errors.any?
|
17
|
+
- @credit_card.errors.full_messages.each do |message|
|
18
|
+
= render_message 'error', message, data: { analytics: validation_error_analytics_data('users').to_json }
|
19
|
+
|
20
|
+
%table.table
|
21
|
+
%tbody
|
22
|
+
%tr
|
23
|
+
%th= t('workarea.storefront.credit_cards.issuer')
|
24
|
+
%td= @credit_card.issuer
|
25
|
+
%tr
|
26
|
+
%th= t('workarea.storefront.users.default_card')
|
27
|
+
%td= @credit_card.default? ? 'Yes' : 'No'
|
28
|
+
|
29
|
+
= form_tag users_credit_card_path(@credit_card.id), method: :patch, id: 'credit_card_form' do
|
30
|
+
|
31
|
+
- unless @credit_card.default?
|
32
|
+
.button-property
|
33
|
+
.value= check_box_tag 'credit_card[default]', true, @credit_card.default?
|
34
|
+
= label_tag 'credit_card[default]', nil, class: 'button-property__name' do
|
35
|
+
%span.button-property__text= t('workarea.storefront.users.set_as_default_card')
|
36
|
+
|
37
|
+
.grid.grid--top
|
38
|
+
.grid__cell.grid__cell--50-at-medium
|
39
|
+
.property
|
40
|
+
= label_tag 'credit_card[first_name]', nil, class: 'property__name' do
|
41
|
+
%span.property__text= t('workarea.storefront.users.first_name')
|
42
|
+
.value= text_field_tag 'credit_card[first_name]', @credit_card.first_name, class: 'text-box text-box--full', autocomplete: 'given-name', required: true
|
43
|
+
|
44
|
+
.grid__cell.grid__cell--50-at-medium
|
45
|
+
.property
|
46
|
+
= label_tag 'credit_card[last_name]', nil, class: 'property__name' do
|
47
|
+
%span.property__text= t('workarea.storefront.users.last_name')
|
48
|
+
.value= text_field_tag 'credit_card[last_name]', @credit_card.last_name, class: 'text-box text-box--full', autocomplete: 'family-name', required: true
|
49
|
+
|
50
|
+
.grid__cell.grid__cell--33-at-wide
|
51
|
+
%strong= t('workarea.storefront.credit_cards.card_number')
|
52
|
+
%p= @credit_card.display_number
|
53
|
+
|
54
|
+
.grid__cell.grid__cell--66.grid__cell--33-at-wide
|
55
|
+
.property
|
56
|
+
%label.property__name{ for: 'credit_card_month' }
|
57
|
+
%span.property__text= t('workarea.storefront.credit_cards.expiration_date')
|
58
|
+
.value
|
59
|
+
.grid
|
60
|
+
.grid__cell.grid__cell--50
|
61
|
+
= select_tag 'credit_card[month]', options_for_select(1..12, @credit_card.month), title: t('workarea.storefront.credit_cards.expiration_month')
|
62
|
+
.grid__cell.grid__cell--50
|
63
|
+
= select_tag 'credit_card[year]', options_for_select(Time.current.year..Time.current.year + 10, @credit_card.year), title: t('workarea.storefront.credit_cards.expiration_year')
|
64
|
+
|
65
|
+
.grid__cell.grid__cell--33
|
66
|
+
.property
|
67
|
+
= label_tag 'credit_card[cvv]', nil, class: 'property__name' do
|
68
|
+
%span.property__text= t('workarea.storefront.credit_cards.security_code')
|
69
|
+
.value
|
70
|
+
= text_field_tag 'credit_card[cvv]', nil, class: 'text-box text-box--full text-box--small', required: true, inputmode: 'numeric', pattern: '[0-9]*', autocomplete: 'cc-csc'
|
71
|
+
%span.value__note= link_to t('workarea.storefront.credit_cards.whats_this'), page_path('credit-card-security-code'), data: { dialog_button: '' }
|
72
|
+
|
73
|
+
.grid.grid--auto.grid--middle.grid--center
|
74
|
+
%p.grid__cell= button_tag t('workarea.storefront.forms.save'), value: 'save_credit_card', class: 'button'
|
75
|
+
%p.grid__cell= link_to t('workarea.storefront.forms.cancel'), users_account_path, class: "text-button", data: { dialog_close_button: '' }
|
@@ -0,0 +1,68 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.add_credit_card')
|
2
|
+
- params[:credit_card] ||= {}
|
3
|
+
|
4
|
+
- content_for :breadcrumbs do
|
5
|
+
%p.breadcrumbs__node-group
|
6
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
7
|
+
= link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
|
8
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
9
|
+
= link_to t('workarea.storefront.users.account'), users_account_path, class: 'breadcrumbs__link'
|
10
|
+
%span.breadcrumbs__node{ itemprop: 'breadcrumb' }
|
11
|
+
%span.breadcrumbs__text= t('workarea.storefront.users.add_credit_card')
|
12
|
+
|
13
|
+
.view
|
14
|
+
|
15
|
+
%h1= t('workarea.storefront.users.add_credit_card')
|
16
|
+
|
17
|
+
- if @credit_card && @credit_card.errors.any?
|
18
|
+
- @credit_card.errors.full_messages.each do |message|
|
19
|
+
= render_message 'error', message, data: { analytics: validation_error_analytics_data('users').to_json }
|
20
|
+
|
21
|
+
= form_tag users_credit_cards_path, method: 'post', id: 'credit_card_form', data: { single_submit_form: '' } do
|
22
|
+
.grid.grid--top
|
23
|
+
.grid__cell.grid__cell--50-at-medium
|
24
|
+
.property
|
25
|
+
= label_tag 'credit_card[first_name]', nil, class: 'property__name' do
|
26
|
+
%span.property__text= t('workarea.storefront.users.first_name')
|
27
|
+
.value= text_field_tag 'credit_card[first_name]', params[:credit_card][:first_name], class: 'text-box text-box--full', autocomplete: 'given-name', required: true
|
28
|
+
|
29
|
+
.grid__cell.grid__cell--50-at-medium
|
30
|
+
.property
|
31
|
+
= label_tag 'credit_card[last_name]', nil, class: 'property__name' do
|
32
|
+
%span.property__text= t('workarea.storefront.users.last_name')
|
33
|
+
.value= text_field_tag 'credit_card[last_name]', params[:credit_card][:last_name], class: 'text-box text-box--full', autocomplete: 'family-name', required: true
|
34
|
+
|
35
|
+
.grid__cell.grid__cell--33-at-wide
|
36
|
+
.property
|
37
|
+
= label_tag 'credit_card[number]', nil, class: 'property__name' do
|
38
|
+
%span.property__text= t('workarea.storefront.credit_cards.card_number')
|
39
|
+
.value= text_field_tag 'credit_card[number]', nil, class: 'text-box text-box--full', inputmode: 'numeric', pattern: '[0-9]*', required: true, autocomplete: 'cc-number'
|
40
|
+
|
41
|
+
.grid__cell.grid__cell--66.grid__cell--33-at-wide
|
42
|
+
.property
|
43
|
+
%label.property__name{ for: 'credit_card_month' }
|
44
|
+
%span.property__text= t('workarea.storefront.credit_cards.expiration_date')
|
45
|
+
.value
|
46
|
+
.grid
|
47
|
+
.grid__cell.grid__cell--50
|
48
|
+
= select_tag 'credit_card[month]', options_for_select(1..12, params[:credit_card][:month]), title: t('workarea.storefront.credit_cards.expiration_month'), aria: { label: t('workarea.storefront.credit_cards.expiration_month') }
|
49
|
+
.grid__cell.grid__cell--50
|
50
|
+
= select_tag 'credit_card[year]', options_for_select(Time.current.year..Time.current.year + 10, params[:credit_card][:year]), title: t('workarea.storefront.credit_cards.expiration_year'), aria: { label: t('workarea.storefront.credit_cards.expiration_year') }
|
51
|
+
|
52
|
+
.grid__cell.grid__cell--33
|
53
|
+
.property
|
54
|
+
= label_tag 'credit_card[cvv]', nil, class: 'property__name' do
|
55
|
+
%span.property__text= t('workarea.storefront.credit_cards.security_code')
|
56
|
+
.value
|
57
|
+
= text_field_tag 'credit_card[cvv]', nil, class: 'text-box text-box--small', inputmode: 'numeric', pattern: '[0-9]*', autocorrect: 'off', autocomplete: 'cc-csc', required: true
|
58
|
+
%span.value__note=link_to t('workarea.storefront.credit_cards.whats_this'), page_path('credit-card-security-code'), data: { dialog_button: '' }
|
59
|
+
|
60
|
+
.grid__cell
|
61
|
+
.button-property
|
62
|
+
.value= check_box_tag 'credit_card[default]', true, @user.credit_cards.empty?
|
63
|
+
= label_tag 'credit_card[default]', nil, class: 'button-property__name' do
|
64
|
+
%span.button-property__text= t('workarea.storefront.users.set_as_default_card')
|
65
|
+
|
66
|
+
.grid.grid--auto.grid--middle.grid--center
|
67
|
+
%p.grid__cell= button_tag t('workarea.storefront.forms.save'), value: 'save_credit_card', class: 'button'
|
68
|
+
%p.grid__cell= link_to t('workarea.storefront.forms.cancel'), users_account_path, class: "text-button", data: { dialog_close_button: '' }
|
@@ -0,0 +1,55 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.login_or_create_an_account')
|
2
|
+
|
3
|
+
.view
|
4
|
+
|
5
|
+
.login
|
6
|
+
|
7
|
+
%h1.visually-hidden= t('workarea.storefront.users.login_or_create_an_account')
|
8
|
+
|
9
|
+
.grid.grid--huge
|
10
|
+
.grid__cell.grid__cell--50-at-medium
|
11
|
+
.login__section.login__section--login
|
12
|
+
%h2.login__heading= t('workarea.storefront.users.login')
|
13
|
+
= form_tag login_path, id: 'login_form', method: 'post', data: { analytics: login_analytics_data.to_json }, class: 'login__form' do
|
14
|
+
= hidden_field_tag :return_to, params[:return_to], id: nil
|
15
|
+
.property
|
16
|
+
= label_tag 'log_in_email', nil, class: 'property__name' do
|
17
|
+
%span.property__text= t('workarea.storefront.users.email')
|
18
|
+
.value= email_field_tag :email, params[:email], id: 'log_in_email', class: 'text-box text-box--full', required: true, placeholder: t('workarea.storefront.forms.email_placeholder')
|
19
|
+
.property
|
20
|
+
= label_tag 'log_in_password', nil, class: 'property__name' do
|
21
|
+
%span.property__text= t('workarea.storefront.users.password')
|
22
|
+
.value
|
23
|
+
= password_field_tag :password, nil, id: 'log_in_password', class: 'text-box text-box--full', required: true, autocomplete: 'off'
|
24
|
+
= inline_svg('workarea/storefront/icons/eye.svg', class: 'value__icon')
|
25
|
+
.grid.grid--auto.grid--middle
|
26
|
+
%p.grid__cell= button_tag t('workarea.storefront.users.login'), value: 'login', class: 'button button--solid button--large'
|
27
|
+
%p.grid__cell= link_to t('workarea.storefront.users.forgot_password'), forgot_password_path, class: 'text-button'
|
28
|
+
|
29
|
+
.grid__cell.grid__cell--50-at-medium
|
30
|
+
.login__section.login__section--create-account
|
31
|
+
%h2.login__heading= t('workarea.storefront.users.create_account')
|
32
|
+
= form_tag users_account_path, id: 'signup_form', method: :post, data: { analytics: signup_analytics_data.to_json }, class: 'login__form' do
|
33
|
+
= hidden_field_tag :return_to, params[:return_to], id: nil
|
34
|
+
.property
|
35
|
+
= label_tag 'create_account_email', nil, class: 'property__name' do
|
36
|
+
%span.property__text= t('workarea.storefront.users.email')
|
37
|
+
.value
|
38
|
+
= email_field_tag :email, params[:email], id: 'create_account_email', class: 'text-box text-box--full', required: true, placeholder: t('workarea.storefront.forms.email_placeholder')
|
39
|
+
- if @user.errors[:email].any?
|
40
|
+
%span.value__error= @user.errors[:email].first
|
41
|
+
.property
|
42
|
+
= label_tag 'create_account_password', nil, class: 'property__name' do
|
43
|
+
%span.property__text= t('workarea.storefront.users.password')
|
44
|
+
.value
|
45
|
+
= password_field_tag :password, nil, id: 'create_account_password', class: 'text-box text-box--full', required: true, minlength: minimum_password_length, autocomplete: 'off'
|
46
|
+
= inline_svg('workarea/storefront/icons/eye.svg', class: 'value__icon')
|
47
|
+
- if @user.errors[:password].present?
|
48
|
+
%span.value__error= @user.errors[:password].first
|
49
|
+
.button-property
|
50
|
+
.value= check_box_tag :email_signup, true, params[:email_signup]
|
51
|
+
= label_tag :email_signup, nil, class: 'button-property__name' do
|
52
|
+
%span.button-property__text= t('workarea.storefront.users.sign_up_for_email')
|
53
|
+
= button_tag t('workarea.storefront.users.create_account'), value: 'create_account', class: 'button button--solid button--large', data: { disable_with: loading_indicator(t('workarea.storefront.users.create_account_disabled_text')) }
|
54
|
+
|
55
|
+
= append_partials('storefront.new_login', user: @user)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
.data-card
|
2
|
+
.data-card__cell
|
3
|
+
%p.data-card__line
|
4
|
+
%strong= t('workarea.storefront.orders.placed_at')
|
5
|
+
%span= local_time(order.placed_at, :long)
|
6
|
+
%p.data-card__line
|
7
|
+
%strong= t('workarea.storefront.orders.id')
|
8
|
+
%span= order.id
|
9
|
+
%p.data-card__line
|
10
|
+
%strong= t('workarea.storefront.orders.status')
|
11
|
+
%span= order.fulfillment_status || order.status
|
12
|
+
%p.data-card__line
|
13
|
+
%strong= t('workarea.storefront.orders.items')
|
14
|
+
%span #{order.quantity} - #{number_to_currency(order.total_price)}
|
15
|
+
.data-card__cell
|
16
|
+
.grid.grid--auto
|
17
|
+
%p.grid__cell= link_to t('workarea.storefront.orders.view'), users_order_path(order), class: 'text-button'
|
18
|
+
|
19
|
+
= append_partials('storefront.order_summary_actions', order: order)
|
20
|
+
|
21
|
+
- order.packages.each_with_index do |package|
|
22
|
+
- if package.tracking_number.present?
|
23
|
+
%p.grid__cell= link_to t('workarea.storefront.orders.track_package'), package.tracking_link, target: '_blank', rel: 'noopener', class: 'text-button'
|
@@ -0,0 +1,29 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.change_password')
|
2
|
+
|
3
|
+
.view
|
4
|
+
|
5
|
+
%h1= t('workarea.storefront.users.change_password')
|
6
|
+
|
7
|
+
= form_tag change_password_path, id: 'change_password_form', method: :patch do
|
8
|
+
|
9
|
+
.grid
|
10
|
+
.grid__cell.grid__cell--50-at-medium.grid__cell--33-at-wide
|
11
|
+
.property
|
12
|
+
= label_tag :old_password, nil, class: 'property__name' do
|
13
|
+
%span.property__text= t('workarea.storefront.users.old_password')
|
14
|
+
.value
|
15
|
+
= password_field_tag :old_password, nil, class: 'text-box', required: true, autocomplete: 'off'
|
16
|
+
= inline_svg('workarea/storefront/icons/eye.svg', class: 'value__icon')
|
17
|
+
|
18
|
+
.grid
|
19
|
+
.grid__cell.grid__cell--50-at-medium.grid__cell--33-at-wide
|
20
|
+
.property
|
21
|
+
= label_tag :password, nil, class: 'property__name' do
|
22
|
+
%span.property__text= t('workarea.storefront.users.new_password')
|
23
|
+
.value
|
24
|
+
= password_field_tag :password, nil, class: 'text-box', minlength: 7, required: true, autocomplete: 'off'
|
25
|
+
= inline_svg('workarea/storefront/icons/eye.svg', class: 'value__icon')
|
26
|
+
|
27
|
+
.grid.grid--auto
|
28
|
+
%p.grid__cell= button_tag t('workarea.storefront.users.change_password'), value: 'change_password', class: 'button'
|
29
|
+
%p.grid__cell= link_to t('workarea.storefront.users.forgot_password'), forgot_password_path, class: 'text-button'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
- @title = t('workarea.storefront.users.reset_password')
|
2
|
+
|
3
|
+
.view
|
4
|
+
%h1= t('workarea.storefront.users.reset_password')
|
5
|
+
|
6
|
+
= form_tag reset_password_path(params[:token]), id: 'reset_password_form', method: :patch do
|
7
|
+
|
8
|
+
.grid
|
9
|
+
.grid__cell.grid__cell--50-at-medium.grid__cell--33-at-wide
|
10
|
+
.property
|
11
|
+
= label_tag :password, nil, class: 'property__name' do
|
12
|
+
%span.property__text= t('workarea.storefront.users.password')
|
13
|
+
.value
|
14
|
+
= password_field_tag :password, nil, class: 'text-box text-box--full', minlength: 7, required: true, autocomplete: 'off'
|
15
|
+
= inline_svg('workarea/storefront/icons/eye.svg', class: 'value__icon')
|
16
|
+
|
17
|
+
%p= button_tag t('workarea.storefront.users.reset_password'), value: 'reset_password', class: 'button button--solid button--large'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
- if product.purchasable?
|
2
|
+
= form_tag add_to_users_wish_list_path, method: 'post', class: 'wish-list-form', data: { wish_list_form: '' } do
|
3
|
+
= hidden_field_tag :product_id, product.id, id: "wishlist_product_id_#{dom_id(product)}"
|
4
|
+
= hidden_field_tag :sku, product.current_sku, id: "wishlist_sku_#{dom_id(product)}"
|
5
|
+
= hidden_field_tag :quantity, 1, id: "wishlist_quantity_#{dom_id(product)}"
|
6
|
+
= hidden_field_tag :return_to, users_wish_list_path, id: "wishlist_return_to_#{dom_id(product)}"
|
7
|
+
.wish-list-form__action
|
8
|
+
= button_tag value: 'add_to_wish_list', class: 'text-button' do
|
9
|
+
= inline_svg('workarea/storefront/icons/heart.svg', class: 'text-button__icon')
|
10
|
+
= t('workarea.storefront.wish_lists.add_to_wish_list')
|