<%= 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 Spree.t(:thumbnail) %>
<%= link_to image_tag(@sale_image.attachment.url(:small)), @sale_image.attachment.url(:product) %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= button Spree.t(:update), 'icon-refresh' %> <%= Spree.t(:or) %> <%= link_to_with_icon 'icon-remove', Spree.t(:cancel), admin_active_sale_active_sale_event_url(@active_sale, @active_sale_event), :id => 'cancel_link', :class => 'button' %>
<% end %>