2024-01-19 18:25:59 -06:00
|
|
|
<div class="container mt-5">
|
2024-01-22 15:22:22 -06:00
|
|
|
<h1 class="mb-4 text-center">Employers</h1>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-22 15:22:22 -06:00
|
|
|
<div class="text-center mt-3">
|
|
|
|
<%= link_to 'New Employer', new_employer_path, class: 'btn btn-primary mb-3' %>
|
|
|
|
</div>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
<thead class="table-dark">
|
2024-01-17 01:21:20 -06:00
|
|
|
<tr>
|
2024-01-19 18:25:59 -06:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Address</th>
|
|
|
|
<th>Phone</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>DOB</th>
|
|
|
|
<th>Actions</th>
|
2024-01-17 01:21:20 -06:00
|
|
|
</tr>
|
2024-01-19 18:25:59 -06:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @employers.each do |employer| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= employer.name %></td>
|
|
|
|
<td><%= employer.address %></td>
|
|
|
|
<td><%= employer.phone %></td>
|
|
|
|
<td><%= employer.email %></td>
|
2024-01-21 22:43:27 -06:00
|
|
|
<td><%= employer.dob.strftime('%B %d, %Y') if employer.dob %></td>
|
2024-01-19 18:25:59 -06:00
|
|
|
<td>
|
|
|
|
<%= link_to 'Show', employer, class: 'btn btn-sm btn-info' %>
|
|
|
|
<%= link_to 'Edit', edit_employer_path(employer), class: 'btn btn-sm btn-warning' %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|