Retire semantic_form_for

Also a buttload of form cleanups...
This commit is contained in:
Henne Vogelsang 2022-02-23 17:52:16 +01:00
parent 350b1ebbbe
commit 81853d1ef9
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
136 changed files with 1825 additions and 1441 deletions

View file

@ -122,17 +122,19 @@
- cache [@conference, @event, @comments] do
.row
= link_to "Comments (#{@comment_count})", '#', id: 'event-comment-link'
#comments-div
.col-md-12
%h4
Comments
= "(#{@comment_count})"
= link_to('#comment-collapse', class: 'btn btn-link', role: 'button', data: {toggle: "collapse" }) do
Show
%hr
%ul.media
%div
.row-fluid
= semantic_form_for :comment, url: comment_admin_conference_program_event_path(@conference.short_title, @event.id), method: :post do |f|
= f.input :body
= f.submit 'Add Comment', class: 'btn btn-primary pull-right'
%br
%br
- @comments.each do |comment|
%div
= render partial: 'nested_comments', locals: { comment: comment, padding: 0}
.collapse#comment-collapse
- @comments.each do |comment|
= render partial: 'nested_comments', locals: { comment: comment, padding: 0}
= form_for(:comment, url: comment_admin_conference_program_event_path(@conference.short_title, @event.id), method: :post) do |f|
.form-group
= f.text_area :body, class: 'form-control'
.text-right
= f.submit nil, class: 'btn btn-primary'