This commit is contained in:
Toks
2013-06-18 17:00:43 -04:00
parent c5b62a26fa
commit e962f755d6
4 changed files with 11 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
<% if forum_post.is_original_post? %>
<%= render "forum_topics/form", :forum_topic => forum_post.topic %>
<% else %>
<%= render "forum_posts/form", :forum_post => forum_post %>
<%= render "forum_posts/partials/edit/form", :forum_post => forum_post %>
<% end %>
<% end %>
</menu>

View File

@@ -0,0 +1,9 @@
<%= error_messages_for("forum_post") %>
<%= simple_form_for(forum_post) do |f| %>
<%= f.input :topic_id, :as => :hidden %>
<%= dtext_field "forum_post", "body" %>
<%= f.button :submit, "Submit" %>
<%= dtext_preview_button "forum_post", "body" %>
<% end %>

View File

@@ -21,7 +21,7 @@
<p><%= link_to "Reply &raquo;".html_safe, new_forum_post_path(:topic_id => @forum_topic.id), :id => "new-response-link" %></p>
<div style="display: none;" id="topic-response">
<%= render "forum_posts/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
<%= render "forum_posts/partials/new/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
</div>
<% end %>