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">
|
2024-01-29 21:31:27 -06:00
|
|
|
<%= link_to 'New Employer', new_employer_path, class: 'btn btn-dark mb-3' %>
|
|
|
|
</div>
|
|
|
|
|
2024-01-30 00:04:20 -06:00
|
|
|
<%= paginate @employers %>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<table class="table table-striped table-hover">
|
2024-01-29 21:31:27 -06:00
|
|
|
<thead class="table-light">
|
2024-01-17 01:21:20 -06:00
|
|
|
<tr>
|
2024-01-29 22:04:56 -06:00
|
|
|
<th>First Name</th>
|
|
|
|
<th>Last Name</th>
|
2024-01-19 18:25:59 -06:00
|
|
|
<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>
|
2024-01-29 22:04:56 -06:00
|
|
|
<td><%= employer.first_name %> <%= employer.last_name %></td>
|
2024-01-29 23:51:42 -06:00
|
|
|
<td><%= [employer.address_line_1, employer.address_line_2, employer.city, employer.state, employer.zip].compact.join(', ') %></td>
|
2024-01-19 18:25:59 -06:00
|
|
|
<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>
|
2024-01-29 21:31:27 -06:00
|
|
|
<%= link_to employer, class: 'btn btn-sm btn-secondary' do %>
|
|
|
|
<i class="bi bi-eye"></i> <!-- Eyeball icon for 'Show' -->
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<%= link_to edit_employer_path(employer), class: 'btn btn-sm btn-info' do %>
|
|
|
|
<i class="bi bi-pencil-fill" style="color: white;"></i> <!-- Pencil icon for 'Edit' -->
|
|
|
|
<% end %>
|
|
|
|
</td>
|
2024-01-19 18:25:59 -06:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|