42 lines
621 B
HTML
42 lines
621 B
HTML
|
@use super::base_html;
|
||
|
@use cm_lib::report::DrinkReport;
|
||
|
|
||
|
@(drinks: DrinkReport)
|
||
|
|
||
|
|
||
|
@:base_html({
|
||
|
|
||
|
<div style="display: flex; gap: 2rem;">
|
||
|
<div hx-boost="true">
|
||
|
<a href="/">
|
||
|
<button>Return to Main Page</button>
|
||
|
</a>
|
||
|
</div>
|
||
|
<div hx-boost="true">
|
||
|
<a href="/shift_reports">
|
||
|
<button>Return to Shift Reports</button>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Price</th>
|
||
|
<th>Quantity</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@for (price, quantity) in drinks.into_sorted() {
|
||
|
|
||
|
<tr>
|
||
|
<td>@price</td>
|
||
|
<td>@quantity</td>
|
||
|
</tr>
|
||
|
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
})
|