Sha256: b4222b68b16570a4a51f40c58f176e6c076763d83e5225c002d4a1ca805c9691

Contents?: true

Size: 1.86 KB

Versions: 11

Compression:

Stored size: 1.86 KB

Contents

<%
  # headmin/table/actions
  #
  # The form action url is dynamically set when switching between actions.
  #
  # ==== Examples
  #   Basic version
  #   <%= render "headmin/table/actions" do %#>
  #     <%= render "headmin/table/actions/delete", url: destroy_admin_pages_path %#>
  #   <% end %#>

%>

<% content_for :table_actions do %>
  <th class="h-table-actions d-none" data-controller="table-actions" data-table-actions-target="wrapper" data-table-target="actions">
    <%= form_with url: "", data: { "table-actions-target": "form" } do |form| %>
      <%= form.hidden_field :id, value: "", "data-table-actions-target": "idInput" %>
      <%= form.hidden_field :authenticity_token, value: form_authenticity_token %>
      <%= form.hidden_field :_method, value: "POST", "data-table-actions-target": "method" %>
      <%= query_parameter_fields(form) %>

      <div class="row g-1">
        <div class="col-6 col-sm-auto">
          <div class="d-flex align-items-center gap-3">
            <label class="text-nowrap"
              data-table-actions-target="counter"
              data-items-zero="<%= t(".items_html", count: 0) %>"
              data-items-one="<%= t(".items_html", count: 1) %>"
              data-items-other="<%= t(".items_html", count: 2) %>"
            >
              <%= t(".items_html", count: 0) %>
            </label>
            <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 %>
            </select>
          </div>
        </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>
    <% end %>
  </th>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

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