workarea-one_theme 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (346) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +20 -0
  3. data/.eslintignore +1 -0
  4. data/.eslintrc +25 -0
  5. data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  6. data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
  7. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  8. data/.github/workflows/ci.yml +60 -0
  9. data/.gitignore +21 -0
  10. data/.rubocop.yml +3 -0
  11. data/.stylelintrc.json +8 -0
  12. data/CHANGELOG.md +267 -0
  13. data/CODE_OF_CONDUCT.md +3 -0
  14. data/CONTRIBUTING.md +3 -0
  15. data/Gemfile +20 -0
  16. data/LICENSE.md +3 -0
  17. data/README.md +173 -0
  18. data/Rakefile +63 -0
  19. data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff +0 -0
  20. data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff2 +0 -0
  21. data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff +0 -0
  22. data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff2 +0 -0
  23. data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff +0 -0
  24. data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff2 +0 -0
  25. data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff +0 -0
  26. data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff2 +0 -0
  27. data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff +0 -0
  28. data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff2 +0 -0
  29. data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff +0 -0
  30. data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff2 +0 -0
  31. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff +0 -0
  32. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff2 +0 -0
  33. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff +0 -0
  34. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff2 +0 -0
  35. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff +0 -0
  36. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff2 +0 -0
  37. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff +0 -0
  38. data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff2 +0 -0
  39. data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff +0 -0
  40. data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff2 +0 -0
  41. data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff +0 -0
  42. data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff2 +0 -0
  43. data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff +0 -0
  44. data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff2 +0 -0
  45. data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff +0 -0
  46. data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff2 +0 -0
  47. data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff +0 -0
  48. data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff2 +0 -0
  49. data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff +0 -0
  50. data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff2 +0 -0
  51. data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff +0 -0
  52. data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff2 +0 -0
  53. data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff +0 -0
  54. data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff2 +0 -0
  55. data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff +0 -0
  56. data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff2 +0 -0
  57. data/app/assets/images/workarea/admin/content_block_types/hero_slider.svg +1 -0
  58. data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_category_summary.svg +1 -0
  59. data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_products.svg +1 -0
  60. data/app/assets/images/workarea/storefront/dialog_close.svg +1 -0
  61. data/app/assets/images/workarea/storefront/icons/account.svg +1 -0
  62. data/app/assets/images/workarea/storefront/icons/arrow_left.svg +1 -0
  63. data/app/assets/images/workarea/storefront/icons/arrow_right.svg +1 -0
  64. data/app/assets/images/workarea/storefront/icons/cart.svg +1 -0
  65. data/app/assets/images/workarea/storefront/icons/chevron_down.svg +1 -0
  66. data/app/assets/images/workarea/storefront/icons/chevron_right.svg +1 -0
  67. data/app/assets/images/workarea/storefront/icons/search.svg +1 -0
  68. data/app/assets/images/workarea/storefront/logo.png +0 -0
  69. data/app/assets/javascripts/workarea/storefront/application.js.erb +147 -0
  70. data/app/assets/javascripts/workarea/storefront/clothing/modules/product_details_color_buttons.js +86 -0
  71. data/app/assets/javascripts/workarea/storefront/dependencies/jquery.payment.js +655 -0
  72. data/app/assets/javascripts/workarea/storefront/modules/address_region_fields.js +93 -0
  73. data/app/assets/javascripts/workarea/storefront/modules/cart_indicator.js +35 -0
  74. data/app/assets/javascripts/workarea/storefront/modules/checkout_primary_payments.js +136 -0
  75. data/app/assets/javascripts/workarea/storefront/modules/header_search_ui.js +64 -0
  76. data/app/assets/javascripts/workarea/storefront/modules/mobile_filters.js +79 -0
  77. data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +137 -0
  78. data/app/assets/javascripts/workarea/storefront/modules/quantity_control.js +56 -0
  79. data/app/assets/javascripts/workarea/storefront/modules/utility_nav_dropdown.js +43 -0
  80. data/app/assets/javascripts/workarea/storefront/one_theme/config.js +20 -0
  81. data/app/assets/javascripts/workarea/storefront/product_quickview/templates/quickview_button.jst.ejs +3 -0
  82. data/app/assets/javascripts/workarea/storefront/reviews/modules/product_reviews_sort_menus.js +82 -0
  83. data/app/assets/javascripts/workarea/storefront/reviews/templates/sort_by_property.jst.ejs +19 -0
  84. data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
  85. data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +23 -0
  86. data/app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss +17 -0
  87. data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +150 -0
  88. data/app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss +42 -0
  89. data/app/assets/stylesheets/one_theme/.keep +0 -0
  90. data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +197 -0
  91. data/app/assets/stylesheets/workarea/storefront/base/_tables.scss +32 -0
  92. data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry.scss +139 -0
  93. data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry_summary.scss +90 -0
  94. data/app/assets/stylesheets/workarea/storefront/clothing/components/_color_options.scss +57 -0
  95. data/app/assets/stylesheets/workarea/storefront/clothing/components/_size_options.scss +123 -0
  96. data/app/assets/stylesheets/workarea/storefront/components/_account_dashboard.scss +33 -0
  97. data/app/assets/stylesheets/workarea/storefront/components/_box.scss +45 -0
  98. data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +27 -0
  99. data/app/assets/stylesheets/workarea/storefront/components/_button.scss +72 -0
  100. data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +41 -0
  101. data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +26 -0
  102. data/app/assets/stylesheets/workarea/storefront/components/_category_summary_content_block.scss +78 -0
  103. data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +21 -0
  104. data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +58 -0
  105. data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +47 -0
  106. data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +15 -0
  107. data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +47 -0
  108. data/app/assets/stylesheets/workarea/storefront/components/_color_box.scss +48 -0
  109. data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +70 -0
  110. data/app/assets/stylesheets/workarea/storefront/components/_hamburger.scss +107 -0
  111. data/app/assets/stylesheets/workarea/storefront/components/_header.scss +31 -0
  112. data/app/assets/stylesheets/workarea/storefront/components/_hero_slider_content_block.scss +75 -0
  113. data/app/assets/stylesheets/workarea/storefront/components/_loading.scss +92 -0
  114. data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters.scss +42 -0
  115. data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +146 -0
  116. data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +45 -0
  117. data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +33 -0
  118. data/app/assets/stylesheets/workarea/storefront/components/_order_summary.scss +19 -0
  119. data/app/assets/stylesheets/workarea/storefront/components/_page_container.scss +31 -0
  120. data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +30 -0
  121. data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +96 -0
  122. data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +188 -0
  123. data/app/assets/stylesheets/workarea/storefront/components/_page_messages.scss +36 -0
  124. data/app/assets/stylesheets/workarea/storefront/components/_page_sub_footer.scss +39 -0
  125. data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +10 -0
  126. data/app/assets/stylesheets/workarea/storefront/components/_payment_icon.scss +29 -0
  127. data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +99 -0
  128. data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +19 -0
  129. data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +94 -0
  130. data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +182 -0
  131. data/app/assets/stylesheets/workarea/storefront/components/_product_list_content_block.scss +20 -0
  132. data/app/assets/stylesheets/workarea/storefront/components/_product_media.scss +109 -0
  133. data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +45 -0
  134. data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +92 -0
  135. data/app/assets/stylesheets/workarea/storefront/components/_promo_code_accordion.scss +13 -0
  136. data/app/assets/stylesheets/workarea/storefront/components/_property.scss +68 -0
  137. data/app/assets/stylesheets/workarea/storefront/components/_quantity_control.scss +77 -0
  138. data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +57 -0
  139. data/app/assets/stylesheets/workarea/storefront/components/_select_menu.scss +68 -0
  140. data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +78 -0
  141. data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +173 -0
  142. data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +57 -0
  143. data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +19 -0
  144. data/app/assets/stylesheets/workarea/storefront/components/_utility_nav.scss +49 -0
  145. data/app/assets/stylesheets/workarea/storefront/components/_value.scss +51 -0
  146. data/app/assets/stylesheets/workarea/storefront/email/_settings.scss +23 -0
  147. data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss.erb +11 -0
  148. data/app/assets/stylesheets/workarea/storefront/objects/_content_wrapper.scss +23 -0
  149. data/app/assets/stylesheets/workarea/storefront/product_quickview/components/_quickview_button.scss +33 -0
  150. data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews.scss +66 -0
  151. data/app/assets/stylesheets/workarea/storefront/reviews/components/_write_review.scss +71 -0
  152. data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss.erb +21 -0
  153. data/app/assets/stylesheets/workarea/storefront/settings/_font_families.scss.erb +6 -0
  154. data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +39 -0
  155. data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +8 -0
  156. data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +43 -0
  157. data/app/assets/stylesheets/workarea/storefront/share/components/_share_buttons.scss +22 -0
  158. data/app/assets/stylesheets/workarea/storefront/slick_slider/components/_slick_slider.scss +171 -0
  159. data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_facet.scss +26 -0
  160. data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_options.scss +55 -0
  161. data/app/assets/stylesheets/workarea/storefront/theme_config/_midnight_color_scheme.scss +110 -0
  162. data/app/assets/stylesheets/workarea/storefront/theme_config/_one_color_scheme.scss +104 -0
  163. data/app/assets/stylesheets/workarea/storefront/theme_config/_workarea_color_scheme.scss +105 -0
  164. data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_hind.scss +19 -0
  165. data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_lora.scss +33 -0
  166. data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_muli.scss +33 -0
  167. data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_playfair_display.scss +33 -0
  168. data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_roboto.scss +26 -0
  169. data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_source_serif_pro.scss +19 -0
  170. data/app/assets/stylesheets/workarea/storefront/tools/_checkout_section.scss +12 -0
  171. data/app/assets/stylesheets/workarea/storefront/tools/_full_bleed_container.scss +15 -0
  172. data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +81 -0
  173. data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +27 -0
  174. data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +30 -0
  175. data/app/helpers/workarea/storefront/one_theme_helper.rb +71 -0
  176. data/app/seeds/workarea/browse_navigation_seeds.rb +35 -0
  177. data/app/seeds/workarea/content_block_page_seeds.rb +22 -0
  178. data/app/seeds/workarea/theme_home_page_seeds.rb +58 -0
  179. data/app/seeds/workarea/theme_layout_content_seeds.rb +41 -0
  180. data/app/view_models/workarea/storefront/content_blocks/category_summary_view_model.decorator +21 -0
  181. data/app/view_models/workarea/storefront/content_blocks/hero_slider_block_view_model.rb +44 -0
  182. data/app/view_models/workarea/storefront/content_blocks/product_list_view_model.decorator +50 -0
  183. data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_category_view_model.rb +49 -0
  184. data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_products_view_model.rb +21 -0
  185. data/app/view_models/workarea/storefront/product_view_model.decorator +11 -0
  186. data/app/views/layouts/workarea/storefront/_wish_lists_link.html.haml +4 -0
  187. data/app/views/layouts/workarea/storefront/application.html.haml +211 -0
  188. data/app/views/layouts/workarea/storefront/checkout.html.haml +97 -0
  189. data/app/views/workarea/storefront/blog_comments/index.html.haml +31 -0
  190. data/app/views/workarea/storefront/blog_entries/_summary.html.haml +26 -0
  191. data/app/views/workarea/storefront/blog_entries/show.html.haml +85 -0
  192. data/app/views/workarea/storefront/blogs/_blog_navigation.html.haml +7 -0
  193. data/app/views/workarea/storefront/blogs/index.html.haml +47 -0
  194. data/app/views/workarea/storefront/cart_items/create.html.haml +66 -0
  195. data/app/views/workarea/storefront/carts/show.html.haml +175 -0
  196. data/app/views/workarea/storefront/categories/show.html.haml +105 -0
  197. data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +38 -0
  198. data/app/views/workarea/storefront/checkouts/_summary.html.haml +102 -0
  199. data/app/views/workarea/storefront/checkouts/addresses.html.haml +56 -0
  200. data/app/views/workarea/storefront/checkouts/confirmation.html.haml +58 -0
  201. data/app/views/workarea/storefront/checkouts/payment.html.haml +186 -0
  202. data/app/views/workarea/storefront/checkouts/shipping.html.haml +38 -0
  203. data/app/views/workarea/storefront/content_blocks/_blog_entry.html.haml +19 -0
  204. data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +20 -0
  205. data/app/views/workarea/storefront/content_blocks/_hero_slider.html.haml +15 -0
  206. data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +11 -0
  207. data/app/views/workarea/storefront/content_blocks/_social_networks.html.haml +17 -0
  208. data/app/views/workarea/storefront/content_blocks/_taxonomy_with_category_summary.html.haml +26 -0
  209. data/app/views/workarea/storefront/content_blocks/_taxonomy_with_products.html.haml +26 -0
  210. data/app/views/workarea/storefront/menus/index.html.haml +17 -0
  211. data/app/views/workarea/storefront/orders/_summary.html.haml +286 -0
  212. data/app/views/workarea/storefront/products/_media.html.haml +22 -0
  213. data/app/views/workarea/storefront/products/_media_carousel.html.haml +25 -0
  214. data/app/views/workarea/storefront/products/_pricing.html.haml +40 -0
  215. data/app/views/workarea/storefront/products/_reviews.html.haml +27 -0
  216. data/app/views/workarea/storefront/products/_subscription_fields.html.haml +15 -0
  217. data/app/views/workarea/storefront/products/_summary.html.haml +16 -0
  218. data/app/views/workarea/storefront/products/_swatch_summary.html.haml +17 -0
  219. data/app/views/workarea/storefront/products/package_show.html.haml +46 -0
  220. data/app/views/workarea/storefront/products/show.html.haml +53 -0
  221. data/app/views/workarea/storefront/products/templates/_generic.html.haml +61 -0
  222. data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +68 -0
  223. data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +61 -0
  224. data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +67 -0
  225. data/app/views/workarea/storefront/products/templates/_swatches.html.haml +78 -0
  226. data/app/views/workarea/storefront/reviews/new.html.haml +72 -0
  227. data/app/views/workarea/storefront/searches/content.html.haml +78 -0
  228. data/app/views/workarea/storefront/searches/show.html.haml +97 -0
  229. data/app/views/workarea/storefront/shared/_address_fields.html.haml +109 -0
  230. data/app/views/workarea/storefront/shares/_share_buttons.html.haml +17 -0
  231. data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +91 -0
  232. data/app/views/workarea/storefront/style_guides/components/_breadcrumbs.html.haml +13 -0
  233. data/app/views/workarea/storefront/style_guides/components/_button.html.haml +69 -0
  234. data/app/views/workarea/storefront/style_guides/components/_category_summary_content_block.html.haml +54 -0
  235. data/app/views/workarea/storefront/style_guides/components/_header.html.haml +18 -0
  236. data/app/views/workarea/storefront/style_guides/components/_hero_slider_content_block.html.haml +46 -0
  237. data/app/views/workarea/storefront/style_guides/components/_mobile_filters.html.haml +17 -0
  238. data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +46 -0
  239. data/app/views/workarea/storefront/style_guides/components/_product_summary.html.haml +47 -0
  240. data/app/views/workarea/storefront/style_guides/components/_svg_icon.html.haml +63 -0
  241. data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_category_summary_content_block.html.haml +33 -0
  242. data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_products_content_block.html.haml +33 -0
  243. data/app/views/workarea/storefront/style_guides/components/_text_box.html.haml +63 -0
  244. data/app/views/workarea/storefront/style_guides/settings/_color_variables.html.haml +79 -0
  245. data/app/views/workarea/storefront/style_guides/settings/color_schemes/_midnight_color_scheme.html.haml +7 -0
  246. data/app/views/workarea/storefront/style_guides/settings/color_schemes/_one_color_scheme.html.haml +7 -0
  247. data/app/views/workarea/storefront/style_guides/settings/color_schemes/_workarea_color_scheme.html.haml +8 -0
  248. data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +47 -0
  249. data/app/views/workarea/storefront/style_guides/typography/_links.html.haml +27 -0
  250. data/app/views/workarea/storefront/users/accounts/_wish_list_summary.html.haml +16 -0
  251. data/app/views/workarea/storefront/users/accounts/edit.html.haml +41 -0
  252. data/app/views/workarea/storefront/users/accounts/show.html.haml +118 -0
  253. data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +74 -0
  254. data/app/views/workarea/storefront/users/credit_cards/new.html.haml +66 -0
  255. data/app/views/workarea/storefront/users/orders/index.html.haml +22 -0
  256. data/app/views/workarea/storefront/users/orders/show.html.haml +31 -0
  257. data/app/views/workarea/storefront/users/wish_lists/show.html.haml +136 -0
  258. data/app/views/workarea/storefront/wish_lists/show.html.haml +99 -0
  259. data/bin/rails +20 -0
  260. data/config/initializers/appends.rb +62 -0
  261. data/config/initializers/configuration.rb +9 -0
  262. data/config/initializers/content_block_types.rb +91 -0
  263. data/config/initializers/dragonfly.rb +50 -0
  264. data/config/initializers/seeds.rb +5 -0
  265. data/config/initializers/theme.rb +16 -0
  266. data/config/initializers/workarea.rb +3 -0
  267. data/config/locales/en.yml +26 -0
  268. data/config/routes.rb +2 -0
  269. data/lib/tasks/one_theme_tasks.rake +4 -0
  270. data/lib/workarea/one_theme.rb +24 -0
  271. data/lib/workarea/one_theme/engine.rb +13 -0
  272. data/lib/workarea/one_theme/version.rb +5 -0
  273. data/package.json +9 -0
  274. data/test/dummy/Rakefile +6 -0
  275. data/test/dummy/app/assets/config/manifest.js +4 -0
  276. data/test/dummy/app/assets/images/.keep +0 -0
  277. data/test/dummy/app/assets/javascripts/application.js +13 -0
  278. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  279. data/test/dummy/app/controllers/application_controller.rb +3 -0
  280. data/test/dummy/app/controllers/concerns/.keep +0 -0
  281. data/test/dummy/app/helpers/application_helper.rb +2 -0
  282. data/test/dummy/app/jobs/application_job.rb +2 -0
  283. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  284. data/test/dummy/app/models/concerns/.keep +0 -0
  285. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  286. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  287. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  288. data/test/dummy/bin/bundle +3 -0
  289. data/test/dummy/bin/rails +4 -0
  290. data/test/dummy/bin/rake +4 -0
  291. data/test/dummy/bin/setup +38 -0
  292. data/test/dummy/bin/update +29 -0
  293. data/test/dummy/bin/yarn +11 -0
  294. data/test/dummy/config.ru +5 -0
  295. data/test/dummy/config/application.rb +29 -0
  296. data/test/dummy/config/boot.rb +5 -0
  297. data/test/dummy/config/cable.yml +10 -0
  298. data/test/dummy/config/environment.rb +5 -0
  299. data/test/dummy/config/environments/development.rb +54 -0
  300. data/test/dummy/config/environments/production.rb +91 -0
  301. data/test/dummy/config/environments/test.rb +44 -0
  302. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  303. data/test/dummy/config/initializers/assets.rb +14 -0
  304. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  305. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  306. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  307. data/test/dummy/config/initializers/inflections.rb +16 -0
  308. data/test/dummy/config/initializers/mime_types.rb +4 -0
  309. data/test/dummy/config/initializers/workarea.rb +5 -0
  310. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  311. data/test/dummy/config/locales/en.yml +33 -0
  312. data/test/dummy/config/puma.rb +56 -0
  313. data/test/dummy/config/routes.rb +5 -0
  314. data/test/dummy/config/secrets.yml +32 -0
  315. data/test/dummy/config/spring.rb +6 -0
  316. data/test/dummy/db/seeds.rb +2 -0
  317. data/test/dummy/lib/assets/.keep +0 -0
  318. data/test/dummy/log/.keep +0 -0
  319. data/test/dummy/package.json +5 -0
  320. data/test/helpers/workarea/storefront/reviews_helper_test.decorator +11 -0
  321. data/test/integration/workarea/blog/wordpress_import_integration_test.decorator +27 -0
  322. data/test/integration/workarea/storefront/sharing_integration_test.decorator +40 -0
  323. data/test/integration/workarea/storefront/swatches_integration_test.decorator +28 -0
  324. data/test/system/workarea/admin/guest_browsing_system_test.decorator +40 -0
  325. data/test/system/workarea/storefront/analytics_system_test.decorator +51 -0
  326. data/test/system/workarea/storefront/browse_swatches_system_test.decorator +48 -0
  327. data/test/system/workarea/storefront/cart_items_system_test.decorator +98 -0
  328. data/test/system/workarea/storefront/categories_system_test.decorator +100 -0
  329. data/test/system/workarea/storefront/content_search_autocomplete_system_test.decorator +33 -0
  330. data/test/system/workarea/storefront/content_search_system_test.decorator +21 -0
  331. data/test/system/workarea/storefront/content_system_test.decorator +21 -0
  332. data/test/system/workarea/storefront/guest_checkout_system_test.decorator +37 -0
  333. data/test/system/workarea/storefront/logged_in_checkout_system_test.decorator +34 -0
  334. data/test/system/workarea/storefront/login_system_test.decorator +94 -0
  335. data/test/system/workarea/storefront/navigation_system_test.decorator +28 -0
  336. data/test/system/workarea/storefront/passwords_system_test.decorator +59 -0
  337. data/test/system/workarea/storefront/review_system_test.decorator +23 -0
  338. data/test/system/workarea/storefront/search_autocomplete_system_test.decorator +46 -0
  339. data/test/system/workarea/storefront/search_system_test.decorator +71 -0
  340. data/test/teaspoon_env.rb +6 -0
  341. data/test/test_helper.rb +10 -0
  342. data/test/view_models/workarea/storefront/taxonomy_with_category_view_model_test.rb +35 -0
  343. data/test/view_models/workarea/storefront/taxonomy_with_products_view_model_test.rb +28 -0
  344. data/workarea-one_theme.gemspec +33 -0
  345. data/yarn.lock +3290 -0
  346. metadata +582 -0
