<%= render partial: 'spree/admin/shared/product_tabs', locals: {current: 'Images'} %> <% admin_breadcrumb(plural_resource_name(Spree::Image)) %> <% content_for :page_actions do %> <% if can?(:create, Spree::Image) %>
  • <%= link_to_with_icon('plus', t('spree.new_image'), new_admin_product_image_url(@product), id: 'new_image_link', class: 'btn btn-primary') %>
  • <% end %> <% end %>
    <%= t(".upload_images") %>
    <%= form_for [:admin, @product, Spree::Image.new], html: { multipart: true, id: 'upload-form' } do |f| %> <% end %>
    <% no_images = @product.gallery.images.empty? %> <% if @product.has_variants? %> <% end %> <% if @product.has_variants? %> <% end %> <%= render partial: 'image_row', collection: @product.gallery.images, as: :image %>
    <%= t('spree.thumbnail') %><%= Spree::Variant.model_name.human %><%= Spree::Image.human_attribute_name(:alt) %>
    <% if no_images %>
    <%= t('spree.no_images_found') %>.
    <% end %>