Sha256: f315c147ab3aee94c677d61a04f0d4309e0f73a4b6005e70db1415d633b570e6

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

.question_group
  .head
    .number= question_number_helper number
    .text
      = group.text
      %span.help= group.help_text
  %table.grid
    %thead
      %th= " "
      - reset_cycle("column_highlight")
      - group.questions.first.answers.each do |answer|
        %th{:class => "#{cycle("column_highlight", "", :name => "column_highlight")}"}= answer.text
    %tfoot
      %th= " "
      - reset_cycle("column_highlight")
      - group.questions.first.answers.each do |answer|
        %th{:class => "#{cycle("column_highlight","", :name => "column_highlight")}"}= answer.text
    %tbody 
      - number_counter = 1
      - group.questions.each do |question|
        - if !question.has_dependency? or question.dependency_is_satisfied?(response_set)
          = render(:partial => "/question_display_types/grid_#{question.display_type}", :locals => {:question => question, :response_set => response_set, :number => "#{number}.#{number_counter}"})
          - number_counter += 1 if question.display_type != "label"
  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
breakpointer-surveyor-0.2.0 app/views/question_group_display_types/_grid.html.haml