mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
8 lines
No EOL
654 B
Text
8 lines
No EOL
654 B
Text
- @conference.questions.each do |q|
|
|
= f.inputs 'Additional Info' do
|
|
- if q.question_type.id == 1 || q.question_type.id == 2 # yes/no or single choice
|
|
= f.input :qanswers, :collection => q.qanswers, :as => :select, :input_html => { :multiple => false, class: 'col-sm-10' }, label: q.title, :include_blank => "Please make your choice",
|
|
:member_label => Proc.new {|a| a.answer.title}
|
|
- if q.question_type.id == 3 # multiple choice
|
|
= f.input :qanswers, :collection => q.qanswers, :as => :check_boxes, :input_html => { class: 'col-sm-2' }, :label => false,
|
|
:member_label => Proc.new {|a| a.answer.title} |