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 %>
|
||||
Reference in New Issue
Block a user