Sha256: 307df709c25c6bc41cde2de08e7bf74c366c81e01761516a626bc857b3cf73f1

Contents?: true

Size: 1.96 KB

Versions: 6

Compression:

Stored size: 1.96 KB

Contents

%br
.column3
  .shadebox.round
    #Survey
      %h1.round-top= @title
      - @question_no = 1
      %h2= @survey.title
      - @question_no = 1
      - @survey.survey_sections.each do |ss|
        %h3= ss.title
        %br
        - ss.questions.each do |q|
          %div{class: q.surveyresponse_class(@response_sets)}
            %div{class: q.repeater? ? "repeater" : "non_repeater"}
              - if q.part_of_group?
                - @question_group = @question_group || QuestionGroupTracker.new(q.question_group)
                - if @question_group.check_for_new_group(q)
                  - if ["default", "inline", "repeater", "grid"].include? q.question_group.display_type
                    %table
                      %tr
                        %td
                           
                        %td{colspan: 3}
                          = @question_no.to_s+") #{q.question_group.text}"          
                          - @question_no += 1
                      %tr
                        %td  
                      - if ["default", "inline", "repeater"].include? q.question_group.display_type
                        - if q.question_group.display_type == "repeater"
                          = render "repeater", question_group: q.question_group 
                        - else
                          - q.question_group.questions.each do |group_question|
                            = render "survey_results", q: group_question
                      - elsif [:grid_one, :grid_any].include? q.question_type_id
                        = render "grid", question_group: q.question_group, question_type: q.question_type_id
                      - elsif q.question_type_id == :grid_dropdown
                        = render "grid_dropdown", question_group: q.question_group
              - else
                %table
                  = render "surveyor_gui/shared/question_number", q: q
                  = render "survey_results", q: q 
      = link_to "back", :back

Version data entries

6 entries across 6 versions & 2 rubygems

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