.grid.grid--rev .grid__cell.grid__cell--60-at-medium .product-details__name %h1.product-details__heading= product.name %p.product-details__id %span= product.id .product-prices.product-prices--details = render 'workarea/storefront/products/pricing', product: product - if product.description.present? .product-details__description %p= truncated_product_description(product, t('workarea.storefront.products.read_more')) = form_tag package_cart_items_path, method: 'post', class: 'product-details__add-to-cart-form', data: { dialog: { dialogOptions: { closeAll: true, initModules: true } }, analytics: add_to_cart_analytics_data(product).to_json } do = hidden_field_tag :product_id, product.id, id: dom_id(product, 'product_id') = hidden_field_tag :via, params[:via], id: dom_id(product, 'via') %p.product-details__add-to-cart-action= button_tag t('workarea.storefront.products.add_to_cart'), value: 'add_to_cart', class: 'button button--large' = append_partials('storefront.product_details', product: product) %p.product-details__full-details=link_to t('workarea.storefront.products.view_full_details'), product_path(product, color: params[:color]), class: 'text-button' .grid__cell.grid__cell--40-at-medium .product-details__primary-image = link_to(product_image_url(product.primary_image, :zoom), target: '_blank', class: 'product-details__primary-image-link', data: { dialog_button: '' }) do = image_tag product_image_url(product.primary_image, :detail), alt: 'View Larger Image', class: 'product-details__primary-image-link-image' - if product.images.length > 1 .product-details__alt-images .grid.grid--auto - product.images.each_with_index do |image, index| .grid__cell .product-details__alt-image - button_class = index == 0 ? 'product-details__alt-image-link product-details__alt-image-link--selected' : 'product-details__alt-image-link' = link_to(image_tag(product_image_url(image, :small_thumb), alt: t('workarea.storefront.products.zoom')), product_image_url(image, :zoom), class: button_class, target: '_blank', data: { alternate_image_button: { src: product_image_url(image, :detail) }.to_json }) = append_partials('storefront.product_details_alt_images', product: product)