Changed Linked Workers on Participant to have icons for Edit and Delete
This commit is contained in:
parent
95dd6dca7e
commit
f474c91b8c
|
@ -78,8 +78,12 @@
|
|||
<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>
|
||||
<%= link_to 'Edit', edit_employment_path(employment), class: 'btn btn-sm btn-primary' %>
|
||||
<%= link_to 'Remove', employment, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger' %>
|
||||
<%= link_to edit_employment_path(employment), class: 'btn btn-sm btn-warning' do %>
|
||||
<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>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue