Sha256: 94409d59480e1774cdf3dd4ad5907b8c8c4664fbde12e9a2dc120f9d7b3e4ed9
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
<div data-hook="account_my_favorite_products" class="account-my-favorite-products commonform"> <h3><%= Spree.t(:my_favorite_products) %></h3> <% if @favorite_products.present? %> <table class="favorite-products order-summary" width="100%"> <thead> <tr> <th class="favorite-product-image"><%= Spree.t(:product_image) %></th> <th class="favorite-product-name"><%= Spree.t(:product_name) %></th> <th class="favorite-product-action">Action</th> </tr> </thead> <tbody> <% @favorite_products.each do |product| %> <tr class="<%= cycle('even', 'odd') %> favorite_product" id="favorite_product_<%= product.id %>"> <td class="favorite-product-image"><%= link_to small_image(product), product_path(product) %></td> <td class="favorite-product-name"><%= product.name %></td> <td class="favorite-product-remove"><%= link_to 'Remove', favorite_product_path(:id => product.id), :method => :delete, :remote => true, :confirm => 'Are you sure you want to remove the product?' %> </tr> <% end %> </tbody> </table> <% else %> <p><%= Spree.t(:you_have_no_favorite_products_yet) %></p> <% end %> <%= paginate @favorite_products %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems