From f474c91b8cfb4059d7919afb110c9caea660334e Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 23 Jan 2024 00:31:35 -0600 Subject: [PATCH] Changed Linked Workers on Participant to have icons for Edit and Delete --- app/views/participants/show.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/participants/show.html.erb b/app/views/participants/show.html.erb index c924ebe..1c5e2c6 100644 --- a/app/views/participants/show.html.erb +++ b/app/views/participants/show.html.erb @@ -78,8 +78,12 @@ <%= employment.start_date.strftime('%B %d, %Y') if employment.start_date.present? %> <%= employment.end_date.strftime('%B %d, %Y') if employment.end_date.present? %> - <%= 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 %> + + <% end %> + <%= link_to employment, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger' do %> + + <% end %> <% end %>