clubmanager/templates/shift_report.rs.html
2023-11-05 07:03:15 -08:00

41 lines
649 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 type="button">Return to Main Page</button>
</a>
</div>
<div hx-boost="true">
<a href="/shift_reports">
<button type="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>
})