Sha256: fd7ecd74f447ecc56d8cc68cb447d3f546a7700d137fa374028cc59fde0272a9
Contents?: true
Size: 1.39 KB
Versions: 8
Compression:
Stored size: 1.39 KB
Contents
<div id="table" class="table-responsive"> <table class="table table-bordered table-hover"> <caption class="hide"> <%= @resource_class.model_name.human(count: 2) %> </caption> <thead> <tr> <% if @resource_service.include_batch_actions? %> <th></th> <% end %> <% @resource_service.attrs_for_index.each do |attr| %> <th class="column-<%= attr %>"> <%= column_header attr %> </th> <% end %> <th></th> </tr> </thead> <tbody> <% @resources.each do |resource| %> <tr data-resource-id="<%= resource.id %>" class="<%= "highlight" if flash[:updated_ids] && flash[:updated_ids].include?(resource.id) %>"> <% if @resource_service.include_batch_actions? %> <td align="center" data-behavior="batch-actions-checkbox-container"> <%= check_box_tag "batch_action[items][#{resource.id}]", nil, nil, data: { behavior: "batch-actions-checkbox" } %> </td> <% end %> <% @resource_service.attrs_for_index.each do |attr| %> <td> <%= column_value(resource, attr) %> </td> <% end %> <td> <%= render partial: "#{controller_path}/columns/actions", locals: { resource: resource } %> </td> </tr> <% end %> </tbody> </table> </div>
Version data entries
8 entries across 8 versions & 1 rubygems