Changed Participant Index page to include Icons for Show and Edit via Jon's request
This commit is contained in:
parent
dad8abad3e
commit
14902e00f0
|
@ -8,6 +8,8 @@
|
|||
<%= csrf_meta_tags %>
|
||||
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'rails-ujs', 'data-turbolinks-track': 'reload' %>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -30,9 +30,16 @@
|
|||
<td><%= participant.dob.strftime('%B, %d, %Y') if participant.dob %></td>
|
||||
<td><%= participant.ssn %></td>
|
||||
<td><%= participant.gender %></td>
|
||||
<td><%= link_to 'Show', participant, class: 'btn btn-sm btn-info' %></td>
|
||||
<td><%= link_to 'Edit', edit_participant_path(participant), class: 'btn btn-sm btn-primary' %></td>
|
||||
|
||||
<td>
|
||||
<%= link_to participant, class: 'btn btn-sm btn-info' do %>
|
||||
<i class="bi bi-eye"></i><!-- Eyeball icon for 'Show' -->
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to edit_participant_path(participant), class: 'btn btn-sm btn-primary' do %>
|
||||
<i class="bi bi-pencil-fill"></i> <!-- Pencil icon for 'Edit' -->
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<p class="card-text">
|
||||
<strong>Name:</strong>
|
||||
<%= @participant.first_name %> <%= @participant.last_name %>
|
||||
|
|
Loading…
Reference in New Issue