Sha256: 82d76def6be763cee6f68d772262939807fb916a7ecfdfa7a6a5c3989ebdf338

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

%tr{class: toggle ? "report_data report_data_display" : "report_data"}
  %td
  %td
  %td
    %table
      %tr{:style => "font-weight:bold;"}
        %td User Id
        %td Response
      - response_formatter = ReportFormatter.new(q, @responses)
      - @response_sets.each do |response_set| 
        - @responses.where(question_id: q.id, response_set_id: response_set).each do |r|
          %tr
            %td= r.response_set.report_user_name
            %td.table_number
              = q.prefix
              - if [:number, :date, :datetime, :time].include? q.question_type_id
                = response_formatter.format_stats(r.response_value.to_f) 
              - else
                = r.response_value
                \ 
              = q.suffix
          - if q.answers.is_comment.count > 0
            = render "surveyor_gui/shared/new_line"
            = render "surveyor_gui/shared/pick_comments", q: q, extra_column: false
        - if q.question_type_id == :pick_any
          = render "surveyor_gui/shared/new_line"
= render "surveyor_gui/shared/new_line"

Version data entries

5 entries across 5 versions & 2 rubygems

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