Changed Ruby syntax in views. Fixed #1326
This commit is contained in:
parent
b0a84ad1c6
commit
1ca448df6f
74 changed files with 371 additions and 376 deletions
|
|
@ -2,7 +2,7 @@
|
|||
= f.inputs 'Additional Info' do
|
||||
- @conference.questions.each do |question|
|
||||
- if question.question_type.title == 'Yes/No' || question.question_type.title == 'Single Choice'
|
||||
= f.input :qanswers, :collection => question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), :as => :select, :input_html => { :multiple => false },
|
||||
label: question.title, :include_blank => "Please make your choice"
|
||||
= f.input :qanswers, collection: question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), as: :select, input_html: { multiple: false },
|
||||
label: question.title, include_blank: 'Please make your choice'
|
||||
- if question.question_type.title == 'Multiple Choice'
|
||||
= f.input :qanswers, :collection => question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), :as => :check_boxes, label: question.title
|
||||
= f.input :qanswers, collection: question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), as: :check_boxes, label: question.title
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
.row
|
||||
.col-md-12
|
||||
= f.input :volunteer, :label => "Click here if you want to become a volunteer at #{@conference.short_title}", :input_html => {:maxlength => 15, :size => 40}
|
||||
= f.input :volunteer, label: "Click here if you want to become a volunteer at #{@conference.short_title}", input_html: {maxlength: 15, size: 40}
|
||||
= f.fields_for :user do |u|
|
||||
= render :partial => 'devise/registrations/volunteeruser', :locals => {:u => u}
|
||||
= render partial: 'devise/registrations/volunteeruser', locals: {u: u}
|
||||
%br
|
||||
- if @conference.vpositions.count > 0
|
||||
%h4
|
||||
%u Positions that require volunteers:
|
||||
- @conference.vpositions.each do |pos|
|
||||
%p{:style => "font-weight:bold"}
|
||||
%p{style: "font-weight:bold"}
|
||||
= pos.title
|
||||
= "(#{pos.description})" if pos.description
|
||||
|
||||
= f.input :vchoices, :collection => pos.vchoices.map {|x| [x.vday.day, x.id]}, :label => "Choose days to volunteer:"
|
||||
= f.input :vchoices, collection: pos.vchoices.map {|x| [x.vday.day, x.id]}, label: "Choose days to volunteer:"
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
%strong
|
||||
= q.title
|
||||
- if @registration.qanswers.any?
|
||||
- @registration.qanswers.where(:question_id => q.id).each do |qa|
|
||||
- @registration.qanswers.where(question_id: q.id).each do |qa|
|
||||
= qa.answer.title
|
||||
- else
|
||||
You haven't answered
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue