2023-10-24 13:17:34 +00:00
|
|
|
@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="/">
|
2023-11-05 15:03:15 +00:00
|
|
|
<button type="button">Return to Main Page</button>
|
2023-10-24 13:17:34 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div hx-boost="true">
|
|
|
|
<a href="/shift_reports">
|
2023-11-05 15:03:15 +00:00
|
|
|
<button type="button">Return to Shift Reports</button>
|
2023-10-24 13:17:34 +00:00
|
|
|
</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>
|
|
|
|
|
|
|
|
})
|