Sha256: e7a16853053779a052f59a154d9454bcb27347d9bab37d6cdeae27ccb03d1755
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
<table> <thead> <tr> <% if controller.respond_to?(:bulk) %> <th><%= check_box_tag "action-toggle", "", false, :class => "action-toggle" %></th> <% end %> <% headers.each do |header| %> <th><%= header %></th> <% end %> </tr> </thead> <% items.each do |item| %> <tr class="<%= cycle('even', 'odd') %>" id="<%= dom_id(item) %>"> <% if controller.respond_to?(:bulk) %> <td width="16"> <%= check_box_tag "selected_item_ids[]", item.id, false, :class => "action-select" %> </td> <% end %> <% table_fields_for_item(item, fields).each_with_index do |field, index| %> <td> <%= field %> <% if index.zero? %> <div class="actions"> <%= table_actions(model, item, association_name) %> </div> <% end %> </td> <% end %> </tr> <% end %> <thead> <tr> <% if controller.respond_to?(:bulk) %> <th><%= check_box_tag "action-toggle", "", false, :class => "action-toggle" %></th> <% end %> <% headers.each do |header| %> <th><%= header %></th> <% end %> </tr> </thead> </table>
Version data entries
5 entries across 5 versions & 1 rubygems