Retire semantic_form_for
Also a buttload of form cleanups...
This commit is contained in:
parent
350b1ebbbe
commit
81853d1ef9
136 changed files with 1825 additions and 1441 deletions
|
|
@ -6,8 +6,9 @@
|
|||
%div
|
||||
%a.pull-right.comment-reply-link{ href: '#' } Reply
|
||||
.comment-reply
|
||||
= semantic_form_for :comment, url: comment_admin_conference_program_event_path(@conference.short_title, comment.commentable_id), method: :post do |f|
|
||||
= f.input :body
|
||||
= form_for :comment, url: comment_admin_conference_program_event_path(@conference.short_title, comment.commentable_id), method: :post do |f|
|
||||
.form-group
|
||||
= f.text_area :body, class: 'form-control'
|
||||
%input{ name: 'parent', type: 'hidden', value: comment.id }
|
||||
%input{ name: 'authenticity_token', type: 'hidden', value: '#{form_authenticity_token}' }
|
||||
%button.btn.btn-primary.pull-right{ name: 'button', type: 'submit' } Add Reply
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -28,21 +28,21 @@
|
|||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h1 Add commercials to events
|
||||
.text-muted
|
||||
Upload your file with data in the following format:
|
||||
%b Event_ID:Commercial_Link
|
||||
, eg.
|
||||
%br
|
||||
%b 11:https://youtube.com/myvideo
|
||||
|
||||
%h1
|
||||
Add commercials to events
|
||||
.modal-body
|
||||
= semantic_form_for '',
|
||||
url: mass_upload_commercials_admin_conference_program_path(@conference.short_title),
|
||||
method: :post do |f|
|
||||
= f.input 'file', as: :file
|
||||
= form_for('', url: mass_upload_commercials_admin_conference_program_path(@conference.short_title), method: :post) do |f|
|
||||
.form-group
|
||||
= f.file_field 'file', as: :file
|
||||
%span.help-block
|
||||
Upload your file with data in the following format:
|
||||
%b Event_ID:Commercial_Link
|
||||
for instance:
|
||||
%pre
|
||||
11:https://youtube.com/myvideo
|
||||
23:https://vimeo.com/myvideo
|
||||
.modal-footer
|
||||
= f.submit 'Add', class: 'btn btn-primary'
|
||||
= f.submit nil, class: 'btn btn-primary'
|
||||
.row
|
||||
.col-md-4
|
||||
= render 'donut_chart', title: 'Events state',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue