<%= check_box_tag 'to_delete[]', answer.id, false, :class => "checkbox_in_list" %>
|
<% @survey.survey_questions.each do |question| %>
<% qid = question.id %>
<% case question.type %>
<% when ::SurveyQuestion::Check %>
<%= ( answer[qid] || [] ).join(', ') %>
<% when ::SurveyQuestion::Radiogroup %>
<% options = Hash[question.survey_question_options.collect{|o| [ o.id.to_s, o.name ] }] %>
<%= ( answer[qid] || {} ).map{|key, value| ( options[key] || key ) + ': ' + value}.join('; ') unless answer[qid].blank? %>
<% else %>
<%= answer[qid] %>
<% end %>
|
<% end %>
<%= answer.created_at %>
|