Modified the start and end date fields so they display correctly in line with the rest of our design

This commit is contained in:
Ben 2024-01-23 00:03:02 -06:00
parent b742c3bf78
commit 38e4553e33
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@
<p class="card-text">
<strong>DOB:</strong>
<%= @participant.dob.strftime('%B, %d, %Y') if @participant.dob.present? %>
<%= @participant.dob.strftime('%B %d, %Y') if @participant.dob.present? %>
</p>
@ -74,8 +74,8 @@
<% @participant.employments.each do |employment| %>
<tr>
<td><%= employment.worker&.name || 'No Worker Assigned' %></td>
<td><%= employment.start_date %></td>
<td><%= employment.end_date %></td>
<td><%= employment.start_date.strftime('%B %d, %Y') if employment.start_date.present? %></td>
<td><%= employment.end_date.strftime('%B %d, %Y') if employment.end_date.present? %></td>
</tr>
<% end %>
</tbody>