@@ -0,0 +1,74 @@
1
+ - @title = t('workarea.storefront.users.edit_credit_card')
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_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
+ .grid.grid--middle
32
+ .grid__cell.grid__cell--50-at-medium
33
+ .property
34
+ = label_tag 'credit_card[first_name]', nil, class: 'property__name' do
35
+ %span.property__text= t('workarea.storefront.users.first_name')
36
+ .value= text_field_tag 'credit_card[first_name]', @credit_card.first_name, class: 'text-box', autocomplete: 'given-name', required: true
37
+ .grid__cell.grid__cell--50-at-medium
38
+ .property
39
+ = label_tag 'credit_card[last_name]', nil, class: 'property__name' do
40
+ %span.property__text= t('workarea.storefront.users.last_name')
41
+ .value= text_field_tag 'credit_card[last_name]', @credit_card.last_name, class: 'text-box', autocomplete: 'family-name', required: true
42
+
43
+ .grid__cell.grid__cell--33-at-wide
44
+ %strong= t('workarea.storefront.credit_cards.card_number')
45
+ %span= @credit_card.display_number
46
+
47
+ .grid__cell.grid__cell--66.grid__cell--33-at-wide
48
+ .property
49
+ %span.property__name= t('workarea.storefront.credit_cards.expiration_date')
50
+ .value
51
+ .grid
52
+ .grid__cell.grid__cell--50
53
+ = select_tag 'credit_card[month]', options_for_select(1..12, @credit_card.month), title: t('workarea.storefront.credit_cards.expiration_month')
54
+ .grid__cell.grid__cell--50
55
+ = select_tag 'credit_card[year]', options_for_select(Time.now.year..Time.now.year + 10, @credit_card.year), title: t('workarea.storefront.credit_cards.expiration_year')
56
+
57
+ .grid__cell.grid__cell--33
58
+ .property
59
+ = label_tag 'credit_card[cvv]', nil, class: 'property__name' do
60
+ %span.property__text= t('workarea.storefront.credit_cards.security_code')
61
+ .value
62
+ = text_field_tag 'credit_card[cvv]', nil, class: 'text-box text-box--small', required: true, inputmode: 'numeric', pattern: '[0-9]*', autocomplete: 'cc-csc'
63
+ %span.value__note.value__note--inline= link_to t('workarea.storefront.credit_cards.whats_this'), page_path('credit-card-security-code'), data: { dialog_button: '' }
64
+
65
+ .grid__cell
66
+ - unless @credit_card.default?
67
+ .button-property
68
+ .value= check_box_tag 'credit_card[default]', true, @credit_card.default?
69
+ = label_tag 'credit_card[default]', nil, class: 'button-property__name' do
70
+ %span.button-property__text= t('workarea.storefront.users.set_as_default_card')
71
+
72
+ .grid.grid--auto.grid--right.grid--middle
73
+ %p.grid__cell= link_to t('workarea.storefront.forms.cancel'), users_account_path, class: "text-button", data: { dialog_close_button: '' }
74
+ %p.grid__cell= button_tag t('workarea.storefront.forms.save'), value: 'save_credit_card', class: 'button'
@@ -0,0 +1,66 @@
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
7
+ = link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home', class: 'breadcrumbs__link'
8
+ %span.breadcrumbs__node
9
+ = link_to t('workarea.storefront.users.account'), users_account_path, class: 'breadcrumbs__link'
10
+ %span.breadcrumbs__node
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
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', 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', 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', inputmode: 'numeric', pattern: '[0-9\s]*', required: true, autocomplete: 'cc-number'
40
+
41
+ .grid__cell.grid__cell--66.grid__cell--33-at-wide
42
+ .property
43
+ %span.property__name= t('workarea.storefront.credit_cards.expiration_date')
44
+ .value
45
+ .grid
46
+ .grid__cell.grid__cell--50
47
+ = select_tag 'credit_card[month]', options_for_select(1..12, params[:credit_card][:month]), title: t('workarea.storefront.credit_cards.expiration_month')
48
+ .grid__cell.grid__cell--50
49
+ = select_tag 'credit_card[year]', options_for_select(Time.now.year..Time.now.year + 10, params[:credit_card][:year]), title: t('workarea.storefront.credit_cards.expiration_year')
50
+
51
+ .grid__cell.grid__cell--33
52
+ .property
53
+ = label_tag 'credit_card[cvv]', nil, class: 'property__name' do
54
+ %span.property__text= t('workarea.storefront.credit_cards.security_code')
55
+ .value
56
+ = text_field_tag 'credit_card[cvv]', nil, class: 'text-box text-box--small', inputmode: 'numeric', pattern: '[0-9]*', autocomplete: 'cc-csc', required: true
57
+ %span.value__note=link_to t('workarea.storefront.credit_cards.whats_this'), page_path('credit-card-security-code'), data: { dialog_button: '' }
58
+
59
+ .button-property
60
+ .value= check_box_tag 'credit_card[default]', true, @user.credit_cards.empty?
61
+ = label_tag 'credit_card[default]', nil, class: 'button-property__name' do
62
+ %span.button-property__text= t('workarea.storefront.users.set_as_default_card')
63
+
64
+ .grid.grid--auto.grid--right.grid--middle
65
+ %p.grid__cell= link_to t('workarea.storefront.forms.cancel'), users_account_path, class: "text-button", data: { dialog_close_button: '' }
66
+ %p.grid__cell= button_tag t('workarea.storefront.forms.save'), value: 'save_credit_card', class: 'button'
@@ -0,0 +1,22 @@
1
+ - @title = t('workarea.storefront.users.order_history')
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.order_history')
11
+
12
+ .view
13
+ .account-dashboard
14
+ %h1= t('workarea.storefront.users.order_history')
15
+
16
+ - if @orders.empty?
17
+ %p= t('workarea.storefront.users.no_orders')
18
+
19
+ - else
20
+ - @orders.each do |order|
21
+ .account-dashboard__component
22
+ = render 'workarea/storefront/users/orders/summary', order: order
@@ -0,0 +1,31 @@
1
+ - @title = "#{t('workarea.storefront.orders.order')} #{@order.id}"
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
+ = link_to t('workarea.storefront.users.order_history'), users_orders_path, class: 'breadcrumbs__link'
11
+ %span.breadcrumbs__node
12
+ %span.breadcrumbs__text= t('workarea.storefront.users.order_details')
13
+
14
+ .view
15
+ .grid
16
+ .grid__cell.grid__cell--50-at-medium
17
+ %h1 #{t('workarea.storefront.orders.order')} #{@order.id}
18
+
19
+ .grid__cell.grid__cell--50-at-medium
20
+ %table.table
21
+ %tbody
22
+ %tr
23
+ %th= t('workarea.storefront.orders.placed_at')
24
+ %td= local_time(@order.placed_at, :short_date_at_time)
25
+ %tr
26
+ %th= t('workarea.storefront.orders.status')
27
+ %td= @order.fulfillment_status
28
+
29
+ = append_partials('storefront.order_show')
30
+
31
+ = render 'workarea/storefront/orders/summary', order: @order
@@ -0,0 +1,136 @@
1
+ - @title = t('workarea.storefront.wish_lists.wish_list_title')
2
+
3
+ = render_schema_org(breadcrumb_list_schema([[t('workarea.storefront.layouts.home'), root_url], [t('workarea.storefront.users.account'), users_account_url], [t('workarea.storefront.wish_lists.wish_list_title'), wish_lists_url]]))
4
+
5
+ - content_for :breadcrumbs do
6
+ %p.breadcrumbs__node-group
7
+ %span.breadcrumbs__node
8
+ = link_to t('workarea.storefront.layouts.home'), root_path, rel: 'home'
9
+ %span.breadcrumbs__node
10
+ = link_to t('workarea.storefront.users.account'), users_account_path
11
+ %span.breadcrumbs__node= t('workarea.storefront.wish_lists.show_title', name: @wish_list.name)
12
+
13
+ .wish-lists.view
14
+
15
+ %h1= t('workarea.storefront.wish_lists.wish_list_title')
16
+
17
+ .wish-lists__section.wish-lists__section--settings
18
+ .grid
19
+ .grid__cell.grid__cell--50-at-medium
20
+ %h2= t('workarea.storefront.wish_lists.privacy')
21
+ = form_tag update_users_wish_list_path, method: 'patch' do
22
+ .button-property-group
23
+ .button-property
24
+ .value= radio_button_tag :privacy, 'public', @wish_list.public?, data: { form_submitting_control: '' }
25
+ = label_tag 'privacy[public]', nil, class: 'button-property__name' do
26
+ %span.button-property__text= t('workarea.storefront.wish_lists.public_privacy')
27
+ .button-property
28
+ .value= radio_button_tag :privacy, 'shared', @wish_list.shared?, data: { form_submitting_control: '' }
29
+ = label_tag 'privacy[shared]', nil, class: 'button-property__name' do
30
+ %span.button-property__text= t('workarea.storefront.wish_lists.shared_privacy')
31
+ .button-property
32
+ .value= radio_button_tag :privacy, 'private', @wish_list.private?, data: { form_submitting_control: '' }
33
+ = label_tag 'privacy[private]', nil, class: 'button-property__name' do
34
+ %span.button-property__text= t('workarea.storefront.wish_lists.private_privacy')
35
+ %p.hidden-if-js-enabled= button_tag t('workarea.storefront.forms.save'), value: 'save_privacy', class: 'button'
36
+
37
+ - if @wish_list.shared? || @wish_list.public?
38
+ .grid__cell.grid__cell--50-at-medium
39
+ %h2= t('workarea.storefront.wish_lists.share_your_wishlist')
40
+ .wish-lists__public-url
41
+ %p.wish-lists__public-url-name= t('workarea.storefront.wish_lists.wish_list_link')
42
+ %p.wish-lists__public-url-link= link_to wish_list_url(@wish_list.token), wish_list_path(@wish_list.token)
43
+
44
+ .wish-lists__section.wish-lists__section--items
45
+
46
+ .grid.grid--middle
47
+ .grid__cell.grid__cell--50-at-medium
48
+ %h2= t('workarea.storefront.wish_lists.items')
49
+ .grid__cell.grid__cell--50-at-medium
50
+ .grid.grid--right.grid--auto
51
+ .grid__cell
52
+ .browsing-controls
53
+ = form_tag users_wish_list_path, method: 'get', class: 'browsing-controls__form' do
54
+ .browsing-controls__form-item.property
55
+ = label_tag :state, nil, class: 'property__name' do
56
+ %span.property__text= t('workarea.storefront.wish_lists.show')
57
+ .value= select_tag :state, options_for_select(@wish_list.state_options, params[:state]), data: { form_submitting_control: '' }
58
+ %p.browsing-controls__form-item.hidden-if-js-enabled= button_tag t('workarea.storefront.forms.go'), class: 'button'
59
+
60
+ - if @wish_list.items.empty?
61
+
62
+ %p= @wish_list.empty_text
63
+
64
+ - else
65
+
66
+ %ul.product-list
67
+ - @wish_list.items.each do |item|
68
+ = render_schema_org(product_schema(item.product))
69
+ %li.product-list__item
70
+ .product-list__item-cell
71
+ .product-list__summary
72
+ %p.product-list__media= link_to image_tag(product_image_url(item.primary_image, :small_thumb), alt: item.name, class: 'product-list__media-image'), product_url(item.product, sku: item.sku), class: 'product-list__media-link'
73
+ .product-list__info
74
+ %p.product-list__name= link_to item.name, product_path(item.product, sku: item.sku)
75
+ %p.product-list__id= item.sku_name
76
+ %p= item.inventory_status
77
+ .product-list__option-group
78
+ - item.details.each do |name, value|
79
+ %p.product-list__option #{name.titleize}: #{value}
80
+ - item.customizations.each do |name, value|
81
+ %p.product-list__option #{name.titleize}: #{value}
82
+ .product-list__item-cell
83
+ %table.table
84
+ %thead
85
+ %tr
86
+ %th.table__prices= t('workarea.storefront.orders.price')
87
+ %th.table__quantity= t('workarea.storefront.orders.quantity')
88
+ %th.table__prices= t('workarea.storefront.orders.total')
89
+ %tbody
90
+ %tr
91
+ %td.table__prices
92
+ - if item.on_sale?
93
+ %p.table__price
94
+ %span.table__price-label= t('workarea.storefront.orders.price_now')
95
+ %strong.table__price-discount= number_to_currency(item.unit_price, exchange: false)
96
+ %p.table__price
97
+ %span.table__price-label= t('workarea.storefront.orders.price_was')
98
+ %s= number_to_currency(item.original_price, exchange: false)
99
+ - else
100
+ %p.table__price
101
+ %span= number_to_currency(item.unit_price, exchange: false)
102
+ - if item.customized?
103
+ %p.table__price
104
+ %span.table__price-label= t('workarea.storefront.orders.customizations')
105
+ %span= number_to_currency item.customizations_unit_price
106
+ %td.table__quantity
107
+ = form_tag update_item_users_wish_list_path(item), method: 'patch', class: 'inline-form' do
108
+ .inline-form__cell
109
+ .value= number_field_tag :quantity, item.quantity, class: 'text-box text-box--x-small', min: 1, data: { form_submitting_control: '' }, id: nil
110
+ %p.inline-form__cell.hidden-if-js-enabled= button_tag t('workarea.storefront.forms.update'), value: 'change_quantity', class: 'button'
111
+ %td.table__prices
112
+ - if item.total_adjustments.many?
113
+ %p.table__price
114
+ %span.table__price-label= t('workarea.storefront.orders.subtotal')
115
+ %span= number_to_currency item.prediscount_price
116
+ - item.total_adjustments.each do |adjustment|
117
+ %p.table__price
118
+ %span= adjustment.description.titleize
119
+ %span= number_to_currency(adjustment.amount)
120
+ %p.table__price
121
+ %span= number_to_currency(item.total_price, exchange: false)
122
+ .grid.grid--auto.grid--middle
123
+ - if item.purchasable?
124
+ = form_tag cart_items_path, class: 'grid__cell', data: { dialog_form: { dialogOptions: { closeAll: true, initModules: true } }, analytics: add_to_cart_analytics_data(item.product).to_json } do
125
+ = hidden_field_tag :sku, item.sku, id: nil
126
+ = hidden_field_tag :quantity, item.quantity, id: nil
127
+ = hidden_field_tag :via, @wish_list.to_gid_param, id: nil
128
+ - item.customizations.each do |param, value|
129
+ = hidden_field_tag param, value, id: nil
130
+ %p= button_tag t('workarea.storefront.products.add_to_cart'), value: 'add_to_cart', class: 'button'
131
+ - else
132
+ %p.unavailable= t('workarea.storefront.products.unavailable')
133
+
134
+ = form_tag remove_from_users_wish_list_path, method: 'delete', class: 'grid__cell', data: { analytics: remove_from_wish_list_analytics_data(item.product).to_json } do
135
+ = hidden_field_tag :sku, item.sku, id: nil
136
+ %p= button_tag t('workarea.storefront.carts.remove'), value: 'remove_item', class: 'text-button'
@@ -0,0 +1,99 @@
1
+ - @title = t('workarea.storefront.wish_lists.show_title', name: @wish_list.name)
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'
7
+ %span.breadcrumbs__node{ itemprop: 'breadcrumb' }
8
+ = link_to t('workarea.storefront.wish_lists.find_title'), wish_lists_path
9
+ %span.breadcrumbs__node{ itemprop: 'breadcrumb' }= t('workarea.storefront.wish_lists.show_title', name: @wish_list.name)
10
+
11
+ .wish-lists.view
12
+
13
+
14
+ .wish-lists__section
15
+ .grid.grid--middle
16
+ .grid__cell.grid__cell--50-at-medium
17
+ %h1= t('workarea.storefront.wish_lists.show_title', name: @wish_list.name)
18
+
19
+ .grid__cell.grid__cell--50-at-medium
20
+ .grid.grid--right.grid--auto
21
+ .grid__cell
22
+ .browsing-controls
23
+ = form_tag wish_list_path(params[:id]), method: :get, class: 'browsing-controls__form' do
24
+ .browsing-controls__form-item.property
25
+ = label_tag :state, nil, class: 'property__name' do
26
+ %span.property__text= t('workarea.storefront.wish_lists.show')
27
+ %span.value= select_tag :state, options_for_select(@wish_list.state_options, params[:state]), data: { form_submitting_control: '' }
28
+ %p.browsing-controls__form-item.hidden-if-js-enabled= button_tag t('workarea.storefront.forms.go'), class: 'button'
29
+
30
+ - if @wish_list.items.empty?
31
+
32
+ %p= t('workarea.storefront.wish_lists.empty')
33
+
34
+ - else
35
+
36
+ %ul.product-list
37
+ - @wish_list.items.each do |item|
38
+ %li.product-list__item
39
+ .product-list__item-cell
40
+ .product-list__summary
41
+ %p.product-list__media= link_to image_tag(product_image_url(item.primary_image, :small_thumb), alt: item.name, class: 'product-list__media-image'), product_url(item.product, sku: item.sku), class: 'product-list__media-link'
42
+ .product-list__info
43
+ %p.product-list__name= link_to item.name, product_path(item.product, sku: item.sku)
44
+ %p.product-list__id= item.sku_name
45
+ %p= item.inventory_status
46
+ - if item.has_options?
47
+ .product-list__option-group
48
+ - item.details.each do |name, value|
49
+ %p.product-list__option #{name.titleize}: #{value}
50
+ - item.customizations.each do |name, value|
51
+ %p.product-list__option #{name.titleize}: #{value}
52
+ = form_tag cart_items_path, class: 'product-list__item-cell', data: { dialog_form: { dialogOptions: { closeAll: true, initModules: true } }, analytics: add_to_cart_analytics_data(item.product).to_json } do
53
+ = hidden_field_tag :product_id, item.product_id, id: nil
54
+ = hidden_field_tag :sku, item.sku, id: nil
55
+ %table.table
56
+ %thead
57
+ %tr
58
+ %th.table__prices= t('workarea.storefront.orders.price')
59
+ %th.table__quantity= t('workarea.storefront.wish_lists.requested')
60
+ %th.table__quantity= t('workarea.storefront.wish_lists.received')
61
+ %th.table__quantity= t('workarea.storefront.orders.quantity')
62
+ %th.table__prices= t('workarea.storefront.orders.total')
63
+ %tbody
64
+ %tr
65
+ %td.table__prices
66
+ - if item.on_sale?
67
+ %p.table__price
68
+ %span.table__price-label= t('workarea.storefront.orders.price_now')
69
+ %strong.table__price-discount.wish-lists__public-item-price= number_to_currency(item.unit_price, exchange: false)
70
+ %p.table__price
71
+ %span.table__price-label= t('workarea.storefront.orders.price_was')
72
+ %s= number_to_currency(item.original_price, exchange: false)
73
+ - else
74
+ %p.table__price
75
+ %span.wish-lists__public-item-price= number_to_currency(item.unit_price, exchange: false)
76
+ - if item.customized?
77
+ %p.table__price
78
+ %span.table__price-label= t('workarea.storefront.orders.customizations')
79
+ %span= number_to_currency item.customizations_unit_price
80
+ %td.table__quantity= item.quantity
81
+ %td.table__quantity= item.received
82
+ %td.table__quantity
83
+ .value= number_field_tag :quantity, item.quantity, class: 'text-box text-box--x-small wish-lists__public-quantity-field', min: 1, id: nil
84
+ %td.table__prices
85
+ - if item.total_adjustments.many?
86
+ %p.table__price
87
+ %span.table__price-label= t('workarea.storefront.orders.subtotal')
88
+ %span= number_to_currency item.prediscount_price
89
+ - item.total_adjustments.each do |adjustment|
90
+ %p.table__price
91
+ %span= adjustment.description.titleize
92
+ %span= number_to_currency(adjustment.amount)
93
+ %p.table__price
94
+ %span.wish-lists__public-total-price= number_to_currency(item.total_price, exchange: false)
95
+ .grid.grid--auto.grid--middle
96
+ - if item.purchasable?
97
+ %p.grid__cell= button_tag t('workarea.storefront.products.add_to_cart'), class: 'button'
98
+ - else
99
+ %p.unavailable= t('workarea.storefront.products.unavailable')
data/bin/rails ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails gems
3
+ # installed from the root of your application.
4
+
5
+ ENGINE_ROOT = File.expand_path("../..", __FILE__)
6
+ ENGINE_PATH = File.expand_path("../../lib/one_theme/engine", __FILE__)
7
+ APP_PATH = File.expand_path("../../test/dummy/config/application", __FILE__)
8
+
9
+ # Set up gems listed in the Gemfile.
10
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
11
+ require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
12
+
13
+ require "action_controller/railtie"
14
+ require "action_view/railtie"
15
+ require "action_mailer/railtie"
16
+ require "rails/test_unit/railtie"
17
+ require "sprockets/railtie"
18
+ require "teaspoon-mocha"
19
+
20
+ require "rails/engine/commands"