Sha256: 412ff612fa2395db32fecab1d2c3657418cd363c4592db619c2b3cde34a6c422
Contents?: true
Size: 830 Bytes
Versions: 2
Compression:
Stored size: 830 Bytes
Contents
<% # headmin/table # # ==== Options # * <tt>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 if block_given? %> </table> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.2.9 | app/views/headmin/_table.html.erb |
headmin-0.2.8 | app/views/headmin/_table.html.erb |