Sha256: 5449fc1d382396a546ba11f15d36a46c320e5c34bb79d796f43d4b37cf4b19fb

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

<% content_for :table_actions do %>
  <th class="h-table-actions d-none" data-controller="table-actions" data-table-target="actions">
    <form data-table-actions-target="form" method="post">
      <%= hidden_field_tag :_method, :post, 'data-table-actions-target': 'method' %>
      <%= hidden_field_tag :authenticity_token, form_authenticity_token %>

      <template data-table-target="idFieldTemplate">
        <%= hidden_field_tag('ids[]', 'ID', multiple: true, id: 'ids_ID') %>
      </template>

      <div class="row g-1">
        <div class="col-6 col-sm-auto">
          <select class="form-select me-1" data-table-actions-target="select" data-action="change->table-actions#update">
            <option disabled selected="selected"><%= t('.selection') %></option>
            <%= yield if block_given? %>
          </select>
        </div>
        <div class="col-6 col-sm-auto">
          <button class="btn h-btn-outline-light w-100" type="submit" data-table-actions-target="button" disabled>
            <%= t('.apply') %>
          </button>
        </div>
      </div>
    </form>
  </th>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
headmin-0.2.5 app/views/headmin/table/_actions.html.erb
headmin-0.2.4 app/views/headmin/table/_actions.html.erb
headmin-0.2.3 app/views/headmin/table/_actions.html.erb
headmin-0.2.2 app/views/headmin/table/_actions.html.erb
headmin-0.2.1 app/views/headmin/table/_actions.html.erb
headmin-0.2.0 app/views/headmin/table/_actions.html.erb