Sha256: e9559a73fa02c29b15c1866c0dcb24d4dda329ebd9fec147b13932c69dbd1931

Contents?: true

Size: 1.53 KB

Versions: 6

Compression:

Stored size: 1.53 KB

Contents

<% content_for :content do %><%
    concat render @template_service.on_page_select_block
    concat render @template_service.sort_reset_block
    %><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

6 entries across 6 versions & 1 rubygems

Version Path
rademade_admin-0.2.2 app/views/rademade_admin/_layouts/inner/index_table.html.erb
rademade_admin-0.2.1 app/views/rademade_admin/_layouts/inner/index_table.html.erb
rademade_admin-0.2.0 app/views/rademade_admin/_layouts/inner/index_table.html.erb
rademade_admin-0.1.6 app/views/rademade_admin/_layouts/inner/index_table.html.erb
rademade_admin-0.1.5 app/views/rademade_admin/_layouts/inner/index_table.html.erb
rademade_admin-0.1.4 app/views/rademade_admin/_layouts/inner/index_table.html.erb