Remove unnecessary hidden fields

This commit is contained in:
Fernando Blat
2017-01-20 18:33:07 +01:00
parent 2a5d21f8d4
commit 3d8724b13b

View File

@@ -54,11 +54,7 @@
<div id="js-comment-form-annotation" style="display:none" class="comment-form">
<%= form_for @comment, url: legislation_process_draft_version_annotation_new_comment_path(annotation.draft_version.process, annotation.draft_version, annotation), remote: true do |f| %>
<%= label_tag "comment-body-#{css_id}", leave_comment_text(annotation) %>
<%= f.text_area :body, id: "comment-body-#{css_id}", maxlength: Comment.body_max_length, label: false %>
<%= f.hidden_field :commentable_type, value: "Legislation::Annotation" %>
<%= f.hidden_field :commentable_id, value: annotation.id %>
<%= f.hidden_field :parent_id, value: nil %>
<%= f.text_area :body, id: "comment-body-#{css_id}", maxlength: Comment.body_max_length, label: false, rows: 8 %>
<%= f.submit comment_button_text(nil, annotation), class: "button" %>
<% end %>
</div>