Name | <%= @worker.first_name %> <%= @worker.last_name %> |
---|---|
Address |
<%= @worker.address_line_1 %><%= ', ' + @worker.address_line_2 unless @worker.address_line_2.blank? %>
<%= "#{@worker.city}, #{@worker.state} #{@worker.zip}" %> |
Phone | <%= @worker.phone %> |
<%= @worker.email %> | |
DOB | <%= @worker.dob.strftime('%B %d, %Y') if @worker.dob.present? %> |
SSN | <%= mask_ssn (@worker.ssn) %> |
Gender | <%= @worker.gender %> |
Participant Name | Start Date | End Date | Actions |
---|---|---|---|
<%= participant ? "#{participant.first_name} #{participant.last_name}" : 'No Participant Assigned' %> | <%= employment.start_date.strftime('%B %d, %Y') if employment.start_date.present? %> | <%= employment.end_date.strftime('%B %d, %Y') if employment.end_date.present? %> | <%= link_to participant_path(participant), class: 'btn btn-sm btn-secondary' do %> <% end %> <%= link_to edit_employment_path(employment), class: 'btn btn-sm btn-info' do %> <% end %> |
No employments available.
<% end %> <%= form_with(model: [@worker, @employment], url: link_participant_worker_path(@worker), method: :post, class: 'row g-3') do |form| %>Employer Name | Start Date | End Date | Actions |
---|---|---|---|
<%= employer_record.employer.full_name %> | <%= employer_record.start_date.strftime('%B %d, %Y') if employer_record.start_date %> | <%= employer_record.end_date.strftime('%B %d, %Y') if employer_record.end_date %> | <%= link_to employer_path(employer_record.employer), class: 'btn btn-sm btn-secondary' do %> <% end %> <%= link_to edit_employer_record_path(employer_record), class: 'btn btn-sm btn-info' do %> <% end %> |
No linked employers.
<% end %> <%= form_with(model: [@worker, @employer_record], url: link_employer_worker_path(@worker), method: :post, class: 'row g-3') do |form| %>