13 lines
458 B
Text
13 lines
458 B
Text
<%= bootstrap_form_with(model: checklist) do |form| %>
|
|
<%= form.text_field :code %>
|
|
<%= form.text_field :name %>
|
|
<%= form.text_area :description %>
|
|
<h2>Checks</h2>
|
|
<% checklist.checklist_entries.each do |entry| %>
|
|
<%= form.fields_for(:checklist_entries, entry) do |eform| %>
|
|
<%= eform.number_field :position %>
|
|
<%= eform.collection_select :check_id, Check.all, :id, :name %>
|
|
<% end %>
|
|
<% end %>
|
|
<%= form.submit %>
|
|
<% end %>
|