From 14902e00f070f7f0013a154bf520a62e0989d13b Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 20 Jan 2024 00:52:54 -0600 Subject: [PATCH] Changed Participant Index page to include Icons for Show and Edit via Jon's request --- app/views/layouts/application.html.erb | 2 ++ app/views/participants/index.html.erb | 13 ++++++++++--- app/views/participants/show.html.erb | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 72b12f2..3422395 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,6 +8,8 @@ <%= csrf_meta_tags %> <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'rails-ujs', 'data-turbolinks-track': 'reload' %> + + diff --git a/app/views/participants/index.html.erb b/app/views/participants/index.html.erb index 84f80b8..edc7567 100644 --- a/app/views/participants/index.html.erb +++ b/app/views/participants/index.html.erb @@ -30,9 +30,16 @@ <%= participant.dob.strftime('%B, %d, %Y') if participant.dob %> <%= participant.ssn %> <%= participant.gender %> - <%= link_to 'Show', participant, class: 'btn btn-sm btn-info' %> - <%= link_to 'Edit', edit_participant_path(participant), class: 'btn btn-sm btn-primary' %> - + + <%= link_to participant, class: 'btn btn-sm btn-info' do %> + + <% end %> + + + <%= link_to edit_participant_path(participant), class: 'btn btn-sm btn-primary' do %> + + <% end %> + <% end %> diff --git a/app/views/participants/show.html.erb b/app/views/participants/show.html.erb index 83b03f8..14c21f7 100644 --- a/app/views/participants/show.html.erb +++ b/app/views/participants/show.html.erb @@ -5,6 +5,7 @@
+

Name: <%= @participant.first_name %> <%= @participant.last_name %>