Skip to content

Commit

Permalink
Add 2px top border to totals row
Browse files Browse the repository at this point in the history
  • Loading branch information
tycol7 committed Sep 5, 2024
1 parent dde8076 commit 95111a1
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 46 deletions.
44 changes: 22 additions & 22 deletions modules/claims_api/app/views/claims_api/_ews_status_table.html.erb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<table>
<thead>
<tr>
<th>consumer</th>
<% ClaimsApi::EvidenceWaiverSubmission::ALL_STATUSES.each do |status| %>
<th><%= status %></th>
<% end %>
<th>totals</th>
</tr>
</thead>
<tbody>
<% ews_consumers.each do |consumer| %>
<tr>
<td class="left-align"><%= consumer.keys[0] %></td>
<% ClaimsApi::EvidenceWaiverSubmission::ALL_STATUSES.map(&:to_sym).each do |status| %>
<td class="right-align"><%= consumer.values.first[status] || 0 %></td>
<% end %>
<td class="right-align"><%= consumer.values.first[:totals].to_i %></td>
</tr>
<% end if ews_consumers %>
</tbody>
</table>
<table class="counts">
<thead>
<tr>
<th>consumer</th>
<% ClaimsApi::EvidenceWaiverSubmission::ALL_STATUSES.each do |status| %>
<th><%= status %></th>
<% end %>
<th>totals</th>
</tr>
</thead>
<tbody>
<% ews_consumers.each do |consumer| %>
<tr>
<td class="left-align"><%= consumer.keys[0] %></td>
<% ClaimsApi::EvidenceWaiverSubmission::ALL_STATUSES.map(&:to_sym).each do |status| %>
<td class="right-align"><%= consumer.values.first[status] || 0 %></td>
<% end %>
<td class="right-align"><%= consumer.values.first[:totals].to_i %></td>
</tr>
<% end if ews_consumers %>
</tbody>
</table>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table>
<table class="counts">
<thead>
<tr>
<th>consumer</th>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table>
<table class="counts">
<thead>
<tr>
<th>consumer</th>
Expand Down
44 changes: 22 additions & 22 deletions modules/claims_api/app/views/claims_api/_poa_status_table.html.erb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<table>
<thead>
<tr>
<th>consumer</th>
<% ClaimsApi::PowerOfAttorney::ALL_STATUSES.each do |status| %>
<th><%= status %></th>
<% end %>
<th>totals</th>
</tr>
</thead>
<tbody>
<% poa_consumers.each do |consumer| %>
<tr>
<td class="left-align"><%= consumer.keys[0] %></td>
<% ClaimsApi::PowerOfAttorney::ALL_STATUSES.map(&:to_sym).each do |status| %>
<td class="right-align"><%= consumer.values.first[status] || 0 %></td>
<% end %>
<td class="right-align"><%= consumer.values.first[:totals].to_i %></td>
</tr>
<% end if poa_consumers %>
</tbody>
</table>
<table class="counts">
<thead>
<tr>
<th>consumer</th>
<% ClaimsApi::PowerOfAttorney::ALL_STATUSES.each do |status| %>
<th><%= status %></th>
<% end %>
<th>totals</th>
</tr>
</thead>
<tbody>
<% poa_consumers.each do |consumer| %>
<tr>
<td class="left-align"><%= consumer.keys[0] %></td>
<% ClaimsApi::PowerOfAttorney::ALL_STATUSES.map(&:to_sym).each do |status| %>
<td class="right-align"><%= consumer.values.first[status] || 0 %></td>
<% end %>
<td class="right-align"><%= consumer.values.first[:totals].to_i %></td>
</tr>
<% end if poa_consumers %>
</tbody>
</table>
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
table tr td.left-align {
text-align: left;
}
table.counts tr:last-child td {
border-top: 2px solid #d3d3d3;
}
h3 {
margin: 30px 0 2px;
}
Expand Down

0 comments on commit 95111a1

Please sign in to comment.