-selected-row-class="bg-gray-15" > <% toolbar_classes = "h-14 p-2 bg-white border-b border-gray-100 justify-start items-center gap-2 visible:flex hidden:hidden" %>
-target="searchToolbar"> <%= form_with( url: @search_url, method: :get, html: { id: search_form_id, class: 'flex-grow', "data-turbo-frame": table_frame_id, "data-turbo-action": "replace", "data-#{stimulus_id}-target": "searchForm", "data-action": "reset->#{stimulus_id}#search", }, ) do |form| %> <% end %>
<%= render component("ui/button").new( text: t('.cancel'), scheme: :ghost, "data-action": "#{stimulus_id}#cancelSearch", ) %>
<% if @filters.any? %>
-target="filterToolbar">
<%= t('.refine_search') %>:
<% @filters.each do |filter| %> <% end %>
<% end %>
-target="scopesToolbar">
<%= render component("ui/tab").new(text: "All", current: true, href: "") %>
<%= render component("ui/button").new( 'aria-label': t('.filter'), icon: "filter-3-line", scheme: :secondary, "data-action": "#{stimulus_id}#showSearch", ) %>
-target="batchToolbar" role="toolbar" aria-label="<%= t(".batch_actions") %>"> <%= form_tag '', id: batch_actions_form_id %> <% @batch_actions.each do |batch_action| %> <%= render_batch_action_button(batch_action) %> <% end %>
<%= turbo_frame_tag table_frame_id, target: "_top" do %> <% @columns.each do |column| %> <% end %> -target="defaultHeader" > <% @columns.each do |column| %> <%= render_header_cell(column.header) %> <% end %> <% if @batch_actions %> -target="batchHeader" class="bg-white color-black text-xs leading-none text-left" hidden > <%= render_header_cell(selectable_column.header) %> <%= render_header_cell(content_tag(:div, safe_join([ content_tag(:span, "0", "data-#{stimulus_id}-target": "selectedRowsCount"), " #{t('.rows_selected')}.", ])), colspan: @columns.count - 1) %> <% end %> <% @rows.each do |row| %> <% @columns.each do |column| %> <%= render_data_cell(column.data, row) %> <% end %> <% end %> <% if @rows.empty? && @model_class %> <% end %> <% if @prev_page_link || @next_page_link %> <% end %>
<%= t('.no_resources_found', resources: resource_plural_name) %>
<%= render component('ui/table/pagination').new( prev_link: @prev_page_link, next_link: @next_page_link ) %>
<% end %>