mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-30 02:38:47 -04:00
The comment form now sits under the post's comments instead of on a page of its own; the Comment buttons jump to it. Part of #4933 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
11 lines
512 B
Plaintext
11 lines
512 B
Plaintext
-# Writing a comment on the page itself, under what it is about. It posts as it
|
|
-# always has; if the comment can't be saved, the new-comment page shows why.
|
|
#new-comment.new-comment
|
|
= bootstrap_form_for(Comment.new(commentable:)) do |f|
|
|
= f.text_area :body, rows: 4, required: true, label: 'Add a comment'
|
|
%span.form-text= render 'shared/markdown_help'
|
|
= f.hidden_field :commentable_id
|
|
= f.hidden_field :commentable_type
|
|
.text-end
|
|
= f.submit 'Post comment', class: 'btn btn-primary'
|