Onboarding

<%= form_with(model: [@owner, OnboardingItem.new], url: submit_onboarding_polymorphic_path(@owner), local: true, html: { class: 'needs-validation', novalidate: true }) do |form| %> <% @onboarding_items.each_with_index do |item, index| %> <%= hidden_field_tag "onboarding_items[#{index}][id]", item.id %> <% end %>
Form Name Notes Date Completed
<%= item.form.name %> <%= text_area_tag "onboarding_items[#{index}][note]", item.note, id: "onboarding_items_#{index}_note", class: "form-control", rows: 1 %> <%= date_field_tag "onboarding_items[#{index}][date_completed]", item.date_completed, id: "onboarding_items_#{index}_date_completed", class: "form-control" %>
<%= form.submit 'Save', class: 'btn btn-dark' %>
<% end %>
<%= link_to 'Back', polymorphic_path(@owner), class: 'btn btn-secondary' %>
<%# This is for resizing Notes area %>