From 1405b938cd7b81552d8f6235783b64e186c9d020 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 2 Feb 2024 23:39:11 -0600 Subject: [PATCH] Updated Worker show page to have proper styling for edit and show buttons. --- app/views/employers/show.html.erb | 8 ++++++-- app/views/workers/show.html.erb | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/employers/show.html.erb b/app/views/employers/show.html.erb index 4cce2be..c47faa9 100644 --- a/app/views/employers/show.html.erb +++ b/app/views/employers/show.html.erb @@ -79,8 +79,12 @@ <%= employer_record.start_date.strftime('%B %d, %Y') if employer_record.start_date %> <%= employer_record.end_date.strftime('%B %d, %Y') if employer_record.end_date %> - <%= link_to 'View', participant_path(participant), class: 'btn btn-sm btn-secondary' %> - <%= link_to 'Edit', edit_employer_record_path(employer_record), class: 'btn btn-sm btn-info' %> + <%= link_to participant_path(participant), class: 'btn btn-sm btn-secondary' do %> + + <% end %> + <%= link_to edit_employer_record_path(employer_record), class: 'btn btn-sm btn-info' do %> + + <% end %> <% end %> diff --git a/app/views/workers/show.html.erb b/app/views/workers/show.html.erb index 894e23d..315d365 100644 --- a/app/views/workers/show.html.erb +++ b/app/views/workers/show.html.erb @@ -108,7 +108,7 @@ <%= form.date_field :end_date, class: 'form-control' %> -
+
<%= form.submit "Link Participant", class: 'btn btn-dark' %>
<% end %>