Sha256: 4f33def3f425b66f5a3ae1c1a7934ced4b2f0e5686675587d6afdba0bd4b01d6

Contents?: true

Size: 671 Bytes

Versions: 8

Compression:

Stored size: 671 Bytes

Contents

<h2>|<%= @form.title %>| - data</h2>
<table border="1">
  <thead>
  <tr>
    <th>
      id
    </th>
    <% @form.inputs.map(&:name).each do |n| %>
      <th><%= n %></th>
    <% end %>
    <th>Date</th>
  </tr>
  </thead>
  <tbody>
    <% @form.submits.where(resource_id: @res.id, resource_type: @res.class.to_s).each_with_index do |submit, i| %>

      <tr>
        <td><%= i + 1 %></td>

        <% submit.data.each do |val| %>
          <td>
            <%= val.blank? ? 'no data' : raw(val) %>
          </td>
        <% end %>
        <td>
          <%= submit.created_at.strftime('%Y/%-m/%-d %H:%M') %>
        </td>
      </tr>

    <% end %>
  </tbody>

</table>

Version data entries

8 entries across 8 versions & 1 rubygems

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