Updated all address fields on their respective show pages to be the proper formatting.

This commit is contained in:
Ben 2024-02-05 17:54:10 -06:00
parent 58f1d921c1
commit ea9d032ad4
4 changed files with 14 additions and 5 deletions

View File

@ -22,5 +22,3 @@
.pagination .page-item.active .page-link { .pagination .page-item.active .page-link {
border-color: var(--bs-dark); border-color: var(--bs-dark);
} }

View File

@ -14,7 +14,11 @@
</tr> </tr>
<tr> <tr>
<th>Address</th> <th>Address</th>
<td><%= [@employer.address_line_1, @employer.address_line_2, @employer.city, @employer.state, @employer.zip].reject(&:blank?).join(', ') %></td> <td>
<%= @employer.address_line_1 %><%= ', ' + @employer.address_line_2 unless @employer.address_line_2.blank? %>
<br>
<%= "#{@employer.city}, #{@employer.state} #{@employer.zip}" %>
</td>
</tr> </tr>
<tr> <tr>
<th>Phone</th> <th>Phone</th>

View File

@ -14,7 +14,10 @@
</tr> </tr>
<tr> <tr>
<th>Address</th> <th>Address</th>
<td><%= [@participant.address_line_1, @participant.address_line_2, @participant.city, @participant.state, @participant.zip].reject(&:blank?).join(', ') %></td> <td><%= @participant.address_line_1 %><%= ', ' + @participant.address_line_2 unless @participant.address_line_2.blank? %>
<br>
<%= "#{@participant.city}, #{@participant.state} #{@participant.zip}" %>
</td>
</tr> </tr>
<tr> <tr>
<th>Phone</th> <th>Phone</th>

View File

@ -14,7 +14,11 @@
</tr> </tr>
<tr> <tr>
<th>Address</th> <th>Address</th>
<td><%= [@worker.address_line_1, @worker.address_line_2, @worker.city, @worker.state, @worker.zip].reject(&:blank?).join(', ') %></td> <td>
<%= @worker.address_line_1 %><%= ', ' + @worker.address_line_2 unless @worker.address_line_2.blank? %>
<br>
<%= "#{@worker.city}, #{@worker.state} #{@worker.zip}" %>
</td>
</tr> </tr>
<tr> <tr>
<th>Phone</th> <th>Phone</th>