app/views/headmin/table/_actions.html.erb in headmin-0.4.2 vs app/views/headmin/table/_actions.html.erb in headmin-0.5.0
- old
+ new
@@ -3,25 +3,22 @@
#
# 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 %#>
+ # <%= 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) %>
-
- <template data-table-actions-target="idInputTemplate">
- <%= form.hidden_field :ids, value: 'ID', multiple: true, 'data-table-actions-target': 'id' %>
- </template>
<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"
\ No newline at end of file