Sha256: 04d14b446fa9e38d54bcc02b9ebd4aa2d197cf0763fc0b107c28a85f665aa4c9
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
<% content_for :content do %><% concat render @template_service.on_page_select_block if @sortable_service.can_reset? %><a href="<%= request.path %>"><%= t('rademade_admin.reset_sort') %></a><% end %><table class="table-box"><% concat render @template_service.table_head_block, { :list_fields => @list_fields } has_position = @sortable_service.has_position? %><tbody class="table-content" data-sortable="<%= has_position %>"><% @items.each do |item| %><tr id="item_<%= item.id %>" class="table-line" data-id="<%= item.id %>"<% if has_position %> data-position="<%= item.position %>"<% end %>><% @list_fields.each do |field| %><td class="table-item"><%= display_item_value(item, field) %></td><% end %><td class="table-item"> <span class="table-actions"><% concat render 'rademade_admin/_blocks/button/edit', { :item => item } concat button_to t('rademade_admin.destroy'), admin_delete_uri(item), { :method => :delete, :form => { :class => 'delete-item-form' } } %></span> </td> </tr><% end %></tbody> </table><% concat render @template_service.pagination_block end %>
Version data entries
3 entries across 3 versions & 1 rubygems