Make checklist entries sortable by d&d
This commit is contained in:
parent
1e1d80a2c3
commit
7acc0559ae
10 changed files with 98 additions and 20 deletions
|
|
@ -1,7 +1,9 @@
|
|||
<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(:name_de), :id, :name_de %>
|
||||
<%= form.collection_select :check_id, Check.all.order(:external_number), :id, :display_label %>
|
||||
<%# form.number_field :position %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue