2024-01-19 18:25:59 -06:00
|
|
|
<div class="container mt-5">
|
|
|
|
<h1 class="mb-4">Employers</h1>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<%= link_to 'New Employer', new_employer_path, class: 'btn btn-primary mb-3' %>
|
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>
|