= form_for [:admin, @product, @image], html: { multipart: true } do |f|
  %fieldset
    %legend{ align: "center" }= t('spree.new_image')
    = render partial: 'form', locals: { f: f }
    .form-buttons.filter-actions.actions
      = button t('spree.actions.update'), 'icon-refresh'
      %span.or= t('spree.or')
      = link_to_with_icon 'icon-remove', t('spree.actions.cancel'), admin_product_images_url(@product), id: 'cancel_link', class: 'button'

= javascript_include_tag 'admin/spree/images/new.js'
