Sha256: d31d7b5c82ebbe091fc9a5dca79a075090dcc61471807ad3123795dd460b1cfc

Contents?: true

Size: 748 Bytes

Versions: 30

Compression:

Stored size: 748 Bytes

Contents

#surveyor
  - @survey.sections.each do |section|
    - div_for section do
      .title= section.title
      .questions
        - @section.questions.each_with_index do |question, index|
          - if question.part_of_group?
            - 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})
          - else
            = render(:partial => "/partials/question", :locals => {:question => question, :response_set => @response_set})

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
ccls-surveyor-1.0.0 app/views/surveyor/show.html.haml
jakewendt-surveyor-0.11.3 app/views/surveyor/show.html.haml
surveyor-0.13.0 app/views/surveyor/show.html.haml
surveyor-0.12.1 app/views/surveyor/show.html.haml
surveyor-0.11.0 app/views/surveyor/show.html.haml
surveyor-0.10.0 app/views/surveyor/show.html.haml
surveyor-0.9.10 app/views/surveyor/show.html.haml
surveyor-0.9.9 app/views/surveyor/show.html.haml
surveyor-0.9.8 app/views/surveyor/show.html.haml
surveyor-0.9.7 app/views/surveyor/show.html.haml
surveyor-0.9.6 app/views/surveyor/show.html.haml
surveyor-0.9.5 app/views/surveyor/show.html.haml
surveyor-0.9.4 app/views/surveyor/show.html.haml
surveyor-0.9.3 app/views/surveyor/show.html.haml
surveyor-0.9.2 app/views/surveyor/show.html.haml
surveyor-0.9.1 app/views/surveyor/show.html.haml
surveyor-0.9.0 app/views/surveyor/show.html.haml
surveyor-0.8.0 app/views/surveyor/show.html.haml
surveyor-0.7.1 app/views/surveyor/show.html.haml
surveyor-0.7.0 app/views/surveyor/show.html.haml