clubmanager/templates/home.rs.html

20 lines
366 B
HTML

@use super::base_html;
@use super::components::close_shift_button_html;
@use super::components::open_shift_button_html;
@use cm_lib::models::Shift;
@(open_shift: Option<Shift>)
@:base_html({
<main>
<div>
@if open_shift.is_none() {
@:open_shift_button_html()
} else {
@:close_shift_button_html(open_shift.unwrap())
}
</div>
</main>
})