<%= form_for [:admin, product, image], html: { multipart: true } do |f| %>
<%= t('spree.new_image') %> <%= render partial: 'form', locals: { f: f } %>
<%= button_tag t('spree.actions.update'), class: 'btn btn-primary' %> <%= link_to t('spree.actions.cancel'), admin_product_images_url(@product), id: 'cancel_link', class: 'button' %>
<% end %>