
-@item = item
  
-if item.questions_type == 1
  .question
    %h3=raw item.title
    
  .answer_p
    =f.radio_button :boolean_content, true
    =f.label :boolean_content_true, "oui"
    =f.radio_button :boolean_content, false
    =f.label :boolean_content_false, "non"
      
-elsif item.questions_type == 2
  .question
    %h3=raw item.title
    
  .answer_p
    -if item.text_presentation == 2
      =f.text_area :content, :class => "large"
    -else  
      =f.text_field :content, :class => "large"
      
-elsif item.questions_type == 3
  -if item.display_type == 1
    .question_set.question_set_inline
      .question
        %h3=raw item.title
    
    
      = f.fields_for(:answer_sets) do |f|
        =f.hidden_field :survey_item_answer_id
        =render :partial => "survey_sets/answer_set", :locals => {:f => f, :answer => f.object.survey_item_answer}
  -else
  
    .question
      %h3=raw item.title
    
    
    = f.fields_for(:answer_sets) do |f|
      =f.hidden_field :survey_item_answer_id
      =render :partial => "survey_sets/answer_set", :locals => {:f => f, :answer => f.object.survey_item_answer}
  
-elsif item.questions_type == 4    

  -if @group_type == 2
    %tr
      %td=item.title
      -item.answers.each do |answer|
        %td
          =f.radio_button :content, answer.label_text
         
  
  -else
    
    .question_set{:class => ("question_set_inline " if item.display_type == 1).to_s+("question_set_sub_inline " if item.display_type == 2).to_s}
      -if item.title?
        .question
          %h3=raw item.title
  
      -item.answers.each do |answer|
        .answer_p{:style =>( "display:inline;" if item.display_type == 1)}
          =f.radio_button :content, answer.label_text
          =f.label :content, answer.label_text, :value => answer.label_text

-elsif item.questions_type == 5
  
  = f.fields_for(:answer_sets) do |f|
    =f.hidden_field :survey_item_answer_id
    =render :partial => "survey_sets/answer_set", :locals => {:f => f, :answer => f.object.survey_item_answer}
        
        
    
  