Updated Worker show page to have proper styling for edit and show buttons.
This commit is contained in:
parent
b598b345d5
commit
1405b938cd
|
@ -79,8 +79,12 @@
|
|||
<td><%= employer_record.start_date.strftime('%B %d, %Y') if employer_record.start_date %></td>
|
||||
<td><%= employer_record.end_date.strftime('%B %d, %Y') if employer_record.end_date %></td>
|
||||
<td>
|
||||
<%= 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 %>
|
||||
<i class="bi bi-eye"></i> <!-- Eyeball icon for 'Show' -->
|
||||
<% end %>
|
||||
<%= link_to edit_employer_record_path(employer_record), class: 'btn btn-sm btn-info' do %>
|
||||
<i class="bi bi-pencil-fill" style="color: white;"></i> <!-- Pencil icon for 'Edit' with white color -->
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<%= form.date_field :end_date, class: 'form-control' %>
|
||||
</div>
|
||||
|
||||
<div class="col-12 text-center"> <!-- Added text-center for button alignment -->
|
||||
<div class="col-12"> <!-- Added text-center for button alignment -->
|
||||
<%= form.submit "Link Participant", class: 'btn btn-dark' %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue