%= provide(:search_path, admin_products_path) %>
| asin | <%= link_to @product.asin, @product.detail_page_url %> |
| images | <%= image_tag(@product.large_image.url) %> <%= image_tag(@product.medium_image.url) %> <%= image_tag(@product.small_image.url) %> |
| Add to tools: | <% if @tool.present? %> In the toolbox as <%= @tool.name %> <% else %> <%= form_tag admin_products_path do %> <%= text_field_tag :name, @product.item_attributes['title'] %> <%= hidden_field_tag "asin", @product.asin %> <%= submit_tag("Add to tools", { data: { disable_with: 'Adding to toolbox...' } }) %> <% end %> <% end %> |
| attributes |
<% @product.item_attributes.each do |(key, value)| %>
<%= key %>: <%= value %> <% end %> |
| reviews | <%= @product.editorial_reviews.editorial_review.content %> |
| links |
|