obdev/app/views/employers/show.html.erb

57 lines
1.6 KiB
Plaintext

<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<h1 class="mb-4 text-center">Employer Details</h1>
<div class="card">
<div class="card-body">
<p class="card-text">
<strong>Name:</strong>
<%= @employer.first_name %> <%= @employer.last_name %>
</p>
<p class="card-text">
<strong>Address:</strong>
<%= [@employer.address_line_1, @employer.address_line_2, @employer.city, @employer.state, @employer.zip].reject(&:blank?).join(', ') %>
</p>
<p class="card-text">
<strong>Phone:</strong>
<%= @employer.phone %>
</p>
<p class="card-text">
<strong>Email:</strong>
<%= @employer.email %>
</p>
<p class="card-text">
<strong>TIN:</strong>
<%= @employer.tin %>
</p>
<p class="card-text">
<strong>Date of Birth:</strong>
<%= @employer.dob %>
</p>
<p class="card-text">
<strong>SSN:</strong>
<%= @employer.ssn %>
</p>
<p class="card-text">
<strong>Gender:</strong>
<%= @employer.gender %>
</p>
</div>
</div>
<div class="mt-3 d-flex justify-content-between">
<%= link_to 'Edit', edit_employer_path(@employer), class: "btn btn-dark" %>
<%= link_to 'Back to List', employers_path, class: "btn btn-secondary" %>
</div>
</div>
</div>
</div>