clubmanager/templates/shift_report.rs.html

42 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>
})