Sha256: 121fdd74ffffae1853987630b0b3d557b1e1c32b933a366025e420cc3d94a066

Contents?: true

Size: 894 Bytes

Versions: 23

Compression:

Stored size: 894 Bytes

Contents

#surveyor
  - @survey.sections.each do |section|
    - div_for section do
      .title= section.title
      .questions
        - group_questions ||= []
        - section.questions.each_with_index do |question, index|
          - if question.part_of_group?
            - group_questions << question
            - if (index + 1 >= section.questions.size) or (question.question_group_id != section.questions[index + 1].question_group_id)
              - # skip to the last question of the section, or the last question of the group
              = render(:partial => "/partials/question_group", :locals => {:question_group => question.question_group, :response_set => @response_set, :group_questions => group_questions})
              - group_questions = []
          - else
            = render(:partial => "/partials/question", :locals => {:question => question, :response_set => @response_set})

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
surveyor-0.21.0 app/views/surveyor/show.html.haml
surveyor-0.20.0 app/views/surveyor/show.html.haml
surveyor-0.19.7 app/views/surveyor/show.html.haml
surveyor-0.19.6 app/views/surveyor/show.html.haml
surveyor-0.19.5 app/views/surveyor/show.html.haml
surveyor-0.19.4 app/views/surveyor/show.html.haml
surveyor-0.19.3 app/views/surveyor/show.html.haml
surveyor-0.19.2 app/views/surveyor/show.html.haml
surveyor-0.19.1 app/views/surveyor/show.html.haml
surveyor-0.19.0 app/views/surveyor/show.html.haml
surveyor-0.18.2 app/views/surveyor/show.html.haml
surveyor-0.18.1 app/views/surveyor/show.html.haml
surveyor-0.18.0 app/views/surveyor/show.html.haml
surveyor-0.17.0 app/views/surveyor/show.html.haml
surveyor-0.16.1 app/views/surveyor/show.html.haml
surveyor-0.16.0 app/views/surveyor/show.html.haml
surveyor-0.15.0 app/views/surveyor/show.html.haml
surveyor-0.14.5 app/views/surveyor/show.html.haml
surveyor-0.14.4 app/views/surveyor/show.html.haml
surveyor-0.14.3 app/views/surveyor/show.html.haml