Sha256: 47e69f84958b5faa16f6ae4dc0d2fa4e4523c1e9f003812f416a5da0fc61eeee

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

- reset_cycle("column_highlight")
%tr
  %td.question_prefix
    .question
      %span.text= question_text_prefix_helper(question.text)
      %span.help= question.help_text
      = hidden_field_tag("responses[#{question.id}][question_id]", question.id)
  - question.answers.each do |answer|
    %td{:class => "#{cycle("column_highlight", "", :name => "column_highlight")}"}
      .answer 
        - options= question.answers.collect{|a| "<option #{ (response_set.response_for(question.id, a.id).selected?)? "selected='selected'" : nil } value ='#{a.id}'>#{a.text}</option>" }
        = select_tag("responses[#{question.id}][answer_id]", ["<option value=''>Select one...</option>"].concat(options))
  %td.question_postfix
    .question
      %span.text= question_text_postfix_helper(question.text)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
breakpointer-surveyor-0.2.0 app/views/question_display_types/_grid_dropdown.html.haml