Sha256: cfce8aa0f67934704d7c9c8398fb9175426a1a9fa7d076ebdd94547b30facd8d
Contents?: true
Size: 1.25 KB
Versions: 7
Compression:
Stored size: 1.25 KB
Contents
<div id="table" class="table-responsive"> <table class="table table-bordered table-hover"> <thead> <tr> <% if @resource_service.batch_action_map.present? %> <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.batch_action_map.present? %> <td align="center"> <%= 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
7 entries across 7 versions & 1 rubygems