Sha256: e0d7b1f7be0a45420d0002269ada6e4a8aab89b252b8f29ad58fcdcb0cc10720

Contents?: true

Size: 775 Bytes

Versions: 5

Compression:

Stored size: 775 Bytes

Contents

-# coding: UTF-8
%form.question{id: "question_#{id}"}
  %fieldset

    %legend Problem #{index}
    %input.q-id{type: 'hidden', value: id}

    %p= question

    .row
      .twelve.columns
        %table
          %thead
            -if headings
              %tr
                -headings.each do |heading|
                  %th= heading

          %tbody
            -grid.each_with_index do |row, i|
              %tr
                -row.each_with_index do |cell, j|
                  %td
                    - if Aladdin::Render::Table.input? cell
                      %input{name: "answer[#{i}][#{j}]", type: 'text'}
                    - else
                      = cell
    .row
      .two.columns.mobile-one
        %a.button.small.submit.radius{href: '#'} Submit

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aladdin-0.0.7 views/haml/table.haml
aladdin-0.0.6 views/haml/table.haml
aladdin-0.0.5 views/haml/table.haml
aladdin-0.0.4 views/haml/table.haml
aladdin-0.0.3 views/haml/table.haml