-
-
Notifications
You must be signed in to change notification settings - Fork 573
Expand file tree
/
Copy path_calculate_product_totals.html.erb
More file actions
30 lines (30 loc) · 953 Bytes
/
_calculate_product_totals.html.erb
File metadata and controls
30 lines (30 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div id="calculateTotals" class="modal fade">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Product Totals</h4>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body p-4">
<table class="table table-hover striped">
<thead>
<tr>
<th>Item</th>
<th>Quantity</th>
</tr>
</thead>
<tbody>
<% @requests_info.calculate_product_totals.sort_by { |name, quantity| name.downcase }.each do |name, quantity| %>
<tr>
<td><%= name %></td>
<td><%= quantity %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
</div>