beast rev 2066
[beast-modified.git] / app / views / posts / edit.html.erb
blob959ea1451c5e78cae86c6cde43ead9c41bc5888c
1 <h1><%= 'Edit Post'[] %></h1>
3 <h2><%= link_to h(@post.topic.title), topic_path(@post.forum_id, @post.topic) %></h2>
5 <%= link_to('Delete post'[], post_path(:forum_id => @post.forum_id, :topic_id => @post.topic, :id => @post, :page => params[:page]), 
6       :class => "utility", :method => :delete, :confirm => 'Delete this post forever?'[:delete_post_conf]) %>
8 <%= error_messages_for :topic %>
9 <% form_for :post, :html => { :method => :put }, 
10      :url  => post_path(:forum_id => params[:forum_id], :id => params[:topic_id], :id => @post, :page => params[:page]) do |f| -%>
11 <p id="post_body"><%= f.text_area :body %></p>
12 <%= submit_tag 'Save'[:save_title] %> or <%= link_to 'cancel'[], topic_path(:forum_id => params[:forum_id], :id => params[:topic_id], :page => params[:page]) %>
13 <% end -%>