= render partial: 'spree/admin/shared/product_sub_menu'
= render partial: 'spree/admin/shared/product_tabs', locals: { current: 'Images' }
= render partial: 'spree/shared/error_messages', locals: { target: @image }

- content_for :page_actions do
  %li= button_link_to t('spree.back_to_images_list'), admin_product_images_url(@product, @url_filters), icon: 'icon-arrow-left'

= form_for [:admin, @product, @image], url: admin_product_image_path(@product, @image, @url_filters), html: { multipart: true } do |f|
  %fieldset
    %legend{align: "center"}= @image.attachment.filename
    .field.alpha.three.columns.align-center
      = f.label t('spree.thumbnail')
      %br/
      = link_to image_tag(@image.url(:small)), @image.url(:product)
    .nine.columns.omega
      = render partial: 'form', locals: { f: f }
    .clear
    .form-buttons.filter-actions.actions
      = button t('spree.actions.update'), 'icon-refresh'
      = link_to t('spree.actions.cancel'), admin_product_images_url(@product, @url_filters), id: 'cancel_link', class: 'button icon-remove'
