<%= remote_form_for :post, @post, :url => sb_post_path(:forum_id => @post.forum_id, :topic_id => @post.topic_id, :id => @post), :html => { :method => :put, :class => "MainForm" }, :before => "$('editbox_spinner').show();tinyMCE.triggerSave();" do |f| -%>
<%= f.text_area :body, :rows => 10, :id => "edit_post_body", :class => "rich_text_editor" %>

<%= ajax_spinner_for "editbox", "spinner_black.gif" %> <%= submit_tag :save_changes.l %> <%= :or.l %> <%= link_to_function(:cancel.l, "EditForm.cancel()") %> <%= link_to(:delete_this_post.l, sb_post_path(:forum_id => @post.topic.forum, :topic_id => @post.topic, :id => @post, :page => params[:page]), :class => "utility", :method => :delete, :confirm => :are_you_sure_you_want_to_delete_this_post.l) %>

<% end -%>
<%= include_tiny_mce_if_needed %>