clubmanager/templates/home.rs.html
2023-10-24 06:17:34 -07:00

27 lines
489 B
HTML

@use super::base_html;
@use super::components::shift_button_html;
@use cm_lib::models::Shift;
@(open_shift: Option<Shift>)
@:base_html({
<main>
<div>
@:shift_button_html(open_shift.as_ref())
</div>
@if open_shift.is_some() {
<div hx-boost="true">
<a href="/shifts/@open_shift.unwrap().id/drinks">
<button>Drinks</button>
</a>
</div>
}
<div hx-boost="true">
<a href="/shift_reports">
<button>Shift Reports</button>
</a>
</div>
</main>
})