<%= form_with(model: employer, local: true) do |form| %> <% if employer.errors.any? %>

<%= pluralize(employer.errors.count, "error") %> prohibited this employer from being saved:

<% end %>
<%= form.label :name %> <%= form.text_field :name %>
<%= form.label :address %> <%= form.text_area :address, rows: 1, class: 'auto-expand' %>
<%= form.label :phone %> <%= form.telephone_field :phone, id: 'phone-field' %>
<%= form.label :email %> <%= form.email_field :email, id: 'email-field', required: true %>
<%= form.label :tin, 'TIN' %> <%= form.text_field :tin, id: 'tin-field', maxlength: 10, placeholder: 'XX-XXXXXXX' %>
<%= form.label :dob, 'Date of Birth' %> <%= form.date_field :dob %>
<%= form.label :ssn, 'Social Security Number' %> <%= form.text_field :ssn, id: 'ssn-field', maxlength: 11, placeholder: 'XXX-XX-XXXX' %>
<%= form.label :gender %> <%= form.select :gender, ['Unknown', 'Female', 'Male', 'Non-Binary', 'Other'] %>
<%= form.submit %>
<% end %> <%# This is to correct phone number entry %> <%# This is for auto resizing the address field %> <%# This is for Social Security formatting and # of digits %> <%# This is to format the TIN correctly %>