Sha256: d66b31d9092a784733978ea1af0ba18bff2279fde428c8dd764bf0ed14914e0b

Contents?: true

Size: 506 Bytes

Versions: 6

Compression:

Stored size: 506 Bytes

Contents

/ get comment line for pick questions
- if [:pick_one, :pick_any, :dropdown, :slider].include? q.question_type_id  
  - a = q.answers.where(is_comment: true)
  - if a && a.first
    - comment = @response_set.responses.where(question_id: q.id, answer_id: a.first.id).first
    - if comment
      %tr
        %td  
        - if extra_column
          %td  
        %td
          = a.first.text+":"
        %td
          = comment.string_value if comment
    = render "surveyor_gui/shared/new_line"

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
upgrade_surveyor_gui-0.1.3 app/views/surveyor_gui/shared/_pick_comments.html.haml
upgrade_surveyor_gui-0.1.2 app/views/surveyor_gui/shared/_pick_comments.html.haml
surveyor_gui-0.1.2 app/views/surveyor_gui/shared/_pick_comments.html.haml
surveyor_gui-0.1.1 app/views/surveyor_gui/shared/_pick_comments.html.haml
surveyor_gui-0.1.0 app/views/surveyor_gui/shared/_pick_comments.html.haml
surveyor_gui-0.0.3 app/views/surveyor_gui/shared/_pick_comments.html.haml