Sha256: 44efacd5b2912df789567e1a210cad6d8051f94beee0211915b0f459f3a5bd46

Contents?: true

Size: 811 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/_table.html.erb
headmin-0.6.2 app/views/headmin/_table.html.erb
headmin-0.6.1 app/views/headmin/_table.html.erb
headmin-0.6.0 app/views/headmin/_table.html.erb
headmin-0.5.9 app/views/headmin/_table.html.erb
headmin-0.5.8 app/views/headmin/_table.html.erb
headmin-0.5.7 app/views/headmin/_table.html.erb
headmin-0.5.6 app/views/headmin/_table.html.erb
headmin-0.5.5 app/views/headmin/_table.html.erb
headmin-0.5.4 app/views/headmin/_table.html.erb
headmin-0.5.3 app/views/headmin/_table.html.erb