Sha256: 8ee67d19d6536af00a3b5c7c4934ad5eee5b056cd5d52fb03a42e2df15157dca

Contents?: true

Size: 630 Bytes

Versions: 8

Compression:

Stored size: 630 Bytes

Contents

<%
  # headmin/table
  #
  # ==== Options
  # * <tt>sort_url</tt> - U
  #
  # ==== 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 %>
<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 %>">
      <%= yield if block_given? %>
    </table>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
headmin-0.2.7 app/views/headmin/_table.html.erb
headmin-0.2.6 app/views/headmin/_table.html.erb
headmin-0.2.5 app/views/headmin/_table.html.erb
headmin-0.2.4 app/views/headmin/_table.html.erb
headmin-0.2.3 app/views/headmin/_table.html.erb
headmin-0.2.2 app/views/headmin/_table.html.erb
headmin-0.2.1 app/views/headmin/_table.html.erb
headmin-0.2.0 app/views/headmin/_table.html.erb