osem-fcy/app/views/conference_registrations/_questions.html.haml
Henne Vogelsang 7d77495936 Hotfix question display
what a mess....
2016-05-25 14:40:45 +02:00

8 lines
689 B
Text

- if @conference.questions.any?
= 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"
- 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