a11yist/app/views/checklist_entries/_form.html.erb
david 7acc0559ae
Some checks failed
/ Run tests (push) Failing after 15s
/ Run system tests (push) Failing after 14s
/ Build, push and deploy image (push) Has been skipped
Make checklist entries sortable by d&d
2024-10-27 22:37:11 +01:00

9 lines
No EOL
571 B
Text

<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>