clubmanager/templates/home.rs.html

28 lines
489 B
HTML
Raw Normal View History

2023-09-21 17:44:53 +00:00
@use super::base_html;
2023-09-27 00:11:36 +00:00
@use super::components::shift_button_html;
@use cm_lib::models::Shift;
2023-09-21 17:44:53 +00:00
@(open_shift: Option<Shift>)
2023-09-21 17:44:53 +00:00
@:base_html({
<main>
<div>
2023-09-30 21:51:11 +00:00
@:shift_button_html(open_shift.as_ref())
</div>
2023-09-30 21:51:11 +00:00
@if open_shift.is_some() {
2023-10-24 13:17:34 +00:00
<div hx-boost="true">
<a href="/shifts/@open_shift.unwrap().id/drinks">
<button>Drinks</button>
</a>
</div>
2023-09-30 21:51:11 +00:00
}
2023-10-24 13:17:34 +00:00
<div hx-boost="true">
<a href="/shift_reports">
<button>Shift Reports</button>
</a>
</div>
</main>
2023-09-21 17:44:53 +00:00
})