<% @body_class = 'change-form' @content_class = 'colM' @title = @object.new_record? ? "Add #{human_model.downcase}" : "Change #{human_model.downcase}" @tools = [] @tools << link_to( "History", { :model => params[:model], :action => 'history', :id => params[:id] } ) if has_history? admin_form_for params[:model], @object, :url => { :action => 'save', :model => params[:model], :id => @object.id } do |builder| builder.outer do builder.prologue do end model.active_admin_fieldsets.each do |set| set.build builder end %>
<% unless @object.new_record? %>

<%= link_to 'Delete', { :action => 'delete', :model => params[:model], :id => @object.id }, { :class => 'deletelink', :post => true, :confirm => "Are you sure you want to delete \"#{@object.to_label}\"?" } %>

<% end %>
<% builder.epilogue do end end end %>