Sha256: 6a6e02735712a8cac788f66578c257e46758e452884cbad7b518722d0c972fe6

Contents?: true

Size: 911 Bytes

Versions: 8

Compression:

Stored size: 911 Bytes

Contents

.row
  .columns.large-12

    %h1= @form.title

    - if @res
      %h3 #{@res.try(:code) ? @res.code : "#{@res.id}##{@res.class.name}"}

    %table.datatable.large-12.columns
      %thead
        %tr
          %th
          - @data_table.headers.each do |n|
            %th
              = n
      %tbody
        - @data_table.rows.each_with_index do |row, i|
          %tr
            %td
              = i + 1
            - row.each do |v|
              %td
                - if v =~ /\/file\//i
                  = link_to v, v
                - else
                  = v

    .large-12.columns
      - if @res
        = link_to 'Download as CSV', formily_forms_data_table_path(form_id: @form.id, model_id: @res.id, model_name: @res.class.name, format: :csv), class: 'button'
      - else
        = link_to 'Download as CSV', formily_forms_data_table_path(form_id: @form.id, format: :csv), class: 'button'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
formily-0.0.5.6.5 app/views/formily/data/submit_data_table.html.haml
formily-0.0.5.6.4 app/views/formily/data/submit_data_table.html.haml
formily-0.0.5.6.3 app/views/formily/data/submit_data_table.html.haml
formily-0.0.5.6.2 app/views/formily/data/submit_data_table.html.haml
formily-0.0.5.6.1 app/views/formily/data/submit_data_table.html.haml
formily-0.0.5.6.0 app/views/formily/data/submit_data_table.html.haml
formily-0.0.5.5.9 app/views/formily/data/submit_data_table.html.haml
formily-0.0.5.5.7 app/views/formily/data/submit_data_table.html.haml