Sha256: da2eaa91ca837e9961134a9c79e8cb6ef74c48dfc254f01fab89ae9ba1e515aa

Contents?: true

Size: 811 Bytes

Versions: 8

Compression:

Stored size: 811 Bytes

Contents

<%
  # headmin/table
  #
  # ==== Options
  # * +sort_url</tt> - Url to post object ids to in the order of positions
  #
  # ==== Examples
  #   <%= render 'headmin/table', sort_url: positions_admin_categories_path do %#>
  #     table content here
  #   <% end %#>

  sort_url = local_assigns.has_key?(:sort_url) ? sort_url : nil
  total_count = content_for(:collection_total_count).to_i || nil
%>

<div class="h-table card my-2 shadow-sm <%= 'table-drag-sort' if sort_url %>" data-sort-url="<%= sort_url %>">
  <div class="table-responsive">
    <table class="table table-hover m-0"
           data-controller="table"
           data-table-target="table"
           data-table-url-value="<%= sort_url %>"
           data-table-count-value="<%= total_count %>">
      <%= yield %>
    </table>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
headmin-0.5.2 app/views/headmin/_table.html.erb
headmin-0.4.2 app/views/headmin/_table.html.erb
headmin-0.4.1 app/views/headmin/_table.html.erb
headmin-0.4.0 app/views/headmin/_table.html.erb
headmin-0.3.4 app/views/headmin/_table.html.erb
headmin-0.3.3 app/views/headmin/_table.html.erb
headmin-0.3.2 app/views/headmin/_table.html.erb
headmin-0.3.1 app/views/headmin/_table.html.erb