Sha256: 996c33da458bd281d27c191fceec26911eddf1731adabf9d3ed6b527a8120200

Contents?: true

Size: 935 Bytes

Versions: 27

Compression:

Stored size: 935 Bytes

Contents

<% if @objects.any? %>
    <table class="<%= "model_#{base_class.name.underscore.gsub("/", "_")}" %> list"
           id="<%= base_class.name.underscore.gsub("/", "_") %>_list">
      <thead>
      <tr>
        <% table_columns.each do |attribute| %>
            <th class="colum_header <%= attribute.to_s %>">
              <%= t(base_class.human_attribute_name(attribute)) %>
            </th>
        <% end %>
        <th class="tools"></th>
      </tr>
      </thead>
      <tbody>
      <% @objects.each do |obj| %>
          <tr>
            <% table_columns.each do |field| %>
                <td class="custom-model-row <%= field.to_s %>">
                  <%= render_obj obj, field %>
                </td>
            <% end %>
            <td class="tools">

              <%= render partial: "buttons_tool", locals: {obj: obj} %>


            </td>
          </tr>
      <% end %>
      </tbody>
    </table>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-3.1.5 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-3.1.4 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-3.1.3 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-3.1.2 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-3.1.1 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-3.1.0 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.2.2 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-3.0.0 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.2.1 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.2.0 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.1.2 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.1.1 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.1.0 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.0.3 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.0.2 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.0.1 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-2.0.0 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-0.1.9 app/views/alchemy/custom/model/admin/base/_table.html.erb
alchemy-custom-model-0.1.7 app/views/alchemy/custom/model/admin/base/_table.html.erb