<% if not request.xhr? %> <% end %> > <% if not request.xhr? %>
<%= form_remote_tag :url => @options.merge(:controller => @scaffold_controller), :loading => "Element.show('#{loading_indicator_id(@options)}'); Form.disable('#{element_form_id(@options)}');", :html => { :href => url_for(@options.merge(:controller => @scaffold_controller)), :id => element_form_id(@options) } %> <%= hidden_field_tag "scaffold_id", @options[:scaffold_id] %>

<%= Inflector.titleize(@options[:action]) %> <%= @scaffold_singular_name.titleize if @suffix.empty? %>

<% if request.xhr? %>
<% else %> <%= render :partial => scaffold_partial_path('form_messages') %> <% end %> <%= render :partial => scaffold_partial_path('form'), :locals => { :scaffold_class => @scaffold_class, :scaffold_name => @scaffold_singular_name } %> <%= end_form_tag %>
<% end %>