<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @sale_image } %> <%= form_for [:admin, @active_sale, @active_sale_event, @sale_image], :html => { :multipart => true } do |f| %>
<%= @sale_image.attachment_file_name%>
<%= f.label t(:thumbnail) %>
<%= link_to image_tag(@sale_image.attachment.url(:small)), @sale_image.attachment.url(:product) %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= button t(:update), 'icon-refresh' %> <%= t(:or) %> <%= link_to_with_icon 'icon-remove', t(:cancel), admin_active_sale_active_sale_event_url(@active_sale, @active_sale_event), :id => 'cancel_link', :class => 'button' %>
<% end %>