Basic feature implemented, very basic poc
This commit is contained in:
parent
216089a3e7
commit
48c0067076
118 changed files with 2113 additions and 20 deletions
13
app/views/checklists/_form.html.erb
Normal file
13
app/views/checklists/_form.html.erb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<%= 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 %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue