a11yist/app/views/checklist_entries/_form.html.erb

7 lines
503 B
Text
Raw Normal View History

2024-07-19 02:29:18 +02:00
<%= bootstrap_form_with(model: checklist_entry, layout: :horizontal) do |form| %>
2024-07-20 16:52:12 +02:00
<%= 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" %>
2024-07-19 02:29:18 +02:00
<%= form.hidden_field :checklist_id %>
<%= form.collection_select :check_id, Check.all.order(:name), :id, :name %>
2024-07-20 16:52:12 +02:00
<%# form.number_field :position %>
2024-07-19 02:29:18 +02:00
<% end %>