<% content_for :page_actions do %> <% if can?(:create, Spree::Auction) %> <% end %> <% end %> <%= render partial: 'spree/shared/error_messages', locals: { target: @auction } %> <%= form_for [:admin, @auction], html: { multipart: true } do |f| %>
<%= render partial: 'form', locals: { f: f, auction: @auction } %> <% if can?(:update, @auction) %> <%= render partial: 'spree/admin/shared/edit_resource_links' %> <% end %>
<% end %>