Changed Linked Workers on Participant to have icons for Edit and Delete

This commit is contained in:
Ben 2024-01-23 00:31:35 -06:00
parent 95dd6dca7e
commit f474c91b8c
1 changed files with 6 additions and 2 deletions

View File

@ -78,8 +78,12 @@
<td><%= employment.start_date.strftime('%B %d, %Y') if employment.start_date.present? %></td> <td><%= employment.start_date.strftime('%B %d, %Y') if employment.start_date.present? %></td>
<td><%= employment.end_date.strftime('%B %d, %Y') if employment.end_date.present? %></td> <td><%= employment.end_date.strftime('%B %d, %Y') if employment.end_date.present? %></td>
<td> <td>
<%= link_to 'Edit', edit_employment_path(employment), class: 'btn btn-sm btn-primary' %> <%= link_to edit_employment_path(employment), class: 'btn btn-sm btn-warning' do %>
<%= link_to 'Remove', employment, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger' %> <i class="bi bi-pencil-fill"></i> <!-- Pencil icon -->
<% end %>
<%= link_to employment, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger' do %>
<i class="bi bi-trash" style="color: black;"></i> <!-- Trash can icon with black color -->
<% end %>
</td> </td>
</tr> </tr>
<% end %> <% end %>