fixes #1742
This commit is contained in:
@@ -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>
|
||||
|
||||
9
app/views/forum_posts/partials/new/_form.html.erb
Normal file
9
app/views/forum_posts/partials/new/_form.html.erb
Normal 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 %>
|
||||
@@ -21,7 +21,7 @@
|
||||
<p><%= link_to "Reply »".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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user