Adds styles for associations comments

This commit is contained in:
Alberto Garcia Cabeza
2015-08-18 17:01:48 +02:00
committed by Juanjo Bazán
parent 87d921b3c7
commit 04db8112b4
8 changed files with 27 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
<div id="js-comment-form-<%= dom_id(parent) %>" <%= "style='display:none'".html_safe if toggeable %>>
<%= form_for [@debate, Comment.new], remote: true do |f| %>
<%= f.text_area :body %>
<%= f.text_area :body, label: t("comments.form.leave_comment") %>
<%= f.hidden_field :commentable_type, value: parent.class %>
<%= f.hidden_field :commentable_id, value: parent.id %>