<div id="<%= dom_id checklist_entry %>">
<%= bootstrap_form_with(model: checklist_entry, layout: :horizontal) do |form| %>
  <%= link_to "Abbrechen", checklist_entry.persisted? ? checklist_entry : checklist_entry.checklist, class: "btn btn-outline-secondary float-end", data: { turbo_frame: "checklist_entries" } %>
  <%= form.submit class: "btn btn-secondary float-end me-2" %>
  <%= form.hidden_field :checklist_id %>
  <%= form.collection_select :check_id, Check.all.order(:external_number), :id, :display_label %>
  <%# form.number_field :position %>
<% end %>
</div>