clubmanager/templates/components/home_fragment.rs.html

23 lines
457 B
HTML
Raw Normal View History

2023-11-04 09:11:30 +00:00
@use super::shift_button_html;
@use cm_lib::models::Shift;
@(open_shift: Option<Shift>)
<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">
2023-11-05 15:03:15 +00:00
<button type="button">Drinks</button>
2023-11-04 09:11:30 +00:00
</a>
</div>
}
2023-11-05 14:44:44 +00:00
<div hx-boost="true">
<a href="/management">
2023-11-05 15:03:15 +00:00
<button type="button">Management</button>
2023-11-05 14:44:44 +00:00
</a>
</div>
2023-11-04 09:11:30 +00:00
</main>