From f8ba32001d312cfdd75da4428023a9bb34adf6ec Mon Sep 17 00:00:00 2001 From: Aditya Prakash Date: Fri, 20 Mar 2015 17:18:02 +0530 Subject: [PATCH] addition question layout fixed #607 --- app/views/conference_registrations/_questions.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/conference_registrations/_questions.html.haml b/app/views/conference_registrations/_questions.html.haml index da80e2d3..2d1327a1 100644 --- a/app/views/conference_registrations/_questions.html.haml +++ b/app/views/conference_registrations/_questions.html.haml @@ -1,8 +1,8 @@ -- @conference.questions.each do |q| - = f.inputs 'Additional Info' do += f.inputs 'Additional Info' do + - @conference.questions.each do |q| - 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} \ No newline at end of file + = f.input :qanswers, :collection => q.qanswers, :as => :check_boxes, :input_html => { class: 'col-sm-2' }, :label => q.title, + :member_label => Proc.new {|a| a.answer.title}