<%= f.text_area :body %>
<%= apphelp_pagination_fields() %> <%= submit_tag 'Save' %>, <%= link_to 'cancel', topic_path(:forum_id => params[:forum_id], :id => params[:topic_id], :page => params[:page], :posts_per_page => params[:posts_per_page]) %>,
<% end -%> <% form_for(:post, { :html => { :method => :delete, :onsubmit => "return confirm('Are you sure you want to permanently delete this post?');" }, :url => post_path(:forum_id => params[:forum_id], :topic_id => params[:topic_id], :id => @post) } ) do |f| -%><%= apphelp_pagination_fields() %> or <%= submit_tag('Delete post forever') %>
<% end -%>