2024-01-19 18:25:59 -06:00
|
|
|
<div class="container mt-5">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h1 class="mb-4 text-center">Worker Details</h1>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<p class="card-text">
|
2024-01-23 19:14:58 -06:00
|
|
|
<strong>Name:</strong>
|
|
|
|
<%= @worker.first_name %> <%= @worker.last_name %>
|
2024-01-19 18:25:59 -06:00
|
|
|
</p>
|
|
|
|
<p class="card-text">
|
|
|
|
<strong>Address:</strong>
|
2024-01-31 01:09:28 -06:00
|
|
|
<%= [@worker.address_line_1, @worker.address_line_2, @worker.city, @worker.state, @worker.zip].reject(&:blank?).join(', ') %>
|
2024-01-19 18:25:59 -06:00
|
|
|
</p>
|
|
|
|
<p class="card-text">
|
|
|
|
<strong>Phone:</strong>
|
|
|
|
<%= @worker.phone %>
|
|
|
|
</p>
|
|
|
|
<p class="card-text">
|
|
|
|
<strong>Email:</strong>
|
|
|
|
<%= @worker.email %>
|
|
|
|
</p>
|
|
|
|
<p class="card-text">
|
|
|
|
<strong>DOB:</strong>
|
|
|
|
<%= @worker.dob %>
|
|
|
|
</p>
|
|
|
|
<p class="card-text">
|
|
|
|
<strong>SSN:</strong>
|
|
|
|
<%= @worker.ssn %>
|
|
|
|
</p>
|
|
|
|
<p class="card-text">
|
|
|
|
<strong>Gender:</strong>
|
|
|
|
<%= @worker.gender %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<div class="mt-3 d-flex justify-content-between">
|
2024-01-30 17:02:46 -06:00
|
|
|
<%= link_to 'Edit', edit_worker_path(@worker), class: "btn btn-dark" %>
|
2024-01-19 18:25:59 -06:00
|
|
|
<%= link_to 'Back to List', workers_path, class: "btn btn-secondary" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|