<%= form_with(model: [@owner, @bank_account], local: true, html: { class: 'needs-validation', novalidate: true }) do |form| %> <% if @bank_account.errors.any? %>

<%= pluralize(@bank_account.errors.count, "error") %> prohibited this bank account from being saved:

<% end %>
<%= form.label :institution_name, 'Institution Name', class: 'form-label' %> <%= form.text_field :institution_name, class: 'form-control', placeholder: 'Institution Name' %>

<%= form.radio_button :account_type, 'Checking', class: 'form-check-input' %> <%= form.label :account_type_checking, 'Checking', class: 'form-check-label' %> <%= form.radio_button :account_type, 'Savings', class: 'form-check-input' %> <%= form.label :account_type_savings, 'Savings', class: 'form-check-label' %>
<%= form.label :routing_number, 'Routing Number', class: 'form-label' %> <%= form.text_field :routing_number, class: 'form-control', placeholder: 'Routing Number' %>
<%= form.label :routing_number_confirmation, 'Re-enter Routing Number', class: 'form-label' %> <%= form.text_field :routing_number_confirmation, class: 'form-control', placeholder: 'Re-enter Routing Number' %>
<%= form.label :account_number, 'Account Number', class: 'form-label' %> <%= form.text_field :account_number, class: 'form-control', placeholder: 'Account Number' %>
<%= form.label :account_number_confirmation, 'Re-enter Account Number', class: 'form-label' %> <%= form.text_field :account_number_confirmation, class: 'form-control', placeholder: 'Re-enter Account Number' %>
<%= form.label :start_date, 'Start Date', class: 'form-label' %> <%= form.date_field :start_date, class: 'form-control' %>
<%= form.label :end_date, 'End Date', class: 'form-label' %> <%= form.date_field :end_date, class: 'form-control' %>
<%= form.submit 'Submit', class: 'btn btn-dark' %>
<% end %>